Lines Matching refs:ifaddr
1011 ipnetif_addr_t *ifaddr;
1034 for (ifaddr = list_head(list);
1035 ifaddr != NULL && addrtype == IPNETADDR_UNKNOWN;
1036 ifaddr = list_next(list, ifaddr)) {
1042 ipnet->ipnet_zoneid != ifaddr->ifa_zone)
1046 if (ifaddr->ifa_ip4addr != INADDR_ANY &&
1047 *(addr->iap_addr4) == ifaddr->ifa_ip4addr)
1049 else if (ifaddr->ifa_brdaddr != INADDR_ANY &&
1050 *(addr->iap_addr4) == ifaddr->ifa_brdaddr)
1055 &ifaddr->ifa_ip6addr))
1387 ipnetif_addr_t *ifaddr;
1398 if ((ifaddr = kmem_alloc(sizeof (*ifaddr), KM_NOSLEEP)) == NULL)
1400 ifaddr->ifa_zone = zoneid;
1401 ifaddr->ifa_id = lif;
1402 ifaddr->ifa_shared = NULL;
1406 ifaddr->ifa_ip4addr =
1415 ifaddr->ifa_brdaddr = bcast.sin_addr.s_addr;
1418 ifaddr->ifa_ip6addr = ((struct sockaddr_in6 *)&addr)->sin6_addr;
1435 ifaddr->ifa_shared = ifp2;
1438 &ipnetif->if_ip4addr_list : &ipnetif->if_ip6addr_list, ifaddr);
1443 ipnet_delete_ifaddr(ipnetif_addr_t *ifaddr, ipnetif_t *ipnetif, boolean_t isv6)
1446 if (ifaddr->ifa_shared != NULL)
1447 ipnetif_clone_release(ifaddr->ifa_shared);
1450 &ipnetif->if_ip6addr_list : &ipnetif->if_ip4addr_list, ifaddr);
1452 kmem_free(ifaddr, sizeof (*ifaddr));
1520 ipnetif_addr_t *ifaddr;
1524 if ((ifaddr = ipnet_match_lif(ipnetif, lifindex, isv6)) != NULL) {
1527 * ifaddr and re-create it.
1529 ipnet_delete_ifaddr(ifaddr, ipnetif, isv6);
1541 ipnetif_addr_t *ifaddr;
1545 if ((ifaddr = ipnet_match_lif(ipnetif, lifindex, isv6)) != NULL)
1546 ipnet_delete_ifaddr(ifaddr, ipnetif, isv6);
1681 ipnetif_addr_t *ifaddr;
1686 for (ifaddr = list_head(list); ifaddr != NULL;
1687 ifaddr = list_next(list, ifaddr)) {
1688 if (lid == ifaddr->ifa_id)
1692 return (ifaddr);