Home
last modified time | relevance | path

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

123

/netbsd/usr.sbin/bootp/common/
H A Dgetif.c63 if (ifconf.ifc_len == 0) { in getif()
75 ifconf.ifc_len = ioc.ic_len; in getif()
78 ifconf.ifc_len = sizeof(ifreq); in getif()
82 if ((m < 0) || (ifconf.ifc_len <= 0)) { in getif()
90 len = ifconf.ifc_len; in getif()
/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()
/netbsd/sys/compat/common/
H A Duipc_syscalls_40.c58 if (ifc->ifc_len < 0) in compat_ifconf()
61 space = ifc->ifc_len; in compat_ifconf()
159 ifc->ifc_len -= space; in compat_ifconf()
161 ifc->ifc_len = -space; in compat_ifconf()
/netbsd/external/bsd/libpcap/dist/
H A Dfad-gifc.c200 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces()
211 if (ifc.ifc_len < (int)buf_size && in pcap_findalldevs_interfaces()
212 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
219 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
/netbsd/external/bsd/ntp/dist/lib/isc/unix/
H A Difiter_ioctl.c144 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len)); in getbuf4()
145 iter->ifc.ifc_len = iter->bufsize; in getbuf4()
178 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq) in getbuf4()
466 if (iter->ifc.ifc_len == 0 || in internal_current4()
467 iter->pos == (unsigned int)iter->ifc.ifc_len) { in internal_current4()
475 INSIST( iter->pos < (unsigned int) iter->ifc.ifc_len); in internal_current4()
919 if (iter->pos < (unsigned int) iter->ifc.ifc_len) { in internal_next4()
931 INSIST(iter->pos == (unsigned int) iter->ifc.ifc_len); in internal_next4()
/netbsd/usr.sbin/bootp/bootptest/
H A Dgetether.c141 ifc.ifc_len = sizeof(ibuf); in getether()
144 ifc.ifc_len < (int)sizeof(struct ifreq)) { in getether()
150 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len); in getether()
/netbsd/sys/compat/linux32/common/
H A Dlinux32_socket.c436 if (ifc.ifc_len < 0) in linux32_getifconf()
439 space = ifc.ifc_len; in linux32_getifconf()
492 ifc.ifc_len -= space; in linux32_getifconf()
494 ifc.ifc_len = -space; in linux32_getifconf()
H A Dlinux32_sockio.h60 int ifc_len; member
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dinet_addr_local.c381 ifc.ifc_len = vstring_avail(buf); in ial_siocgif()
386 } else if (ifc.ifc_len < vstring_avail(buf) / 2) in ial_siocgif()
391 the_end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len); in ial_siocgif()
/netbsd/external/bsd/am-utils/dist/libamu/
H A Dwire.c453 #define count (ifc.ifc_len/sizeof(struct ifreq))
484 ifc.ifc_len = sizeof(buf);
496 cplim = buf + ifc.ifc_len;
/netbsd/external/apache2/mDNSResponder/dist/mDNSPosix/
H A DmDNSUNP.c253 ifc.ifc_len = len; in get_ifi_info()
260 if (ifc.ifc_len == lastlen) in get_ifi_info()
262 lastlen = ifc.ifc_len; in get_ifi_info()
273 for (ptr = buf; ptr < buf + ifc.ifc_len; ) { in get_ifi_info()
/netbsd/external/bsd/ntp/dist/include/
H A Dntif.h86 int ifc_len; /* size of associated buffer */ member
/netbsd/sys/compat/linux/common/
H A Dlinux_sockio.h80 int ifc_len; member
H A Dlinux_socket.c1183 if (ifc.ifc_len < 0) in linux_getifconf()
1186 space = ifc.ifc_len; in linux_getifconf()
1239 ifc.ifc_len -= space; in linux_getifconf()
1241 ifc.ifc_len = -space; in linux_getifconf()
/netbsd/external/bsd/openldap/dist/libraries/liblutil/
H A Duuid.c138 ifc.ifc_len = sizeof( buf ); in lutil_eaddr()
149 for ( i = 0; i < ifc.ifc_len; ) { in lutil_eaddr()
/netbsd/external/mit/libuv/dist/src/unix/
H A Daix.c1134 ifc.ifc_len = size; in uv_interface_addresses()
1144 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
1177 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
1231 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
H A Dos390.c438 ifc.ifc_len = maxsize; in uv_interface_addresses()
453 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
507 while ((char*)ifr < (char*)ifc.ifc_req + ifc.ifc_len) { in uv_interface_addresses()
/netbsd/sys/compat/net/
H A Dif.h90 int ifc_len; /* size of associated buffer */ member
/netbsd/external/bsd/libbind/dist/irs/
H A Dgethostent.c682 ifc.ifc_len = bufsiz; in scan_interfaces()
702 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz) in scan_interfaces()
717 cplim = buf + ifc.ifc_len; /*%< skip over if's with big ifr_addr's */ in scan_interfaces()
/netbsd/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.h349 int ifc_len; member
H A Dsanitizer_platform_limits_openbsd.cc194 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
/netbsd/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.h351 int ifc_len; member
H A Dsanitizer_platform_limits_openbsd.cc196 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.h349 int ifc_len; member
H A Dsanitizer_platform_limits_openbsd.cc194 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);

123