HomeSort by: relevance | last modified time | path
    Searched refs:ifrp (Results 1 - 8 of 8) sorted by relevancy

  /src/external/bsd/libpcap/dist/
fad-gifc.c 146 register struct ifreq *ifrp, *ifend, *ifnext; local
171 * we have more than "sizeof(ifrp->ifr_name) + MAX_SA_LEN"
208 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
214 ifrp = (struct ifreq *)buf;
217 for (; ifrp < ifend; ifrp = ifnext) {
228 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name);
229 if (n < sizeof(*ifrp))
230 ifnext = ifrp + 1
    [all...]
fad-glifc.c 88 register struct lifreq *ifrp, *ifend; local
169 ifrp = (struct lifreq *)buf;
172 for (; ifrp < ifend; ifrp++) {
178 if (strncmp(ifrp->lifr_name, "dummy", 5) == 0)
184 if (!(*check_usable)(ifrp->lifr_name)) {
194 if (((struct sockaddr *)&ifrp->lifr_addr)->sa_family == AF_INET6)
202 strncpy(ifrflags.lifr_name, ifrp->lifr_name,
218 strncpy(ifrnetmask.lifr_name, ifrp->lifr_name,
220 memcpy(&ifrnetmask.lifr_addr, &ifrp->lifr_addr
    [all...]
  /src/sys/compat/common/
uipc_syscalls_40.c 41 struct oifreq ifr, *ifrp = NULL; local
62 ifrp = ifc->ifc_req;
83 error = copyout(&ifr, ifrp, sz);
86 ifrp++;
111 error = copyout(&ifr, ifrp, sz);
112 ifrp++;
119 error = copyout(&ifr, ifrp, sz);
120 ifrp++;
125 error = copyout(&ifr.ifr_name, ifrp,
129 &ifrp->ifr_addr
    [all...]
  /src/usr.sbin/bootp/bootptest/
getether.c 135 struct ifreq *ifrp, *ifend;
151 ifrp = ibuf;
153 while (ifrp < ifend) {
155 if (strcmp(ifname, ifrp->ifr_name) == 0 &&
156 ifrp->ifr_addr.sa_family == AF_LINK &&
157 ((struct sockaddr_dl *) &ifrp->ifr_addr)->sdl_type == IFT_ETHER) {
158 bcopy(LLADDR((struct sockaddr_dl *) &ifrp->ifr_addr), eap, EALEN);
163 n = ifrp->ifr_addr.sa_len + sizeof(ifrp->ifr_name);
164 if (n < (int)sizeof(*ifrp))
133 struct ifreq *ifrp, *ifend; local
    [all...]
  /src/external/bsd/ntp/dist/libntp/lib/isc/unix/
ifiter_ioctl.c 453 struct ifreq *ifrp; local
477 ifrp = (void *)((char *) iter->ifc.ifc_req + iter->pos);
480 memcpy(&ifreq, ifrp, sizeof(ifreq));
498 (struct sockaddr *)&ifrp->ifr_addr, ifreq.ifr_name);
658 memcpy(&ifreq, ifrp, sizeof(ifreq));
685 struct LIFREQ *ifrp; local
696 ifrp = (void *)((char *)iter->lifc.lifc_req + iter->pos6);
699 memcpy(&lifreq, ifrp, sizeof(lifreq));
840 memcpy(&lifreq, ifrp, sizeof(lifreq));
916 struct ifreq *ifrp; local
945 struct LIFREQ *ifrp; local
    [all...]
  /src/sys/compat/linux32/common/
linux32_socket.c 418 struct linux32_ifreq ifr, *ifrp = NULL; local
440 ifrp = NETBSD32PTR64(ifc.ifc_req);
472 error = copyout(&ifr, ifrp, sz);
477 ifrp++;
  /src/sys/compat/linux/common/
linux_socket.c 1187 struct linux_ifreq ifr, *ifrp = NULL; local
1209 ifrp = ifc.ifc_req;
1241 error = copyout(&ifr, ifrp, sz);
1246 ifrp++;
  /src/sys/net/
if.c 3602 * ifrp points to the next part of the user's buffer to be used. If
3603 * ifrp != NULL, space holds the number of bytes remaining that we may
3604 * write at ifrp. Otherwise, space holds the number of bytes that
3614 struct ifreq ifr, *ifrp = NULL; local
3625 ifrp = ifc->ifc_req;
3649 error = copyout(&ifr, ifrp, sz);
3652 ifrp++;
3671 error = copyout(&ifr, ifrp, sz);
3674 ifrp++; space -= sz;

Completed in 110 milliseconds