Lines Matching refs:gw
1657 const struct sockaddr *gw, unsigned int ifscope) in ifa_ifwithroute_common_locked() argument
1672 const struct sockaddr_in6 *gw_addr = SIN6(gw); in ifa_ifwithroute_common_locked()
1700 if (gw != NULL && in ifa_ifwithroute_common_locked()
1701 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1702 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1703 gw = sa_copy(__DECONST_SA(gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1718 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1727 ifa = ifa_ifwithdstaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1730 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1734 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1775 if ((ifa == NULL || (gw != NULL && in ifa_ifwithroute_common_locked()
1776 !sa_equal(ifa->ifa_addr, __DECONST_SA(gw)))) && in ifa_ifwithroute_common_locked()
1777 (rt = rtalloc1_scoped_locked(__DECONST_SA(gw), in ifa_ifwithroute_common_locked()
4213 struct sockaddr *gw = SA(&ss); in route_to_gwroute() local
4220 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4222 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4238 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4240 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4245 gwrt = rtalloc1_scoped_locked(gw, 1, 0, ifindex); in route_to_gwroute()
4254 gwrt == rt || !sa_equal(gw, rt->rt_gateway)) { in route_to_gwroute()