Searched refs:ifrp (Results 1 – 3 of 3) sorted by relevance
/external/libpcap/ |
D | fad-gifc.c | 274 register struct ifreq *ifrp, *ifend, *ifnext; in pcap_findalldevs() local 326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs() 332 ifrp = (struct ifreq *)buf; in pcap_findalldevs() 335 for (; ifrp < ifend; ifrp = ifnext) { in pcap_findalldevs() 346 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcap_findalldevs() 347 if (n < sizeof(*ifrp)) in pcap_findalldevs() 348 ifnext = ifrp + 1; in pcap_findalldevs() 350 ifnext = (struct ifreq *)((char *)ifrp + n); in pcap_findalldevs() 363 if (!(*ifrp->ifr_name)) in pcap_findalldevs() 371 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcap_findalldevs() [all …]
|
D | fad-glifc.c | 87 register struct lifreq *ifrp, *ifend; in pcap_findalldevs() local 168 ifrp = (struct lifreq *)buf; in pcap_findalldevs() 171 for (; ifrp < ifend; ifrp++) { in pcap_findalldevs() 175 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6) in pcap_findalldevs() 185 if (strncmp(ifrp->lifr_name, "dummy", 5) == 0) in pcap_findalldevs() 194 p = strchr(ifrp->lifr_name, ':'); in pcap_findalldevs() 214 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcap_findalldevs() 233 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcap_findalldevs() 235 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr, in pcap_findalldevs() 260 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcap_findalldevs() [all …]
|
/external/e2fsprogs/lib/uuid/ |
D | gen_uuid.c | 181 struct ifreq ifr, *ifrp; in get_node_id() local 218 for (i = 0; i < n; i+= ifreq_size(*ifrp) ) { in get_node_id() 219 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i); in get_node_id() 220 strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ); in get_node_id() 232 sdlp = (struct sockaddr_dl *) &ifrp->ifr_addr; in get_node_id()
|