• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/libpcap/

Lines Matching refs:iff

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