Lines Matching refs:rt_gateway

145  * rt_key, rt_gateway, rt_ifp, rt_ifa
154 * entry will prevent its rt_key, rt_gateway, rt_ifp and rt_ifa
1246 * comparison against rt_gateway below.
1280 (!equal(src, rt->rt_gateway) || !equal(rt->rt_ifa->ifa_addr,
1792 * and will use its rt_gateway, rt_rmx as part of the cloning
1794 * parent's rt_ifa and rt_gateway will not change, and its
1805 gateway = rt->rt_gateway;
1936 * rt_gateway of rt2 will not change.
1939 rt2->rt_gateway, rt_mask(rt2),
2212 * for rt_key and rt_gateway in the event the gateway portion changes.
2214 * of rt_gateway; this rounding-up would help ensure that the gateway
2223 * rt_key and rt_gateway are allocated out of the same memory chunk.
2286 * Safe to drop rt_lock and use rt_key, rt_gateway,
2292 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL);
2349 * we're holding rnh_lock now, so rt_gateway and rt_ifp of gwrt
2394 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK &&
2397 kdp_set_gateway_mac(SDL((void *)gwrt->rt_gateway)->
2407 * Prepare to store the gateway in rt_gateway. Both dst and gateway
2409 * have room, reuse the old buffer since rt_gateway already points
2411 * the 'dst' address and point rt_gateway to the right place.
2413 if (rt->rt_gateway == NULL || glen > SA_SIZE(rt->rt_gateway->sa_len)) {
2429 * which case rt_key(rt) is NULL (and so does rt_gateway).
2435 rt->rt_gateway = (struct sockaddr *)(new + dlen);
2441 Bcopy(gate, rt->rt_gateway, gate->sa_len);
2444 * For consistency between rt_gateway and rt_key(gwrt).
2448 if (rt->rt_gateway->sa_family == AF_INET &&
2450 sin_set_ifscope(rt->rt_gateway,
2452 } else if (rt->rt_gateway->sa_family == AF_INET6 &&
2454 sin6_set_ifscope(rt->rt_gateway,
3388 bcopy(rt->rt_gateway, gw, MIN(sizeof (ss),
3389 rt->rt_gateway->sa_len));
3405 bcopy(rt->rt_gateway, gw, MIN(sizeof (ss),
3406 rt->rt_gateway->sa_len));
3420 gwrt == rt || !equal(gw, rt->rt_gateway)) {
3533 rt->rt_ifp == gwrt->rt_ifp && rt->rt_gateway->sa_family ==
3538 if (rt->rt_gateway->sa_family == AF_INET ||
3539 rt->rt_gateway->sa_family == AF_INET6) {
3542 * We need to compare rt_key and rt_gateway; create
3546 (void) sa_copy(rt->rt_gateway, &gw_ss, NULL);
3550 isequal = equal(rt_key(gwrt), rt->rt_gateway);