Searched refs:ifap (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-head/usr.sbin/rpcbind/
H A Dutil.c116 struct ifaddrs *ifap, *ifp = NULL, *bestif; local
192 for (ifap = ifp; ifap != NULL; ifap = ifap->ifa_next) {
193 ifsa = ifap->ifa_addr;
194 ifmasksa = ifap->ifa_netmask;
198 !(ifap->ifa_flags & IFF_UP))
201 if (!(ifap->ifa_flags & IFF_LOOPBACK) && !listen_addr(ifsa))
210 bestif = ifap;
319 struct ifaddrs *ifap, *ifp; local
[all...]
/freebsd-head/lib/libifconfig/
H A Dlibifconfig_internal.h56 struct ifaddrs *ifap; member in struct:ifconfig_handle
H A Dlibifconfig_internal.c47 if (h->ifap == NULL) {
48 ret = getifaddrs(&h->ifap);
H A Dlibifconfig.c102 freeifaddrs(h->ifap);
138 for (ifa = h->ifap; ifa; ifa = ifa->ifa_next) {
146 freeifaddrs(h->ifap);
147 h->ifap = NULL;
/freebsd-head/usr.sbin/rtsold/
H A Dcap_llflags.c66 struct ifaddrs *ifap, *ifa; local
74 if (getifaddrs(&ifap) != 0)
77 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
90 freeifaddrs(ifap);
97 freeifaddrs(ifap);
107 freeifaddrs(ifap);
H A Drtsold.c810 struct ifaddrs *ifap, *ifa; local
822 if (getifaddrs(&ifap) != 0)
831 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
908 freeifaddrs(ifap);
/freebsd-head/contrib/amd/libamu/
H A Dwire.c384 struct ifaddrs *ifaddrs, *ifap; local
394 for (ifap = ifaddrs; ifap != NULL; ifap = ifap->ifa_next) {
399 for (i = 0,ifap = ifaddrs; i < count; ifap++, i++) {
402 if (!ifap || !ifap->ifa_addr || ifap
[all...]
/freebsd-head/contrib/libpcap/
H A Dfad-getad.c150 struct ifaddrs *ifap, *ifa; local
170 if (getifaddrs(&ifap) != 0) {
175 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
277 freeifaddrs(ifap);
/freebsd-head/usr.sbin/mld6query/
H A Dmld6.c211 struct ifaddrs *ifa, *ifap; local
231 for (ifap = ifa; ifap; ifap = ifap->ifa_next) {
232 if (index != if_nametoindex(ifap->ifa_name))
235 if (ifap->ifa_addr->sa_family != AF_INET6)
238 ifap->ifa_addr)->sin6_addr))
242 if (ifap == NULL)
244 memcpy(&src, &((struct sockaddr_in6 *)ifap
[all...]
/freebsd-head/usr.sbin/wake/
H A Dwake.c111 struct ifaddrs *ifap, *ifa; local
118 if (getifaddrs(&ifap) != 0)
122 for (nifs = 0, ifa = ifap; ifa; ifa = ifa->ifa_next)
132 freeifaddrs(ifap);
/freebsd-head/usr.sbin/ifmcstat/
H A Difmcstat.c383 ll_addrlist(struct ifaddr *ifap) argument
394 ifap0 = ifap;
395 while (ifap) {
396 KREAD(ifap, &ifa, struct ifaddr);
410 ifap = ifa.ifa_link.tqe_next;
443 if6_addrlist(struct ifaddr *ifap) argument
453 ifap0 = ifap;
454 while (ifap) {
455 KREAD(ifap, &ifa, struct ifaddr);
461 KREAD(ifap,
529 if_addrlist(struct ifaddr *ifap) argument
989 struct ifaddrs *ifap, *ifa; local
[all...]
/freebsd-head/lib/libc/rpc/
H A Dclnt_bcast.c129 struct ifaddrs *ifap, *ifp; local
150 for (ifap = ifp; ifap != NULL; ifap = ifap->ifa_next) {
151 if (ifap->ifa_addr->sa_family != af ||
152 !(ifap->ifa_flags & IFF_UP))
157 bip->index = if_nametoindex(ifap->ifa_name);
162 (ifap->ifa_flags & IFF_BROADCAST) &&
163 ifap
[all...]
/freebsd-head/usr.bin/netstat/
H A Dif.c274 struct ifaddrs *ifap, *ifa; local
282 if (getifaddrs(&ifap) != 0)
288 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
326 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
498 freeifaddrs(ifap);
521 struct ifaddrs *ifap, *ifa; local
524 if (getifaddrs(&ifap) != 0)
529 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
553 freeifaddrs(ifap);
H A Droute.c258 struct ifaddrs *ifap, *ifa; local
265 if (getifaddrs(&ifap) != 0)
268 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
294 freeifaddrs(ifap);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c502 rk_getifaddrs(struct ifaddrs **ifap) argument
521 if (ifap)
522 *ifap = NULL;
564 if (ifap != NULL)
565 *ifap = (ifdata != NULL) ? ifa : NULL;
840 if (ifap != NULL)
841 *ifap = NULL;
870 getifaddrs2(struct ifaddrs **ifap, argument
998 *ifap = start;
1012 getlifaddrs2(struct ifaddrs **ifap, argument
1179 rk_getifaddrs(struct ifaddrs **ifap) argument
[all...]
/freebsd-head/tools/tools/net80211/wlanwds/
H A Dwlanwds.c280 struct ifaddrs *ifap, *ifa; local
283 if (getifaddrs(&ifap) < 0) {
289 for (ifa = ifap; ifa != NULL; ifa++) {
324 freeifaddrs(ifap);
328 freeifaddrs(ifap);
/freebsd-head/sbin/dhclient/
H A Ddispatch.c79 struct ifaddrs *ifap, *ifa; local
82 if (getifaddrs(&ifap) != 0)
85 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
150 freeifaddrs(ifap);
/freebsd-head/tests/sys/netinet/
H A Dip_reass_test.c141 struct ifaddrs *ifa, *ifap; local
149 error = getifaddrs(&ifap);
151 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next)
165 freeifaddrs(ifap);
/freebsd-head/sbin/dumpon/
H A Ddumpon.c103 struct ifaddrs *ifa, *ifap; local
113 if (getifaddrs(&ifap) != 0)
115 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
126 freeifaddrs(ifap);
/freebsd-head/sbin/ifconfig/
H A Daf_inet6.c141 struct ifaddrs *ifap, *ifa; local
151 if (getifaddrs(&ifap) != 0)
153 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
168 freeifaddrs(ifap);
H A Difconfig.c399 struct ifaddrs *ifap, *sifap, *ifa; local
585 if (getifaddrs(&ifap) != 0)
590 if (calcorders(ifap, &q) != 0)
593 sifap = sortifaddrs(ifap, cmpifaddrs, &q);
666 freeifaddrs(ifap);
/freebsd-head/usr.sbin/ppp/
H A Dipv6cp.c121 struct ifaddrs *ifa, *ifap = NULL; local
137 if (getifaddrs(&ifap) < 0)
140 for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
171 freeifaddrs(ifap);
175 freeifaddrs(ifap);
/freebsd-head/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c812 struct ifaddrs *ifap; local
838 if (getifaddrs(&ifap)) {
843 curp = ifap;
948 freeifaddrs(ifap);
/freebsd-head/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c575 struct ifaddrs *ifap, *ifa; local
578 if (getifaddrs(&ifap) != 0) {
584 for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
605 freeifaddrs(ifap);
610 freeifaddrs(ifap);
/freebsd-head/usr.sbin/rpcbind/tests/
H A Daddrmerge_test.c74 getifaddrs(struct ifaddrs **ifap) argument
76 *ifap = mock_ifaddrs;

Completed in 369 milliseconds

12