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

/freebsd-head/lib/libc/net/
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_indextoname.c37 #include <ifaddrs.h>
66 struct ifaddrs *ifaddrs, *ifa; local
74 if (getifaddrs(&ifaddrs) < 0)
77 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next) {
91 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/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/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_openbsd.cpp21 #include <ifaddrs.h>
250 CHECK_TYPE_SIZE(ifaddrs); variable
251 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
252 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
253 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
254 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
260 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
261 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_solaris.cpp21 #include <ifaddrs.h>
315 CHECK_TYPE_SIZE(ifaddrs); variable
316 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
317 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
318 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
319 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
326 sizeof(((ifaddrs *)nullptr)->ifa_ifu));
328 offsetof(ifaddrs, ifa_ifu));
329 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_freebsd.cpp60 #include <ifaddrs.h>
484 CHECK_TYPE_SIZE(ifaddrs); variable
485 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
486 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
487 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
488 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
490 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
491 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
H A Dsanitizer_platform_limits_posix.cpp107 #include <ifaddrs.h>
1156 CHECK_TYPE_SIZE(ifaddrs); variable
1157 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
1158 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
1159 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
1160 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
1168 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
1171 sizeof(((ifaddrs *)nullptr)->ifa_ifu));
1173 offsetof(ifaddrs, ifa_ifu));
1176 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstadd
[all...]
H A Dsanitizer_platform_limits_netbsd.cpp328 #include <ifaddrs.h>
2507 CHECK_TYPE_SIZE(ifaddrs); variable
2508 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
2509 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
2510 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
2511 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
2517 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
2518 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 124 milliseconds