Home
last modified time | relevance | path

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

/xnu-12377.1.9/bsd/net/
H A Droute.c2017 rtentry_ref_t gwrt = NULL; in rtrequest_common_locked() local
2101 if ((gwrt = rt->rt_gwroute) != NULL) { in rtrequest_common_locked()
2163 if (gwrt != NULL) { in rtrequest_common_locked()
2164 rtfree_locked(gwrt); in rtrequest_common_locked()
2804 rtentry_ref_t gwrt; in rt_setgate() local
2821 gwrt = rtalloc1_scoped_locked(gate, 1, RTF_PRCLONING, ifscope); in rt_setgate()
2822 if (gwrt != NULL) { in rt_setgate()
2823 RT_LOCK_ASSERT_NOTHELD(gwrt); in rt_setgate()
2841 if (gwrt == rt) { in rt_setgate()
2842 RT_REMREF_LOCKED(gwrt); in rt_setgate()
[all …]
H A Dif_llreach.c431 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 Droute_private.h527 struct rtentry *gwrt; member
540 struct rtentry *gwrt, int route_ev_code);
H A Dnecp_client.c8507 struct rtentry *__single gwrt = NULL; in necp_client_destination_mac_address() local
8521 err = route_to_gwroute(remote, rt, &gwrt); in necp_client_destination_mac_address()
8526 ASSERT(gwrt != NULL); in necp_client_destination_mac_address()
8527 RT_LOCK_ASSERT_HELD(gwrt); in necp_client_destination_mac_address()
8528 tgt_rt = gwrt; in necp_client_destination_mac_address()
8542 if (gwrt != NULL) { in necp_client_destination_mac_address()
8543 RT_UNLOCK(gwrt); in necp_client_destination_mac_address()
8544 rtfree(gwrt); in necp_client_destination_mac_address()
8545 gwrt = NULL; in necp_client_destination_mac_address()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c390 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.1.9/bsd/netinet6/
H A Dnd6.c3949 rtentry_ref_t gwrt; in nd6_output_list() local
3996 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list()
4008 RT_LOCK_SPIN(gwrt); in nd6_output_list()
4009 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list()
4011 RT_UNLOCK(gwrt); in nd6_output_list()
4013 rtfree(gwrt); in nd6_output_list()
4016 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list()
4026 gwrt == NULL || gwrt == rt || in nd6_output_list()
4028 if (gwrt == rt) { in nd6_output_list()
4029 RT_REMREF_LOCKED(gwrt); in nd6_output_list()
[all …]