Searched refs:gwrt (Results 1 – 5 of 5) sorted by relevance
| /xnu-11215.81.4/bsd/net/ |
| H A D | route.c | 1964 rtentry_ref_t gwrt = NULL; in rtrequest_common_locked() local 2048 if ((gwrt = rt->rt_gwroute) != NULL) { in rtrequest_common_locked() 2110 if (gwrt != NULL) { in rtrequest_common_locked() 2111 rtfree_locked(gwrt); in rtrequest_common_locked() 2751 rtentry_ref_t gwrt; in rt_setgate() local 2768 gwrt = rtalloc1_scoped_locked(gate, 1, RTF_PRCLONING, ifscope); in rt_setgate() 2769 if (gwrt != NULL) { in rt_setgate() 2770 RT_LOCK_ASSERT_NOTHELD(gwrt); in rt_setgate() 2788 if (gwrt == rt) { in rt_setgate() 2789 RT_REMREF_LOCKED(gwrt); in rt_setgate() [all …]
|
| H A D | if_llreach.c | 430 struct rtentry *gwrt; in ifnet_llreach_get_defrouter() local 434 (gwrt = rt->rt_gwroute) != NULL && in ifnet_llreach_get_defrouter() 435 rt_key(rt)->sa_family == rt_key(gwrt)->sa_family && in ifnet_llreach_get_defrouter() 436 (gwrt->rt_flags & RTF_UP)) { in ifnet_llreach_get_defrouter() 438 RT_LOCK(gwrt); in ifnet_llreach_get_defrouter() 439 if (gwrt->rt_llinfo_get_iflri != NULL) { in ifnet_llreach_get_defrouter() 440 (*gwrt->rt_llinfo_get_iflri)(gwrt, iflri); in ifnet_llreach_get_defrouter() 443 RT_UNLOCK(gwrt); in ifnet_llreach_get_defrouter()
|
| H A D | route_private.h | 525 struct rtentry *gwrt; member 538 struct rtentry *gwrt, int route_ev_code);
|
| /xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 388 struct rtentry *rt = NULL, *__single gwrt = NULL; in flow_route_configure() local 465 err = route_to_gwroute(SA(&fr->fr_faddr), rt, &gwrt); in flow_route_configure() 473 ASSERT(gwrt == NULL); in flow_route_configure() 481 ASSERT(gwrt != NULL); in flow_route_configure() 482 RT_LOCK_ASSERT_HELD(gwrt); in flow_route_configure() 490 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure() 497 fr->fr_rt_gw = gwrt; /* move reference to fr */ in flow_route_configure() 498 RT_ADDREF_LOCKED(gwrt); /* for this routine */ in flow_route_configure() 514 RT_UNLOCK(gwrt); in flow_route_configure() 554 if (gwrt != NULL) { in flow_route_configure() [all …]
|
| /xnu-11215.81.4/bsd/netinet6/ |
| H A D | nd6.c | 3938 rtentry_ref_t gwrt; in nd6_output_list() local 3983 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list() 3995 RT_LOCK_SPIN(gwrt); in nd6_output_list() 3996 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list() 3998 RT_UNLOCK(gwrt); in nd6_output_list() 4000 rtfree(gwrt); in nd6_output_list() 4003 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list() 4013 gwrt == NULL || gwrt == rt || in nd6_output_list() 4015 if (gwrt == rt) { in nd6_output_list() 4016 RT_REMREF_LOCKED(gwrt); in nd6_output_list() [all …]
|