Lines Matching refs:iff

90 	pcap_if_t		*iff;
96 iff = acn_if_list;
97 while (iff) {
98 if (iff->name && (strlen(iff->name) > longest_name_len)) longest_name_len = strlen(iff->name);
99 iff = iff->next;
101 iff = acn_if_list;
103 while (iff) {
104 n = (iff->name) ? iff->name : "";
105 d = (iff->description) ? iff->description : "";
106 f = (iff->flags == PCAP_IF_LOOPBACK) ? "L" : "";
108 addr = iff->addresses;
118 iff = iff->next;
131 pcap_if_t *iff;
135 iff = acn_if_list;
136 printf("Interface Pointer @ %p is %p:\n", &acn_if_list, iff);
137 while (iff) {
138 printf("%3d: %p %p next: %p\n", if_number++, iff->name, iff->description, iff->next);
139 dump((unsigned char *)iff, sizeof(pcap_if_t), 5);
140 addr = iff->addresses;
146 iff = iff->next;
397 pcap_if_t *iff, *next_iff;
400 for (iff = acn_if_list; iff != NULL; iff = next_iff) {
401 next_iff = iff->next;
402 for (addr = iff->addresses; addr != NULL; addr = next_addr) {
410 if (iff->name) free(iff->name);
411 if (iff->description) free(iff->description);
412 free(iff);
569 pcap_if_t *iff, *prev_iff;
586 if ((iff = malloc(sizeof(pcap_if_t))) == NULL) {
591 memset((char *)iff, 0, sizeof(pcap_if_t)); /* bzero() is deprecated, replaced with memset() */
592 if (acn_if_list == 0) acn_if_list = iff; /* remember the head of the list */
593 if (prev_iff) prev_iff->next = iff; /* insert a forward link */
596 if ((iff->name = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
602 memcpy(iff->name, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
603 *(iff->name + *ptr) = 0; /* and null terminate the string */
609 if ((iff->description = malloc(*ptr + 1)) == NULL) { /* get that amount of space */
615 memcpy(iff->description, (ptr + 1), *ptr); /* copy the name into the malloc'ed space */
616 *(iff->description + *ptr) = 0; /* and null terminate the string */
625 if (flags) iff->flags = PCAP_IF_LOOPBACK; /* if this is a loopback style interface, lets mark it as such */
638 if (iff->addresses == 0) iff->addresses = addr;
704 prev_iff = iff;
706 newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and get a point to the mangled name */
707 bigger_buffer = realloc(iff->name, strlen(newname) + 1);
713 iff->name = bigger_buffer;
714 strcpy(iff->name, newname); /* to this new name */