Lines Matching refs:gw

1710     const struct sockaddr *gw, unsigned int ifscope)  in ifa_ifwithroute_common_locked()  argument
1725 const struct sockaddr_in6 *gw_addr = SIN6(gw); in ifa_ifwithroute_common_locked()
1753 if (gw != NULL && in ifa_ifwithroute_common_locked()
1754 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1755 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1756 gw = sa_copy(__DECONST_SA(gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1771 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1780 ifa = ifa_ifwithdstaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1783 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1787 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1828 if ((ifa == NULL || (gw != NULL && in ifa_ifwithroute_common_locked()
1829 !sa_equal(ifa->ifa_addr, __DECONST_SA(gw)))) && in ifa_ifwithroute_common_locked()
1830 (rt = rtalloc1_scoped_locked(__DECONST_SA(gw), in ifa_ifwithroute_common_locked()
4268 struct sockaddr *gw = SA(&ss); in route_to_gwroute() local
4275 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4277 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4293 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4295 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4300 gwrt = rtalloc1_scoped_locked(gw, 1, 0, ifindex); in route_to_gwroute()
4309 gwrt == rt || !sa_equal(gw, rt->rt_gateway)) { in route_to_gwroute()