/freebsd/libexec/bootpd/ |
H A D | getif.c | 54 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 D | getether.c | 134 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 D | ifconf.c | 60 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 D | ifaddrlist.c | 81 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 D | fad-gifc.c | 191 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 D | ifiter_ioctl.c | 142 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 D | bpf.c | 225 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 D | ntif.h | 84 int ifc_len; /* size of associated buffer */ member
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_solaris.h | 375 int ifc_len; member
|
H A D | sanitizer_common_interceptors_ioctl.inc | 592 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 D | sanitizer_platform_limits_solaris.cpp | 260 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
H A D | sanitizer_platform_limits_freebsd.h | 435 int ifc_len; member
|
H A D | sanitizer_platform_limits_freebsd.cpp | 465 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
H A D | sanitizer_platform_limits_posix.h | 906 int ifc_len; 905 int ifc_len; global() member
|
H A D | sanitizer_interceptors_ioctl_netbsd.inc | 1513 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 D | sanitizer_platform_limits_posix.cpp | 1112 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
H A D | sanitizer_platform_limits_netbsd.h | 509 int ifc_len; member
|
H A D | sanitizer_platform_limits_netbsd.cpp | 2578 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | getifaddrs.c | 899 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 D | if.c | 160 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 D | if.h | 560 int ifc_len; /* size of associated buffer */ member
|
/freebsd/sys/amd64/linux32/ |
H A D | linux.h | 307 int ifc_len; member
|
/freebsd/sys/compat/linux/ |
H A D | linux_ioctl.c | 2132 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 D | conf.c | 5110 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()
|