Lines Matching refs:gw
1428 const struct sockaddr *gw, unsigned int ifscope)
1451 if (gw != NULL &&
1452 ((gw->sa_family == AF_INET && ip_doscopedroute) ||
1453 (gw->sa_family == AF_INET6 && ip6_doscopedroute)))
1455 if (gw != NULL && gw->sa_family == AF_INET && ip_doscopedroute)
1457 gw = sa_copy(SA((uintptr_t)gw), &gw_ss, NULL);
1471 ifa = ifa_ifwithaddr_scoped(gw, ifscope);
1478 ifa = ifa_ifwithdstaddr(gw);
1481 ifa = ifa_ifwithnet_scoped(gw, ifscope);
1519 * on new entries from rtinit, hence (ifa->ifa_addr != gw).
1522 !equal(ifa->ifa_addr, (struct sockaddr *)(size_t)gw)) &&
1523 (rt = rtalloc1_scoped_locked((struct sockaddr *)(size_t)gw,
3381 struct sockaddr *gw = (struct sockaddr *)&ss;
3388 bcopy(rt->rt_gateway, gw, MIN(sizeof (ss),
3405 bcopy(rt->rt_gateway, gw, MIN(sizeof (ss),
3411 gwrt = rtalloc1_scoped_locked(gw, 1, 0, ifindex);
3420 gwrt == rt || !equal(gw, rt->rt_gateway)) {