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()
384 pcap_if_t *iff, *next_iff; local
387 for (iff = acn_if_list; iff != NULL; iff = next_iff) {
388 next_iff = iff->next;
389 for (addr = iff->addresses; addr != NULL; addr = next_addr) {
397 if (iff->name) free(iff->name);
398 if (iff->description) free(iff->description);
399 free(iff);
563 pcap_if_t *iff, *prev_iff; local
579 if ((iff = malloc(sizeof(pcap_if_t))) == NULL) {
583 memset((char *)iff, 0, sizeof(pcap_if_t)); /* bzero() is deprecated, replaced with memset() */
584 if (acn_if_list == 0) acn_if_list = iff; /* remember the head of the list */
585 if (prev_iff) prev_iff->next = iff; /* insert a forward link */
588 if ((iff->name = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
592 memcpy(iff->name, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
593 *(iff->name + *ptr) = 0; /* and null terminate the string */
599 if ((iff->description = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
603 memcpy(iff->description, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
604 *(iff->description + *ptr) = 0; /* and null terminate the string */
613 …if (flags) iff->flags = PCAP_IF_LOOPBACK; /* if this is a loopback style interface, lets mark …
624 if (iff->addresses == 0) iff->addresses = addr;
682 prev_iff = iff;
684 …newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and…
685 …if ((iff->name = realloc(iff->name, strlen(newname) + 1)) == NULL) { /* we now re-write the name s…
689 strcpy(iff->name, newname); /* to this new name */