Lines Matching refs:rt_gwroute
134 * rt_flags, rt_genmask, rt_llinfo, rt_rmx, rt_refcnt, rt_gwroute
1726 if ((gwrt = rt->rt_gwroute) != NULL)
1727 rt->rt_gwroute = NULL;
1881 * also add the rt_gwroute if possible.
2040 if ((rt->rt_flags & RTF_GATEWAY) && rt->rt_gwroute != NULL)
2041 rt_set_gwroute(rt, rt_key(rt), rt->rt_gwroute);
2302 * to the next-hop gateway and store it in rt_gwroute.
2317 * Don't ignore RTF_CLONING, since we prefer that rt_gwroute
2446 if ((rt->rt_flags & RTF_GATEWAY) && rt->rt_gwroute != NULL &&
2447 (rt->rt_gwroute->rt_flags & RTF_IFSCOPE)) {
2449 rt_key(rt->rt_gwroute)->sa_family == AF_INET) {
2451 sin_get_ifscope(rt_key(rt->rt_gwroute)));
2453 rt_key(rt->rt_gwroute)->sa_family == AF_INET6) {
2455 sin6_get_ifscope(rt_key(rt->rt_gwroute)));
2493 * Get rid of existing gateway route; if rt_gwroute is already
2497 if (rt->rt_gwroute != NULL) {
2498 struct rtentry *ogwrt = rt->rt_gwroute;
2501 rt->rt_gwroute = NULL;
2505 VERIFY(rt->rt_gwroute == NULL);
2511 if ((rt->rt_gwroute = gwrt) != NULL) {
3379 struct rtentry *gwrt = rt->rt_gwroute;
3403 rt->rt_gwroute = NULL;
3458 * rt_gwroute, in case it now points to a dead route entry.
3534 rt_key(gwrt)->sa_family && (rt->rt_gwroute == NULL ||
3535 !(rt->rt_gwroute->rt_flags & RTF_UP))) {