• Home
  • Raw
  • Download

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()
388 pcap_if_t *iff, *next_iff; in acn_freealldevs() local
391 for (iff = acn_if_list; iff != NULL; iff = next_iff) { in acn_freealldevs()
392 next_iff = iff->next; in acn_freealldevs()
393 for (addr = iff->addresses; addr != NULL; addr = next_addr) { in acn_freealldevs()
401 if (iff->name) free(iff->name); in acn_freealldevs()
402 if (iff->description) free(iff->description); in acn_freealldevs()
403 free(iff); in acn_freealldevs()
567 pcap_if_t *iff, *prev_iff; in process_client_data() local
584 if ((iff = malloc(sizeof(pcap_if_t))) == NULL) { in process_client_data()
588 memset((char *)iff, 0, sizeof(pcap_if_t)); /* bzero() is deprecated, replaced with memset() */ in process_client_data()
589 if (acn_if_list == 0) acn_if_list = iff; /* remember the head of the list */ in process_client_data()
590 if (prev_iff) prev_iff->next = iff; /* insert a forward link */ in process_client_data()
593 if ((iff->name = malloc(*ptr + 1)) == NULL) { /* get that amount of space */ in process_client_data()
597 memcpy(iff->name, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */ in process_client_data()
598 *(iff->name + *ptr) = 0; /* and null terminate the string */ in process_client_data()
604 if ((iff->description = malloc(*ptr + 1)) == NULL) { /* get that amount of space */ in process_client_data()
608 memcpy(iff->description, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */ in process_client_data()
609 *(iff->description + *ptr) = 0; /* and null terminate the string */ in process_client_data()
618 …if (flags) iff->flags = PCAP_IF_LOOPBACK; /* if this is a loopback style interface, lets mark … in process_client_data()
629 if (iff->addresses == 0) iff->addresses = addr; in process_client_data()
687 prev_iff = iff; in process_client_data()
689 …newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and… in process_client_data()
690 bigger_buffer = realloc(iff->name, strlen(newname) + 1)); in process_client_data()
695 iff->name = bigger_buffer; in process_client_data()
696 strcpy(iff->name, newname); /* to this new name */ in process_client_data()