Searched defs:ifaddrs (Results 1 - 16 of 16) sorted by relevance

/freebsd-head/lib/libc/net/
H A Dif_indextoname.c37 #include <ifaddrs.h>
66 struct ifaddrs *ifaddrs, *ifa; local
69 if (getifaddrs(&ifaddrs) < 0)
72 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
86 freeifaddrs(ifaddrs);
H A Dif_nametoindex.c39 #include <ifaddrs.h>
70 struct ifaddrs *ifaddrs, *ifa; local
84 if (getifaddrs(&ifaddrs) < 0)
89 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
98 freeifaddrs(ifaddrs);
H A Dif_nameindex.c37 #include <ifaddrs.h>
84 struct ifaddrs *ifaddrs, *ifa; local
90 if (getifaddrs(&ifaddrs) < 0)
99 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
124 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
141 freeifaddrs(ifaddrs);
H A Dsourcefilter.c47 #include <ifaddrs.h>
86 struct ifaddrs *ifa;
87 struct ifaddrs *ifaddrs; local
92 if (getifaddrs(&ifaddrs) < 0)
104 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
120 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
131 freeifaddrs(ifaddrs);
H A Dgetaddrinfo.c65 #include <ifaddrs.h>
1612 struct ifaddrs *ifaddrs, *ifa; local
1619 if (getifaddrs(&ifaddrs) != 0)
1622 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
1651 freeifaddrs(ifaddrs);
/freebsd-head/include/
H A Difaddrs.h27 * BSDI ifaddrs.h,v 2.5 2000/02/23 14:51:59 dab Exp
33 struct ifaddrs { struct
34 struct ifaddrs *ifa_next;
61 extern int getifaddrs(struct ifaddrs **);
62 extern void freeifaddrs(struct ifaddrs *);
/freebsd-head/contrib/ntp/lib/isc/unix/
H A Difiter_getifaddrs.c25 #include <ifaddrs.h>
42 struct ifaddrs *ifaddrs; /*%< List of ifaddrs */ member in struct:isc_interfaceiter
43 struct ifaddrs *pos; /*%< Ptr to current ifaddr */
71 iter->ifaddrs = NULL;
92 if ((ret = getifaddrs(&iter->ifaddrs)) >= 0)
126 if (iter->ifaddrs != NULL) /* just in case */
127 freeifaddrs(iter->ifaddrs);
141 struct ifaddrs *if
[all...]
/freebsd-head/contrib/amd/libamu/
H A Dwire.c60 #include <ifaddrs.h>
384 struct ifaddrs *ifaddrs, *ifap; local
389 ifaddrs = NULL;
391 if (getifaddrs(&ifaddrs) < 0)
394 for (ifap = ifaddrs; ifap != NULL; ifap = ifap->ifa_next) {
396 if (getifaddrs(&ifaddrs, &count) < 0)
399 for (i = 0,ifap = ifaddrs; i < count; ifap++, i++) {
430 if (ifaddrs)
431 XFREE(ifaddrs);
[all...]
/freebsd-head/usr.sbin/mtest/
H A Dmtest.c76 #include <ifaddrs.h>
160 struct ifaddrs *ifa;
161 struct ifaddrs *ifaddrs; local
170 if (getifaddrs(&ifaddrs) < 0)
178 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
193 freeifaddrs(ifaddrs);
/freebsd-head/contrib/libpcap/
H A Dpcap-snf.c351 struct snf_ifaddrs *ifaddrs, *ifa; local
363 if (snf_getifaddrs(&ifaddrs) || ifaddrs == NULL)
380 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->snf_ifa_next) {
479 snf_freeifaddrs(ifaddrs);
517 struct snf_ifaddrs *ifaddrs, *ifa; local
531 if (snf_getifaddrs(&ifaddrs) || ifaddrs == NULL) {
537 ifa = ifaddrs;
545 snf_freeifaddrs(ifaddrs);
[all...]
/freebsd-head/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.cc21 #include <ifaddrs.h>
249 CHECK_TYPE_SIZE(ifaddrs); variable
250 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
251 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
252 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
253 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
259 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
260 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_solaris.cc21 #include <ifaddrs.h>
314 CHECK_TYPE_SIZE(ifaddrs); variable
315 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
316 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
317 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
318 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
325 sizeof(((ifaddrs *)nullptr)->ifa_ifu));
327 offsetof(ifaddrs, ifa_ifu));
328 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_freebsd.cc85 #include <ifaddrs.h>
478 CHECK_TYPE_SIZE(ifaddrs); variable
479 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
480 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
481 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
482 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
484 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
485 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_posix.cc103 #include <ifaddrs.h>
1152 CHECK_TYPE_SIZE(ifaddrs); variable
1153 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
1154 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
1155 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
1156 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
1164 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
1167 sizeof(((ifaddrs *)nullptr)->ifa_ifu));
1169 offsetof(ifaddrs, ifa_ifu));
1172 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstadd
[all...]
H A Dsanitizer_platform_limits_netbsd.cc189 #include <ifaddrs.h>
2354 CHECK_TYPE_SIZE(ifaddrs); variable
2355 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
2356 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
2357 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
2358 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
2364 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
2365 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
/freebsd-head/crypto/openssh/
H A Dsshconnect.c50 # include <ifaddrs.h>
276 check_ifaddrs(const char *ifname, int af, const struct ifaddrs *ifaddrs, argument
282 const struct ifaddrs *ifa;
290 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
343 struct ifaddrs *ifaddrs = NULL; local
382 if ((r = getifaddrs(&ifaddrs)) != 0) {
389 ifaddrs, &bindaddr, &bindaddrlen) != 0) {
418 if (ifaddrs !
[all...]

Completed in 332 milliseconds