Searched refs:gwrt (Results 1 – 5 of 5) sorted by relevance
| /xnu-10063.101.15/bsd/net/ |
| H A D | route.c | 1958 rtentry_ref_t gwrt = NULL; in rtrequest_common_locked() local 2042 if ((gwrt = rt->rt_gwroute) != NULL) { in rtrequest_common_locked() 2104 if (gwrt != NULL) { in rtrequest_common_locked() 2105 rtfree_locked(gwrt); in rtrequest_common_locked() 2730 rtentry_ref_t gwrt; in rt_setgate() local 2747 gwrt = rtalloc1_scoped_locked(gate, 1, RTF_PRCLONING, ifscope); in rt_setgate() 2748 if (gwrt != NULL) { in rt_setgate() 2749 RT_LOCK_ASSERT_NOTHELD(gwrt); in rt_setgate() 2767 if (gwrt == rt) { in rt_setgate() 2768 RT_REMREF_LOCKED(gwrt); in rt_setgate() [all …]
|
| H A D | if_llreach.c | 428 struct rtentry *gwrt; in ifnet_llreach_get_defrouter() local 432 (gwrt = rt->rt_gwroute) != NULL && in ifnet_llreach_get_defrouter() 433 rt_key(rt)->sa_family == rt_key(gwrt)->sa_family && in ifnet_llreach_get_defrouter() 434 (gwrt->rt_flags & RTF_UP)) { in ifnet_llreach_get_defrouter() 436 RT_LOCK(gwrt); in ifnet_llreach_get_defrouter() 437 if (gwrt->rt_llinfo_get_iflri != NULL) { in ifnet_llreach_get_defrouter() 438 (*gwrt->rt_llinfo_get_iflri)(gwrt, iflri); in ifnet_llreach_get_defrouter() 441 RT_UNLOCK(gwrt); in ifnet_llreach_get_defrouter()
|
| H A D | route_private.h | 475 struct rtentry *gwrt; member 488 struct rtentry *gwrt, int route_ev_code);
|
| /xnu-10063.101.15/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 389 struct rtentry *rt = NULL, *gwrt = NULL; in flow_route_configure() local 466 err = route_to_gwroute(SA(&fr->fr_faddr), rt, &gwrt); in flow_route_configure() 474 ASSERT(gwrt == NULL); in flow_route_configure() 482 ASSERT(gwrt != NULL); in flow_route_configure() 483 RT_LOCK_ASSERT_HELD(gwrt); in flow_route_configure() 491 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure() 498 fr->fr_rt_gw = gwrt; /* move reference to fr */ in flow_route_configure() 499 RT_ADDREF_LOCKED(gwrt); /* for this routine */ in flow_route_configure() 515 RT_UNLOCK(gwrt); in flow_route_configure() 555 if (gwrt != NULL) { in flow_route_configure() [all …]
|
| /xnu-10063.101.15/bsd/netinet6/ |
| H A D | nd6.c | 4156 struct rtentry *gwrt; in nd6_output_list() local 4201 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list() 4213 RT_LOCK_SPIN(gwrt); in nd6_output_list() 4214 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list() 4216 RT_UNLOCK(gwrt); in nd6_output_list() 4218 rtfree(gwrt); in nd6_output_list() 4221 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list() 4231 gwrt == NULL || gwrt == rt || in nd6_output_list() 4233 if (gwrt == rt) { in nd6_output_list() 4234 RT_REMREF_LOCKED(gwrt); in nd6_output_list() [all …]
|