Home
last modified time | relevance | path

Searched refs:ifrnetmask (Results 1 – 2 of 2) sorted by relevance

/external/libpcap/
Dfad-gifc.c153 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
284 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
285 sizeof(ifrnetmask.ifr_name)); in pcap_findalldevs_interfaces()
286 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
287 sizeof(ifrnetmask.ifr_addr)); in pcap_findalldevs_interfaces()
288 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifrnetmask) < 0) { in pcap_findalldevs_interfaces()
299 (int)sizeof(ifrnetmask.ifr_name), in pcap_findalldevs_interfaces()
300 ifrnetmask.ifr_name); in pcap_findalldevs_interfaces()
305 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces()
Dfad-glifc.c90 struct lifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
212 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
213 sizeof(ifrnetmask.lifr_name)); in pcap_findalldevs_interfaces()
214 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs_interfaces()
215 sizeof(ifrnetmask.lifr_addr)); in pcap_findalldevs_interfaces()
216 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&ifrnetmask) < 0) { in pcap_findalldevs_interfaces()
226 (int)sizeof(ifrnetmask.lifr_name), in pcap_findalldevs_interfaces()
227 ifrnetmask.lifr_name); in pcap_findalldevs_interfaces()
232 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr; in pcap_findalldevs_interfaces()