Home
last modified time | relevance | path

Searched refs:ifc_len (Results 1 – 24 of 24) sorted by relevance

/freebsd/libexec/bootpd/
H A Dgetif.c54 if (ifconf.ifc_len == 0) { in getif()
66 ifconf.ifc_len = ioc.ic_len; in getif()
69 ifconf.ifc_len = sizeof(ifreq); in getif()
73 if ((m < 0) || (ifconf.ifc_len <= 0)) { in getif()
81 len = ifconf.ifc_len; in getif()
H A Dgetether.c134 ifc.ifc_len = sizeof(ibuf); in getether()
137 ifc.ifc_len < sizeof(struct ifreq)) { in getether()
143 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether()
/freebsd/contrib/netbsd-tests/net/if/
H A Difconf.c60 ifc.ifc_len = 0; in get_number_of_entries()
69 return ifc.ifc_len / sizeof(struct ifreq); in get_number_of_entries()
99 ifc.ifc_len = sizeof(struct ifreq) * nifreqs; in show_interfaces()
107 for (i=0; i < (int)(ifc.ifc_len / sizeof(struct ifreq)); i++) { in show_interfaces()
/freebsd/usr.sbin/traceroute/
H A Difaddrlist.c81 ifc.ifc_len = sizeof(ibuf); in ifaddrlist()
85 ifc.ifc_len < (int)sizeof(struct ifreq)) { in ifaddrlist()
97 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in ifaddrlist()
/freebsd/contrib/libpcap/
H A Dfad-gifc.c191 ifc.ifc_len = buf_size; in pcapint_findalldevs_interfaces()
202 if (ifc.ifc_len < (int)buf_size && in pcapint_findalldevs_interfaces()
203 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcapint_findalldevs_interfaces()
210 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcapint_findalldevs_interfaces()
/freebsd/contrib/ntp/libntp/lib/isc/unix/
H A Difiter_ioctl.c142 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len)); in getbuf4()
143 iter->ifc.ifc_len = iter->bufsize; in getbuf4()
176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq) in getbuf4()
464 if (iter->ifc.ifc_len == 0 || in internal_current4()
465 iter->pos == (unsigned int)iter->ifc.ifc_len) { in internal_current4()
473 INSIST( iter->pos < (unsigned int) iter->ifc.ifc_len); in internal_current4()
917 if (iter->pos < (unsigned int) iter->ifc.ifc_len) { in internal_next4()
929 INSIST(iter->pos == (unsigned int) iter->ifc.ifc_len); in internal_next4()
/freebsd/libexec/rbootd/
H A Dbpf.c225 ifc.ifc_len = sizeof ibuf; in BpfGetIntfName()
229 ifc.ifc_len < sizeof(struct ifreq)) { in BpfGetIntfName()
234 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in BpfGetIntfName()
/freebsd/contrib/ntp/include/
H A Dntif.h84 int ifc_len; /* size of associated buffer */ member
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h375 int ifc_len; member
H A Dsanitizer_common_interceptors_ioctl.inc592 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len,
593 sizeof(ifc->ifc_len));
608 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
H A Dsanitizer_platform_limits_solaris.cpp260 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
H A Dsanitizer_platform_limits_freebsd.h435 int ifc_len; member
H A Dsanitizer_platform_limits_freebsd.cpp465 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
H A Dsanitizer_platform_limits_posix.h906 int ifc_len;
905 int ifc_len; global() member
H A Dsanitizer_interceptors_ioctl_netbsd.inc1513 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char *)&ifc->ifc_len,
1514 sizeof(ifc->ifc_len));
1529 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
H A Dsanitizer_platform_limits_posix.cpp1112 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
H A Dsanitizer_platform_limits_netbsd.h509 int ifc_len; member
H A Dsanitizer_platform_limits_netbsd.cpp2578 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
/freebsd/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c899 ifconf.ifc_len = buf_size; in getifaddrs2()
914 if (ifconf.ifc_len < buf_size) in getifaddrs2()
921 p < ifconf.ifc_buf + ifconf.ifc_len; in getifaddrs2()
/freebsd/sys/net/
H A Dif.c160 int32_t ifc_len; member
2945 thunk.ifc.ifc_len = ifc32->ifc_len; in ifioctl()
3095 ifc32->ifc_len = thunk.ifc.ifc_len; in ifioctl()
3303 if (ifc->ifc_len <= 0) in ifconf()
3307 if (ifc->ifc_len <= max_len) { in ifconf()
3308 max_len = ifc->ifc_len; in ifconf()
3383 ifc->ifc_len = valid_len; in ifconf()
3385 error = copyout(sbuf_data(sb), ifc->ifc_req, ifc->ifc_len); in ifconf()
H A Dif.h560 int ifc_len; /* size of associated buffer */ member
/freebsd/sys/amd64/linux32/
H A Dlinux.h307 int ifc_len; member
/freebsd/sys/compat/linux/
H A Dlinux_ioctl.c2132 ifc->ifc_len += sizeof(struct l_ifreq); in linux_ifconf_ifaddr_cb()
2201 ifc.ifc_len = 0; in linux_ifconf()
2207 if (ifc.ifc_len <= 0) in linux_ifconf()
2214 if (ifc.ifc_len <= cbs.max_len) { in linux_ifconf()
2215 cbs.max_len = ifc.ifc_len; in linux_ifconf()
2232 ifc.ifc_len = cbs.valid_len; in linux_ifconf()
2234 error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len); in linux_ifconf()
/freebsd/contrib/sendmail/src/
H A Dconf.c5110 ifc.ifc_len = numifs * sizeof(struct ifreq); in load_if_names()
5111 ifc.ifc_buf = xalloc(ifc.ifc_len); in load_if_names()
5124 ifc.ifc_len); in load_if_names()
5126 for (i = 0; i < ifc.ifc_len && i >= 0; ) in load_if_names()
5153 if ((ifc.ifc_len - i) < sizeof(*ifr)) in load_if_names()