Searched refs:gwrt (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.81.4/bsd/net/ |
| H A D | route.c | 2019 rtentry_ref_t gwrt = NULL; in rtrequest_common_locked() local 2103 if ((gwrt = rt->rt_gwroute) != NULL) { in rtrequest_common_locked() 2165 if (gwrt != NULL) { in rtrequest_common_locked() 2166 rtfree_locked(gwrt); in rtrequest_common_locked() 2806 rtentry_ref_t gwrt; in rt_setgate() local 2823 gwrt = rtalloc1_scoped_locked(gate, 1, RTF_PRCLONING, ifscope); in rt_setgate() 2824 if (gwrt != NULL) { in rt_setgate() 2825 RT_LOCK_ASSERT_NOTHELD(gwrt); in rt_setgate() 2843 if (gwrt == rt) { in rt_setgate() 2844 RT_REMREF_LOCKED(gwrt); in rt_setgate() [all …]
|
| H A D | if_llreach.c | 431 struct rtentry *gwrt; in ifnet_llreach_get_defrouter() local 435 (gwrt = rt->rt_gwroute) != NULL && in ifnet_llreach_get_defrouter() 436 rt_key(rt)->sa_family == rt_key(gwrt)->sa_family && in ifnet_llreach_get_defrouter() 437 (gwrt->rt_flags & RTF_UP)) { in ifnet_llreach_get_defrouter() 439 RT_LOCK(gwrt); in ifnet_llreach_get_defrouter() 440 if (gwrt->rt_llinfo_get_iflri != NULL) { in ifnet_llreach_get_defrouter() 441 (*gwrt->rt_llinfo_get_iflri)(gwrt, iflri); in ifnet_llreach_get_defrouter() 444 RT_UNLOCK(gwrt); in ifnet_llreach_get_defrouter()
|
| H A D | route_private.h | 527 struct rtentry *gwrt; member 540 struct rtentry *gwrt, int route_ev_code);
|
| H A D | necp_client.c | 8487 struct rtentry *__single gwrt = NULL; in necp_client_destination_mac_address() local 8501 err = route_to_gwroute(remote, rt, &gwrt); in necp_client_destination_mac_address() 8506 ASSERT(gwrt != NULL); in necp_client_destination_mac_address() 8507 RT_LOCK_ASSERT_HELD(gwrt); in necp_client_destination_mac_address() 8508 tgt_rt = gwrt; in necp_client_destination_mac_address() 8522 if (gwrt != NULL) { in necp_client_destination_mac_address() 8523 RT_UNLOCK(gwrt); in necp_client_destination_mac_address() 8524 rtfree(gwrt); in necp_client_destination_mac_address() 8525 gwrt = NULL; in necp_client_destination_mac_address()
|
| /xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 390 struct rtentry *rt = NULL, *__single gwrt = NULL; in flow_route_configure() local 467 err = route_to_gwroute(SA(&fr->fr_faddr), rt, &gwrt); in flow_route_configure() 475 ASSERT(gwrt == NULL); in flow_route_configure() 483 ASSERT(gwrt != NULL); in flow_route_configure() 484 RT_LOCK_ASSERT_HELD(gwrt); in flow_route_configure() 492 if (gwrt != rt && (rt->rt_flags & RTF_GATEWAY) && in flow_route_configure() 499 fr->fr_rt_gw = gwrt; /* move reference to fr */ in flow_route_configure() 500 RT_ADDREF_LOCKED(gwrt); /* for this routine */ in flow_route_configure() 516 RT_UNLOCK(gwrt); in flow_route_configure() 556 if (gwrt != NULL) { in flow_route_configure() [all …]
|
| /xnu-12377.81.4/bsd/netinet6/ |
| H A D | nd6.c | 3957 rtentry_ref_t gwrt; in nd6_output_list() local 4004 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list() 4016 RT_LOCK_SPIN(gwrt); in nd6_output_list() 4017 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list() 4019 RT_UNLOCK(gwrt); in nd6_output_list() 4021 rtfree(gwrt); in nd6_output_list() 4024 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list() 4034 gwrt == NULL || gwrt == rt || in nd6_output_list() 4036 if (gwrt == rt) { in nd6_output_list() 4037 RT_REMREF_LOCKED(gwrt); in nd6_output_list() [all …]
|