Lines Matching refs:rt_gateway
830 /* Embed scope in src for comparison against rt_gateway below */
841 (!equal(src, rt->rt_gateway) || !equal(rt->rt_ifa->ifa_addr,
1269 gateway = rt->rt_gateway;
1373 rt2->rt_gateway,
1589 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL);
1656 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK &&
1659 kdp_set_gateway_mac(SDL(gwrt->rt_gateway)->sdl_data);
1663 * Prepare to store the gateway in rt_gateway. Both dst and gateway
1665 * have room, reuse the old buffer since rt_gateway already points
1667 * the 'dst' address and point rt_gateway to the right place.
1669 if (rt->rt_gateway == NULL || glen > ROUNDUP(rt->rt_gateway->sa_len)) {
1684 * which case rt_key(rt) is NULL (and so does rt_gateway).
1689 rt->rt_gateway = (struct sockaddr *)(new + dlen);
1695 Bcopy(gate, rt->rt_gateway, glen);
1698 * For consistency between rt_gateway and rt_key(gwrt).
1702 rt->rt_gateway->sa_family == AF_INET &&
1704 sa_set_ifscope(rt->rt_gateway,