Home
last modified time | relevance | path

Searched refs:gwrt (Results 1 – 5 of 5) sorted by relevance

/xnu-8792.41.9/bsd/net/
H A Droute.c1949 struct rtentry *gwrt = NULL; in rtrequest_common_locked() local
2033 if ((gwrt = rt->rt_gwroute) != NULL) { in rtrequest_common_locked()
2095 if (gwrt != NULL) { in rtrequest_common_locked()
2096 rtfree_locked(gwrt); in rtrequest_common_locked()
2707 struct rtentry *gwrt; in rt_setgate() local
2724 gwrt = rtalloc1_scoped_locked(gate, 1, RTF_PRCLONING, ifscope); in rt_setgate()
2725 if (gwrt != NULL) { in rt_setgate()
2726 RT_LOCK_ASSERT_NOTHELD(gwrt); in rt_setgate()
2744 if (gwrt == rt) { in rt_setgate()
2745 RT_REMREF_LOCKED(gwrt); in rt_setgate()
[all …]
H A Dif_llreach.c429 struct rtentry *gwrt; in ifnet_llreach_get_defrouter() local
433 (gwrt = rt->rt_gwroute) != NULL && in ifnet_llreach_get_defrouter()
434 rt_key(rt)->sa_family == rt_key(gwrt)->sa_family && in ifnet_llreach_get_defrouter()
435 (gwrt->rt_flags & RTF_UP)) { in ifnet_llreach_get_defrouter()
437 RT_LOCK(gwrt); in ifnet_llreach_get_defrouter()
438 if (gwrt->rt_llinfo_get_iflri != NULL) { in ifnet_llreach_get_defrouter()
439 (*gwrt->rt_llinfo_get_iflri)(gwrt, iflri); in ifnet_llreach_get_defrouter()
442 RT_UNLOCK(gwrt); in ifnet_llreach_get_defrouter()
H A Droute_private.h493 struct rtentry *gwrt; member
506 struct rtentry *gwrt, int route_ev_code);
/xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c417 struct rtentry *rt = NULL, *gwrt = NULL; in flow_route_configure() local
494 err = route_to_gwroute(SA(&fr->fr_faddr), rt, &gwrt); in flow_route_configure()
502 ASSERT(gwrt == NULL); in flow_route_configure()
510 ASSERT(gwrt != NULL); in flow_route_configure()
511 RT_LOCK_ASSERT_HELD(gwrt); in flow_route_configure()
519 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure()
526 fr->fr_rt_gw = gwrt; /* move reference to fr */ in flow_route_configure()
527 RT_ADDREF_LOCKED(gwrt); /* for this routine */ in flow_route_configure()
543 RT_UNLOCK(gwrt); in flow_route_configure()
583 if (gwrt != NULL) { in flow_route_configure()
[all …]
/xnu-8792.41.9/bsd/netinet6/
H A Dnd6.c4146 struct rtentry *gwrt; in nd6_output_list() local
4191 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list()
4203 RT_LOCK_SPIN(gwrt); in nd6_output_list()
4204 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list()
4206 RT_UNLOCK(gwrt); in nd6_output_list()
4208 rtfree(gwrt); in nd6_output_list()
4211 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list()
4221 gwrt == NULL || gwrt == rt || in nd6_output_list()
4223 if (gwrt == rt) { in nd6_output_list()
4224 RT_REMREF_LOCKED(gwrt); in nd6_output_list()
[all …]