Lines Matching refs:gw

1712     const struct sockaddr *gw, unsigned int ifscope)  in ifa_ifwithroute_common_locked()  argument
1727 const struct sockaddr_in6 *gw_addr = SIN6(gw); in ifa_ifwithroute_common_locked()
1755 if (gw != NULL && in ifa_ifwithroute_common_locked()
1756 ((gw->sa_family == AF_INET) || in ifa_ifwithroute_common_locked()
1757 (gw->sa_family == AF_INET6))) { in ifa_ifwithroute_common_locked()
1758 gw = sa_copy(__DECONST_SA(gw), &gw_ss, IN6_NULL_IF_EMBEDDED_SCOPE(&ifscope)); in ifa_ifwithroute_common_locked()
1773 ifa = ifa_ifwithaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1782 ifa = ifa_ifwithdstaddr_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1785 ifa = ifa_ifwithdstaddr(gw); in ifa_ifwithroute_common_locked()
1789 ifa = ifa_ifwithnet_scoped(gw, ifscope); in ifa_ifwithroute_common_locked()
1830 if ((ifa == NULL || (gw != NULL && in ifa_ifwithroute_common_locked()
1831 !sa_equal(ifa->ifa_addr, __DECONST_SA(gw)))) && in ifa_ifwithroute_common_locked()
1832 (rt = rtalloc1_scoped_locked(__DECONST_SA(gw), in ifa_ifwithroute_common_locked()
4270 struct sockaddr *gw = SA(&ss); in route_to_gwroute() local
4277 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4279 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4295 SOCKADDR_COPY(rt->rt_gateway, gw, MIN(sizeof(ss), in route_to_gwroute()
4297 gw->sa_len = MIN(sizeof(ss), rt->rt_gateway->sa_len); in route_to_gwroute()
4302 gwrt = rtalloc1_scoped_locked(gw, 1, 0, ifindex); in route_to_gwroute()
4311 gwrt == rt || !sa_equal(gw, rt->rt_gateway)) { in route_to_gwroute()