Lines Matching refs:iff
82 pcap_if_t *iff; in dump_interface_list() local
88 iff = acn_if_list; in dump_interface_list()
89 while (iff) { in dump_interface_list()
90 if (iff->name && (strlen(iff->name) > longest_name_len)) longest_name_len = strlen(iff->name); in dump_interface_list()
91 iff = iff->next; in dump_interface_list()
93 iff = acn_if_list; in dump_interface_list()
95 while (iff) { in dump_interface_list()
96 n = (iff->name) ? iff->name : ""; in dump_interface_list()
97 d = (iff->description) ? iff->description : ""; in dump_interface_list()
98 f = (iff->flags == PCAP_IF_LOOPBACK) ? "L" : ""; in dump_interface_list()
100 addr = iff->addresses; in dump_interface_list()
110 iff = iff->next; in dump_interface_list()
123 pcap_if_t *iff; in dump_interface_list_p() local
127 iff = acn_if_list; in dump_interface_list_p()
128 printf("Interface Pointer @ %p is %p:\n", &acn_if_list, iff); in dump_interface_list_p()
129 while (iff) { in dump_interface_list_p()
130 printf("%3d: %p %p next: %p\n", if_number++, iff->name, iff->description, iff->next); in dump_interface_list_p()
131 dump((unsigned char *)iff, sizeof(pcap_if_t), 5); in dump_interface_list_p()
132 addr = iff->addresses; in dump_interface_list_p()
138 iff = iff->next; in dump_interface_list_p()
389 pcap_if_t *iff, *next_iff; in acn_freealldevs() local
392 for (iff = acn_if_list; iff != NULL; iff = next_iff) { in acn_freealldevs()
393 next_iff = iff->next; in acn_freealldevs()
394 for (addr = iff->addresses; addr != NULL; addr = next_addr) { in acn_freealldevs()
402 if (iff->name) free(iff->name); in acn_freealldevs()
403 if (iff->description) free(iff->description); in acn_freealldevs()
404 free(iff); in acn_freealldevs()
568 pcap_if_t *iff, *prev_iff; in process_client_data() local
585 if ((iff = malloc(sizeof(pcap_if_t))) == NULL) { in process_client_data()
590 memset((char *)iff, 0, sizeof(pcap_if_t)); /* bzero() is deprecated, replaced with memset() */ in process_client_data()
591 if (acn_if_list == 0) acn_if_list = iff; /* remember the head of the list */ in process_client_data()
592 if (prev_iff) prev_iff->next = iff; /* insert a forward link */ in process_client_data()
595 if ((iff->name = malloc(*ptr + 1)) == NULL) { /* get that amount of space */ in process_client_data()
601 memcpy(iff->name, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */ in process_client_data()
602 *(iff->name + *ptr) = 0; /* and null terminate the string */ in process_client_data()
608 if ((iff->description = malloc(*ptr + 1)) == NULL) { /* get that amount of space */ in process_client_data()
614 memcpy(iff->description, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */ in process_client_data()
615 *(iff->description + *ptr) = 0; /* and null terminate the string */ in process_client_data()
624 …if (flags) iff->flags = PCAP_IF_LOOPBACK; /* if this is a loopback style interface, lets mark … in process_client_data()
637 if (iff->addresses == 0) iff->addresses = addr; in process_client_data()
703 prev_iff = iff; in process_client_data()
705 …newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and… in process_client_data()
706 bigger_buffer = realloc(iff->name, strlen(newname) + 1)); in process_client_data()
712 iff->name = bigger_buffer; in process_client_data()
713 strcpy(iff->name, newname); /* to this new name */ in process_client_data()