Searched refs:ifa (Results 1 – 9 of 9) sorted by relevance
/haiku/src/system/libnetwork/ |
H A D | getifaddrs.cpp | 174 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 D | fbsd_if.c | 388 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 D | if.c | 334 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 D | if_ether.h | 11 #define arp_ifinit(ifp, ifa) argument
|
/haiku/headers/compatibility/bsd/ |
H A D | ifaddrs.h | 31 void freeifaddrs(struct ifaddrs *ifa);
|
/haiku/src/system/libnetwork/netresolv/net/ |
H A D | getaddrinfo.c | 1646 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 D | if_var.h | 668 void ifa_free(struct ifaddr *ifa); 669 void ifa_ref(struct ifaddr *ifa);
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_ioctl.c | 3566 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 D | iflib.c | 4550 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()
|