Home | History | Annotate | Download | only in libpcap

Lines Matching full:description

184  * Try to get a description for a given device.
185 * Returns a mallocated description if it could and NULL if it couldn't.
188 * "dev.{adapter family name}.{adapter unit}.%desc" to get a description
191 * "dev.an.0.%pnpinfo" has a better description, although one might argue
194 * that in the description.
197 * and OpenBSD let you get a description, but it's not generated by the OS,
199 * a description in FreeBSD and OpenBSD, but if there is no such
200 * description available, it still might be nice to get some description
230 * description?
236 char *description = NULL;
246 * Get the description for the interface.
255 * description, the ioctl succeeds, but the description
256 * isn't copied, ifr_buffer.length is set to the description
260 free(description);
261 if ((description = malloc(descrlen)) != NULL) {
262 ifrdesc.ifr_buffer.buffer = description;
266 description)
272 * Failed to get interface description.
274 free(description);
275 description = NULL;
285 * to get the description length - it's clamped
288 if ((description = malloc(descrlen)) != NULL) {
289 ifrdesc.ifr_data = (caddr_t)description;
292 * Failed to get interface description.
294 free(description);
295 description = NULL;
300 if (description != NULL && strlen(description) == 0) {
302 * Description is empty, so discard it.
304 free(description);
305 description = NULL;
311 * For FreeBSD, if we didn't get a description, and this is
315 if (description == NULL) {
330 * a description from it.
341 description = malloc(descr_size);
342 if (description != NULL) {
343 pcap_snprintf(description, descr_size,
350 return (description);
369 * ifnet flags and description, and, if that succeeds, return 0
372 * weren't given a description, try to get one.
376 bpf_u_int32 flags, const char *description, char *errbuf)
528 if (description == NULL) {
530 * We weren't handed a description for the
534 curdev->description = get_if_description(name);
537 * We were handed a description; make a copy.
539 curdev->description = strdup(description);
540 if (curdev->description == NULL) {
633 * Try to get a description for a given device, and then look for that
825 * ifnet flags and description, and, if that succeeds, return 0
831 const char *description, char *errbuf)
835 return (add_or_find_if(&curdev, devlist, name, flags, description,
874 * Free the description string, if any.
876 if (curdev->description != NULL)
877 free(curdev->description);