Searched refs:ifrp (Results 1 - 5 of 5) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/
H A Dfad-gifc.c144 register struct ifreq *ifrp, *ifend, *ifnext; local
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
[all...]
H A Dfad-glifc.c87 register struct lifreq *ifrp, *ifend; local
168 ifrp = (struct lifreq *)buf;
171 for (; ifrp < ifend; ifrp++) {
175 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6)
185 if (strncmp(ifrp->lifr_name, "dummy", 5) == 0)
194 p = strchr(ifrp->lifr_name, ':');
214 strncpy(ifrflags.lifr_name, ifrp->lifr_name,
233 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name,
235 memcpy(&ifrnetmask.lifr_addr, &ifrp
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/
H A Drarpd.c90 struct ifreq *ifrp, *ifend; local
120 for (ifrp = ibuf; ifrp < ifend; ifrp++) {
125 if (ifrp->ifr_addr.sa_family != AF_INET)
127 addr = ((struct sockaddr_in*)&ifrp->ifr_addr)->sin_addr.s_addr;
130 if (ioctl(fd, SIOCGIFINDEX, ifrp)) {
134 if (ifidx && ifrp->ifr_ifindex != ifidx)
137 if (ifl->index == ifrp->ifr_ifindex)
141 int index = ifrp
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/e2fsprogs/old_e2fsprogs/uuid/
H A Dgen_uuid.c129 struct ifreq ifr, *ifrp; local
166 for (i = 0; i < n; i+= ifreq_size(*ifrp) ) {
167 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i);
168 strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ);
180 sdlp = (struct sockaddr_dl *) &ifrp->ifr_addr;
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/
H A Dtraceroute.c381 struct ifreq *ifrp, *ifend, *ifnext; local
404 ifrp = ibuf;
412 for (; ifrp < ifend; ifrp = ifnext) {
414 n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name);
415 if (n < sizeof(*ifrp))
416 ifnext = ifrp + 1;
418 ifnext = (struct ifreq *)((char *)ifrp + n);
419 if (ifrp
[all...]

Completed in 120 milliseconds