Home | History | Annotate | Download | only in libpcap

Lines Matching refs:ifrp

274 	register struct ifreq *ifrp, *ifend, *ifnext;
299 * we have more than "sizeof(ifrp->ifr_name) + MAX_SA_LEN"
326 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
332 ifrp = (struct ifreq *)buf;
335 for (; ifrp < ifend; ifrp = ifnext) {
346 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name);
347 if (n < sizeof(*ifrp))
348 ifnext = ifrp + 1;
350 ifnext = (struct ifreq *)((char *)ifrp + n);
363 if (!(*ifrp->ifr_name))
371 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0)
378 strncpy(ifrflags.ifr_name, ifrp->ifr_name,
397 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name,
399 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr,
427 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name,
429 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr,
466 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name,
468 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr,
509 p = strchr(ifrp->ifr_name, ':');
531 if (add_addr_to_iflist(&devlist, ifrp->ifr_name,
532 ifrflags.ifr_flags, &ifrp->ifr_addr,
533 SA_LEN(&ifrp->ifr_addr), netmask, netmask_size,