Lines Matching refs:ifaddr

138 /* Lock group and attribute for ifaddr lock */
161 MALLOC_DEFINE(M_IFADDR, "ifaddr", "interface address");
168 static struct ifaddr *ifa_ifwithnet_common(const struct sockaddr *,
170 static void if_attach_ifa_common(struct ifnet *, struct ifaddr *, int);
171 static void if_detach_ifa_common(struct ifnet *, struct ifaddr *, int);
228 /* Setup lock group and attribute for ifaddr */
230 ifa_mtx_grp = lck_grp_alloc_init("ifaddr", ifa_mtx_grp_attr);
259 struct ifaddr **ifnet_addrs;
263 if_attach_ifa(struct ifnet *ifp, struct ifaddr *ifa)
269 if_attach_link_ifa(struct ifnet *ifp, struct ifaddr *ifa)
275 if_attach_ifa_common(struct ifnet *ifp, struct ifaddr *ifa, int link)
307 if_detach_ifa(struct ifnet *ifp, struct ifaddr *ifa)
313 if_detach_link_ifa(struct ifnet *ifp, struct ifaddr *ifa)
319 if_detach_ifa_common(struct ifnet *ifp, struct ifaddr *ifa, int link)
342 struct ifaddr *ifa2;
354 /* This must not be the last reference to the ifaddr */
424 ifnet_addrs = (struct ifaddr **)(void *)new_ifnet_addrs;
752 __private_extern__ struct ifaddr *
755 struct ifaddr *ifa;
776 struct ifaddr *
780 struct ifaddr *ifa;
781 struct ifaddr *result = NULL;
826 struct ifaddr *
830 struct ifaddr *ifa;
831 struct ifaddr *result = NULL;
865 struct ifaddr *
868 struct ifaddr *result = NULL;
882 struct ifaddr *ifa = NULL;
922 struct ifaddr *
928 struct ifaddr *
938 static struct ifaddr *
942 struct ifaddr *ifa = NULL;
943 struct ifaddr *ifa_maybe = NULL;
1088 struct ifaddr *
1091 struct ifaddr *ifa = NULL;
1094 struct ifaddr *ifa_maybe = NULL;
1095 struct ifaddr *better_ifa_maybe = NULL;
1186 struct ifaddr *ifa;
1230 struct ifaddr **ifa;
2370 struct ifaddr *ifa;
3555 struct ifaddr *
3556 ifa_remref(struct ifaddr *ifa, int locked)
3600 ifa_addref(struct ifaddr *ifa, int locked)
3618 ifa_lock_init(struct ifaddr *ifa)
3624 ifa_lock_destroy(struct ifaddr *ifa)