Home
last modified time | relevance | path

Searched refs:ifrp (Results 1 – 7 of 7) sorted by relevance

/netbsd/src/external/bsd/libpcap/dist/
Dfad-gifc.c146 register struct ifreq *ifrp, *ifend, *ifnext; in pcapint_findalldevs_interfaces() local
208 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcapint_findalldevs_interfaces()
214 ifrp = (struct ifreq *)buf; in pcapint_findalldevs_interfaces()
217 for (; ifrp < ifend; ifrp = ifnext) { in pcapint_findalldevs_interfaces()
228 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name); in pcapint_findalldevs_interfaces()
229 if (n < sizeof(*ifrp)) in pcapint_findalldevs_interfaces()
230 ifnext = ifrp + 1; in pcapint_findalldevs_interfaces()
232 ifnext = (struct ifreq *)((char *)ifrp + n); in pcapint_findalldevs_interfaces()
245 if (!(*ifrp->ifr_name)) in pcapint_findalldevs_interfaces()
253 if (strncmp(ifrp->ifr_name, "dummy", 5) == 0) in pcapint_findalldevs_interfaces()
[all …]
Dfad-glifc.c88 register struct lifreq *ifrp, *ifend; in pcapint_findalldevs_interfaces() local
169 ifrp = (struct lifreq *)buf; in pcapint_findalldevs_interfaces()
172 for (; ifrp < ifend; ifrp++) { in pcapint_findalldevs_interfaces()
178 if (strncmp(ifrp->lifr_name, "dummy", 5) == 0) in pcapint_findalldevs_interfaces()
184 if (!(*check_usable)(ifrp->lifr_name)) { in pcapint_findalldevs_interfaces()
194 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6) in pcapint_findalldevs_interfaces()
202 strncpy(ifrflags.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
218 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
220 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr, in pcapint_findalldevs_interfaces()
245 strncpy(ifrbroadaddr.lifr_name, ifrp->lifr_name, in pcapint_findalldevs_interfaces()
[all …]
/netbsd/src/sys/compat/common/
Duipc_syscalls_40.c41 struct oifreq ifr, *ifrp = NULL; in compat_ifconf() local
62 ifrp = ifc->ifc_req; in compat_ifconf()
83 error = copyout(&ifr, ifrp, sz); in compat_ifconf()
86 ifrp++; in compat_ifconf()
111 error = copyout(&ifr, ifrp, sz); in compat_ifconf()
112 ifrp++; in compat_ifconf()
119 error = copyout(&ifr, ifrp, sz); in compat_ifconf()
120 ifrp++; in compat_ifconf()
125 error = copyout(&ifr.ifr_name, ifrp, in compat_ifconf()
129 &ifrp->ifr_addr, in compat_ifconf()
[all …]
/netbsd/src/usr.sbin/bootp/bootptest/
Dgetether.c133 struct ifreq *ifrp, *ifend; in getether() local
149 ifrp = ibuf; in getether()
151 while (ifrp < ifend) { in getether()
153 if (strcmp(ifname, ifrp->ifr_name) == 0 && in getether()
154 ifrp->ifr_addr.sa_family == AF_LINK && in getether()
155 ((struct sockaddr_dl *) &ifrp->ifr_addr)->sdl_type == IFT_ETHER) { in getether()
156 bcopy(LLADDR((struct sockaddr_dl *) &ifrp->ifr_addr), eap, EALEN); in getether()
161 n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name); in getether()
162 if (n < (int)sizeof(*ifrp)) in getether()
163 n = sizeof(*ifrp); in getether()
[all …]
/netbsd/src/sys/compat/linux32/common/
Dlinux32_socket.c418 struct linux32_ifreq ifr, *ifrp = NULL; in linux32_getifconf() local
440 ifrp = NETBSD32PTR64(ifc.ifc_req); in linux32_getifconf()
472 error = copyout(&ifr, ifrp, sz); in linux32_getifconf()
477 ifrp++; in linux32_getifconf()
/netbsd/src/sys/compat/linux/common/
Dlinux_socket.c1165 struct linux_ifreq ifr, *ifrp = NULL; in linux_getifconf() local
1187 ifrp = ifc.ifc_req; in linux_getifconf()
1219 error = copyout(&ifr, ifrp, sz); in linux_getifconf()
1224 ifrp++; in linux_getifconf()
/netbsd/src/sys/net/
Dif.c3652 struct ifreq ifr, *ifrp = NULL; in ifconf() local
3663 ifrp = ifc->ifc_req; in ifconf()
3687 error = copyout(&ifr, ifrp, sz); in ifconf()
3690 ifrp++; in ifconf()
3709 error = copyout(&ifr, ifrp, sz); in ifconf()
3712 ifrp++; space -= sz; in ifconf()