Lines Matching refs:ifrp
145 register struct ifreq *ifrp, *ifend, *ifnext; in pcap_findalldevs_interfaces() local
207 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
213 ifrp = (struct ifreq *)buf; in pcap_findalldevs_interfaces()
216 for (; ifrp < ifend; ifrp = ifnext) { in pcap_findalldevs_interfaces()
227 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs_interfaces()
228 if (n < sizeof(*ifrp)) in pcap_findalldevs_interfaces()
229 ifnext = ifrp + 1; in pcap_findalldevs_interfaces()
231 ifnext = (struct ifreq *)((char *)ifrp + n); in pcap_findalldevs_interfaces()
244 if (!(*ifrp->ifr_name)) in pcap_findalldevs_interfaces()
252 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcap_findalldevs_interfaces()
258 if (!(*check_usable)(ifrp->ifr_name)) { in pcap_findalldevs_interfaces()
268 strncpy(ifrflags.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
284 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
286 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
314 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
316 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
353 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
355 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
396 p = strchr(ifrp->ifr_name, ':'); in pcap_findalldevs_interfaces()
418 if (add_addr_to_if(devlistp, ifrp->ifr_name, in pcap_findalldevs_interfaces()
420 &ifrp->ifr_addr, SA_LEN(&ifrp->ifr_addr), in pcap_findalldevs_interfaces()