Lines Matching refs:ifrp
82 register struct lifreq *ifrp, *ifend; in pcap_findalldevs_interfaces() local
163 ifrp = (struct lifreq *)buf; in pcap_findalldevs_interfaces()
166 for (; ifrp < ifend; ifrp++) { in pcap_findalldevs_interfaces()
172 if (strncmp(ifrp->lifr_name, "dummy", 5) == 0) in pcap_findalldevs_interfaces()
178 if (!(*check_usable)(ifrp->lifr_name)) { in pcap_findalldevs_interfaces()
188 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6) in pcap_findalldevs_interfaces()
196 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
212 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
214 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs_interfaces()
239 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
241 memcpy(&ifrbroadaddr.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs_interfaces()
274 strncpy(ifrdstaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
276 memcpy(&ifrdstaddr.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs_interfaces()
308 p = strchr(ifrp->lifr_name, ':'); in pcap_findalldevs_interfaces()
330 if (add_addr_to_if(devlistp, ifrp->lifr_name, in pcap_findalldevs_interfaces()
332 (struct sockaddr *)&ifrp->lifr_addr, in pcap_findalldevs_interfaces()