Home
last modified time | relevance | path

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

/dragonfly/libexec/bootpd/
H A Dgetether.c132 struct ifreq *ifrp, *ifend; in getether() local
148 ifrp = ibuf; in getether()
150 while (ifrp < ifend) { in getether()
152 if (strcmp(ifname, ifrp->ifr_name) == 0 && in getether()
153 ifrp->ifr_addr.sa_family == AF_LINK && in getether()
154 ((struct sockaddr_dl *) &ifrp->ifr_addr)->sdl_type == IFT_ETHER) { in getether()
155 bcopy(LLADDR((struct sockaddr_dl *) &ifrp->ifr_addr), eap, EALEN); in getether()
160 n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name); in getether()
161 if (n < sizeof(*ifrp)) in getether()
162 n = sizeof(*ifrp); in getether()
[all …]
/dragonfly/libexec/rbootd/
H A Dbpf.c208 struct ifreq ibuf[8], *ifrp, *ifend, *mp; in BpfGetIntfName() local
213 static char device[sizeof(ifrp->ifr_name)]; in BpfGetIntfName()
231 ifrp = ibuf; in BpfGetIntfName()
236 for (; ifrp < ifend; ++ifrp) { in BpfGetIntfName()
237 if (ioctl(fd, SIOCGIFFLAGS, (char *)ifrp) < 0) { in BpfGetIntfName()
246 if ((ifrp->ifr_flags & IFF_UP) == 0 || in BpfGetIntfName()
248 (ifrp->ifr_flags & IFF_LOOPBACK)) in BpfGetIntfName()
250 (strcmp(ifrp->ifr_name, "lo0") == 0)) in BpfGetIntfName()
254 for (cp = ifrp->ifr_name; !isdigit(*cp); ++cp) in BpfGetIntfName()
259 mp = ifrp; in BpfGetIntfName()
/dragonfly/usr.sbin/gifconfig/
H A Dgifconfig.c532 struct ifreq *ifrp; in phys_status() local
544 ifrp = &ifr; in phys_status()
551 ifrp = (struct ifreq *)&in6_ifr; in phys_status()
554 ifrp = &ifr; in phys_status()
559 if (0 <= ioctl(s, srccmd, (caddr_t)ifrp)) { in phys_status()
561 if (ifrp->ifr_addr.sa_family == AF_INET6) in phys_status()
568 if (getnameinfo(&ifrp->ifr_addr, ifrp->ifr_addr.sa_len, in phys_status()
572 if (0 <= ioctl(s, dstcmd, (caddr_t)ifrp)) { in phys_status()
573 if (getnameinfo(&ifrp->ifr_addr, ifrp->ifr_addr.sa_len, in phys_status()
/dragonfly/sys/net/
H A Dif.c2496 struct ifreq ifr, *ifrp; in ifconf() local
2499 ifrp = ifc->ifc_req; in ifconf()
2559 error = copyout(&ifr, ifrp, sizeof ifr); in ifconf()
2560 ifrp++; in ifconf()
2568 error = copyout(&ifr, ifrp, in ifconf()
2571 error = copyout(sa, &ifrp->ifr_addr, in ifconf()
2573 ifrp = (struct ifreq *) in ifconf()
2574 (sa->sa_len + (caddr_t)&ifrp->ifr_addr); in ifconf()
2586 error = copyout(&ifr, ifrp, sizeof ifr); in ifconf()
2590 ifrp++; in ifconf()