Lines Matching refs:gwrt
3949 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()
4030 gwrt = NULL; in nd6_output_list()
4033 if (gwrt != NULL) { in nd6_output_list()
4034 rtfree_locked(gwrt); in nd6_output_list()
4040 VERIFY(gwrt != NULL); in nd6_output_list()
4046 rt_set_gwroute(rt, rt_key(rt), gwrt); in nd6_output_list()
4051 rt = gwrt; in nd6_output_list()
4053 RT_ADDREF_LOCKED(gwrt); in nd6_output_list()
4054 RT_UNLOCK(gwrt); in nd6_output_list()
4058 rt = gwrt; in nd6_output_list()
4060 VERIFY(rt == gwrt); in nd6_output_list()