Home | History | Annotate | Download | only in libpcap

Lines Matching refs:ifrp

144 	register struct ifreq *ifrp, *ifend, *ifnext;
169 * we have more than "sizeof(ifrp->ifr_name) + MAX_SA_LEN"
196 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
202 ifrp = (struct ifreq *)buf;
205 for (; ifrp < ifend; ifrp = ifnext) {
216 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name);
217 if (n < sizeof(*ifrp))
218 ifnext = ifrp + 1;
220 ifnext = (struct ifreq *)((char *)ifrp + n);
233 if (!(*ifrp->ifr_name))
241 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0)
248 strncpy(ifrflags.ifr_name, ifrp->ifr_name,
267 strncpy(ifrnetmask.ifr_name, ifrp->ifr_name,
269 memcpy(&ifrnetmask.ifr_addr, &ifrp->ifr_addr,
297 strncpy(ifrbroadaddr.ifr_name, ifrp->ifr_name,
299 memcpy(&ifrbroadaddr.ifr_addr, &ifrp->ifr_addr,
336 strncpy(ifrdstaddr.ifr_name, ifrp->ifr_name,
338 memcpy(&ifrdstaddr.ifr_addr, &ifrp->ifr_addr,
379 p = strchr(ifrp->ifr_name, ':');
401 if (add_addr_to_iflist(&devlist, ifrp->ifr_name,
402 ifrflags.ifr_flags, &ifrp->ifr_addr,
403 SA_LEN(&ifrp->ifr_addr), netmask, netmask_size,