Lines Matching refs:device
142 static char *device = NULL; /* interface name */
355 device = optarg;
356 if_index = if_nametoindex((const char *)device);
368 device = (char *)malloc(LIFNAMSIZ + 1);
369 if (device == NULL) {
375 device = if_indextoname(if_index, device);
376 if (device != NULL) {
377 device[LIFNAMSIZ] = '\0';
389 if (device == NULL || if_index == 0) {
836 if (device != NULL)
858 /* verify the device */
859 if (device != NULL) {
860 tmp1_al = find_device(al, num_ifs, device);
864 " interface\n", prog, device, if_index, pr->name);
910 if (device == NULL) { /* no -i used, no -s used */
924 if (device == NULL) { /* no -i used, -s used */
944 prog, source, device);
1026 find_device(struct ifaddrlist *al, int len, char *device)
1034 (strcmp(tmp_al->device, device) == 0))
1480 return (tmp_al->device);