| /freebsd-12-stable/libexec/bootpd/ |
| D | getif.c | 58 if (ifconf.ifc_len == 0) { 70 ifconf.ifc_len = ioc.ic_len; 73 ifconf.ifc_len = sizeof(ifreq); 77 if ((m < 0) || (ifconf.ifc_len <= 0)) { 85 len = ifconf.ifc_len;
|
| D | getether.c | 138 ifc.ifc_len = sizeof(ibuf); 141 ifc.ifc_len < sizeof(struct ifreq)) { 147 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
|
| /freebsd-12-stable/contrib/netbsd-tests/net/if/ |
| 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-12-stable/contrib/libpcap/ |
| D | fad-gifc.c | 195 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces() 206 if (ifc.ifc_len < (int)buf_size && in pcap_findalldevs_interfaces() 207 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces() 214 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
|
| /freebsd-12-stable/contrib/traceroute/ |
| D | ifaddrlist.c | 90 ifc.ifc_len = sizeof(ibuf); in ifaddrlist() 94 ifc.ifc_len < (int)sizeof(struct ifreq)) { in ifaddrlist() 106 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in ifaddrlist()
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/unix/ |
| 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-12-stable/libexec/rbootd/ |
| D | bpf.c | 235 ifc.ifc_len = sizeof ibuf; in BpfGetIntfName() 239 ifc.ifc_len < sizeof(struct ifreq)) { in BpfGetIntfName() 244 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in BpfGetIntfName()
|
| /freebsd-12-stable/contrib/amd/libamu/ |
| D | wire.c | 451 #define count (ifc.ifc_len/sizeof(struct ifreq)) 482 ifc.ifc_len = sizeof(buf); 494 cplim = buf + ifc.ifc_len;
|
| /freebsd-12-stable/contrib/ntp/include/ |
| D | ntif.h | 84 int ifc_len; /* size of associated buffer */ member
|
| /freebsd-12-stable/sys/net/ |
| D | if.c | 3028 int32_t ifc_len; member 3112 ifc.ifc_len = ifc32->ifc_len; in ifioctl() 3118 ifc32->ifc_len = ifc.ifc_len; in ifioctl() 3355 if (ifc->ifc_len <= 0) in ifconf() 3359 if (ifc->ifc_len <= max_len) { in ifconf() 3360 max_len = ifc->ifc_len; in ifconf() 3434 ifc->ifc_len = valid_len; in ifconf() 3436 error = copyout(sbuf_data(sb), ifc->ifc_req, ifc->ifc_len); in ifconf()
|
| D | if.h | 493 int ifc_len; /* size of associated buffer */ member
|
| /freebsd-12-stable/usr.sbin/arp/ |
| D | arp.c | 824 ifc.ifc_len = sizeof(ifs); in get_ether_addr() 839 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len); in get_ether_addr()
|
| /freebsd-12-stable/usr.sbin/timed/timed/ |
| D | timed.c | 270 ifc.ifc_len = sizeof(buf); in main() 276 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */ in main()
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_platform_limits_solaris.h | 374 int ifc_len; member
|
| D | sanitizer_common_interceptors_ioctl.inc | 584 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char*)&ifc->ifc_len, 585 sizeof(ifc->ifc_len)); 600 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
|
| D | sanitizer_platform_limits_solaris.cpp | 259 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
| D | sanitizer_platform_limits_freebsd.h | 395 int ifc_len; member
|
| D | sanitizer_platform_limits_freebsd.cpp | 428 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
|
| D | sanitizer_platform_limits_posix.h | 853 int ifc_len; member
|
| D | sanitizer_interceptors_ioctl_netbsd.inc | 1515 COMMON_INTERCEPTOR_READ_RANGE(ctx, (char *)&ifc->ifc_len, 1516 sizeof(ifc->ifc_len)); 1531 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, ifc->ifc_ifcu.ifcu_req, ifc->ifc_len);
|
| /freebsd-12-stable/crypto/heimdal/lib/roken/ |
| 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-12-stable/sys/amd64/linux/ |
| D | linux.h | 399 int ifc_len; member
|
| /freebsd-12-stable/sys/compat/linux/ |
| D | linux_ioctl.c | 2186 ifc.ifc_len = 0; in linux_ifconf() 2192 ifc.ifc_len += sizeof(ifr); in linux_ifconf() 2201 if (ifc.ifc_len <= 0) { in linux_ifconf() 2209 if (ifc.ifc_len <= max_len) { in linux_ifconf() 2210 max_len = ifc.ifc_len; in linux_ifconf() 2261 ifc.ifc_len = valid_len; in linux_ifconf() 2263 error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len); in linux_ifconf()
|
| /freebsd-12-stable/sys/amd64/linux32/ |
| D | linux.h | 500 int ifc_len; member
|
| /freebsd-12-stable/contrib/sendmail/src/ |
| 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()
|