Home
last modified time | relevance | path

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

/external/libpcap/
Dfad-gifc.c148 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
270 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name, in pcap_findalldevs_interfaces()
271 sizeof(ifrnetmask.ifr_name)); in pcap_findalldevs_interfaces()
272 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
273 sizeof(ifrnetmask.ifr_addr)); in pcap_findalldevs_interfaces()
274 if (ioctl(fd, SIOCGIFNETMASK, (char *)&ifrnetmask) < 0) { in pcap_findalldevs_interfaces()
284 (int)sizeof(ifrnetmask.ifr_name), in pcap_findalldevs_interfaces()
285 ifrnetmask.ifr_name, in pcap_findalldevs_interfaces()
291 netmask = &ifrnetmask.ifr_addr; in pcap_findalldevs_interfaces()
Dfad-glifc.c91 struct lifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr; in pcap_findalldevs_interfaces() local
214 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs_interfaces()
215 sizeof(ifrnetmask.lifr_name)); in pcap_findalldevs_interfaces()
216 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs_interfaces()
217 sizeof(ifrnetmask.lifr_addr)); in pcap_findalldevs_interfaces()
218 if (ioctl(fd, SIOCGLIFNETMASK, (char *)&ifrnetmask) < 0) { in pcap_findalldevs_interfaces()
227 (int)sizeof(ifrnetmask.lifr_name), in pcap_findalldevs_interfaces()
228 ifrnetmask.lifr_name, in pcap_findalldevs_interfaces()
234 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr; in pcap_findalldevs_interfaces()