Home
last modified time | relevance | path

Searched refs:ifa (Results 1 – 9 of 9) sorted by relevance

/haiku/src/system/libnetwork/
H A Dgetifaddrs.cpp174 freeifaddrs(struct ifaddrs* ifa) in freeifaddrs() argument
176 while (ifa != NULL) { in freeifaddrs()
177 free((void*)ifa->ifa_name); in freeifaddrs()
178 delete ifa->ifa_addr; in freeifaddrs()
179 delete ifa->ifa_netmask; in freeifaddrs()
180 delete ifa->ifa_dstaddr; in freeifaddrs()
182 struct ifaddrs* next = ifa->ifa_next; in freeifaddrs()
183 delete ifa; in freeifaddrs()
184 ifa = next; in freeifaddrs()
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_if.c388 struct ifaddr *ifa; in if_lladdr_count() local
393 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) in if_lladdr_count()
394 if (ifa->ifa_addr->sa_family == AF_LINK) in if_lladdr_count()
527 struct ifaddr *ifa; in if_foreach_lladdr() local
534 TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) { in if_foreach_lladdr()
535 if (ifa->ifa_addr->sa_family != AF_LINK) in if_foreach_lladdr()
537 count += (*cb)(cb_arg, (struct sockaddr_dl *)ifa->ifa_addr, in if_foreach_lladdr()
596 struct ifaddr *ifa;
603 CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
604 if (ifa->ifa_addr->sa_family != type)
[all …]
H A Dif.c334 struct ifaddr *ifa; in if_attach() local
369 ifasize = sizeof(*ifa) + 2 * socksize; in if_attach()
370 ifa = ifa_alloc(ifasize, M_WAITOK); in if_attach()
371 sdl = (struct sockaddr_dl *)(ifa + 1); in if_attach()
378 ifp->if_addr = ifa; in if_attach()
379 ifa->ifa_ifp = ifp; in if_attach()
381 ifa->ifa_addr = (struct sockaddr *)sdl; in if_attach()
383 ifa->ifa_netmask = (struct sockaddr *)sdl; in if_attach()
387 dprintf("if_attach %p\n", ifa->ifa_addr); in if_attach()
806 struct ifaddr *ifa; in ether_ifattach() local
[all …]
/haiku/src/libs/compat/freebsd_network/compat/netinet/
H A Dif_ether.h11 #define arp_ifinit(ifp, ifa) argument
/haiku/headers/compatibility/bsd/
H A Difaddrs.h31 void freeifaddrs(struct ifaddrs *ifa);
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetaddrinfo.c1646 struct ifaddrs *ifaddrs, *ifa; local
1652 for (ifa = ifaddrs; ifa != NULL; ifa = ifa->ifa_next)
1654 if (ifa->ifa_addr && (ifa->ifa_flags & IFF_UP)) {
1656 if (ifa->ifa_addr && (ifa->ifa_flags & IFF_UP)
1657 && !(ifa->ifa_flags & IFF_LOOPBACK)) {
1658 assert(ifa->ifa_addr->sa_family < 64);
1660 *mask |= (uint64_t)1 << ifa->ifa_addr->sa_family;
/haiku/src/libs/compat/freebsd_network/compat/net/
H A Dif_var.h668 void ifa_free(struct ifaddr *ifa);
669 void ifa_ref(struct ifaddr *ifa);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_ioctl.c3566 struct ifaddr *ifa; /* XXX */ in ieee80211_ioctl() local
3680 ifa = (struct ifaddr *) data; in ieee80211_ioctl()
3681 switch (ifa->ifa_addr->sa_family) { in ieee80211_ioctl()
3688 arp_ifinit(ifp, ifa); in ieee80211_ioctl()
/haiku/src/libs/compat/freebsd_iflib/
H A Diflib.c4550 struct ifaddr *ifa = (struct ifaddr *)data; in iflib_if_ioctl() local
4558 if (ifa->ifa_addr->sa_family == AF_INET) in iflib_if_ioctl()
4562 if (ifa->ifa_addr->sa_family == AF_INET6) in iflib_if_ioctl()
4575 arp_ifinit(ifp, ifa); in iflib_if_ioctl()