Lines Matching defs:iff

95 	pcap_if_t		*iff;
101 iff = acn_if_list;
102 while (iff) {
103 if (iff->name && (strlen(iff->name) > longest_name_len)) longest_name_len = strlen(iff->name);
104 iff = iff->next;
106 iff = acn_if_list;
108 while (iff) {
109 n = (iff->name) ? iff->name : "";
110 d = (iff->description) ? iff->description : "";
111 f = (iff->flags == PCAP_IF_LOOPBACK) ? "L" : "";
113 addr = iff->addresses;
123 iff = iff->next;
136 pcap_if_t *iff;
140 iff = acn_if_list;
141 printf("Interface Pointer @ %p is %p:\n", &acn_if_list, iff);
142 while (iff) {
143 printf("%3d: %p %p next: %p\n", if_number++, iff->name, iff->description, iff->next);
144 dump((unsigned char *)iff, sizeof(pcap_if_t), 5);
145 addr = iff->addresses;
151 iff = iff->next;
402 pcap_if_t *iff, *next_iff;
405 for (iff = acn_if_list; iff != NULL; iff = next_iff) {
406 next_iff = iff->next;
407 for (addr = iff->addresses; addr != NULL; addr = next_addr) {
415 if (iff->name) free(iff->name);
416 if (iff->description) free(iff->description);
417 free(iff);
574 pcap_if_t *iff, *prev_iff;
591 if ((iff = malloc(sizeof(pcap_if_t))) == NULL) {
596 memset((char *)iff, 0, sizeof(pcap_if_t)); /* bzero() is deprecated, replaced with memset() */
597 if (acn_if_list == 0) acn_if_list = iff; /* remember the head of the list */
598 if (prev_iff) prev_iff->next = iff; /* insert a forward link */
601 if ((iff->name = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
607 memcpy(iff->name, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
608 *(iff->name + *ptr) = 0; /* and null terminate the string */
614 if ((iff->description = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
620 memcpy(iff->description, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
621 *(iff->description + *ptr) = 0; /* and null terminate the string */
630 if (flags) iff->flags = PCAP_IF_LOOPBACK; /* if this is a loopback style interface, lets mark it as such */
643 if (iff->addresses == 0) iff->addresses = addr;
709 prev_iff = iff;
711 newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and get a point to the mangled name */
712 bigger_buffer = realloc(iff->name, strlen(newname) + 1);
718 iff->name = bigger_buffer;
719 strcpy(iff->name, newname); /* to this new name */