Lines Matching refs:gwrt
4081 struct rtentry *gwrt; in nd6_output_list() local
4126 if ((gwrt = rt->rt_gwroute) == NULL) { in nd6_output_list()
4138 RT_LOCK_SPIN(gwrt); in nd6_output_list()
4139 if (!(gwrt->rt_flags & RTF_UP)) { in nd6_output_list()
4141 RT_UNLOCK(gwrt); in nd6_output_list()
4143 rtfree(gwrt); in nd6_output_list()
4146 gwrt = rtalloc1_scoped_locked(SA(&gw6), 1, 0, in nd6_output_list()
4156 gwrt == NULL || gwrt == rt || in nd6_output_list()
4158 if (gwrt == rt) { in nd6_output_list()
4159 RT_REMREF_LOCKED(gwrt); in nd6_output_list()
4160 gwrt = NULL; in nd6_output_list()
4163 if (gwrt != NULL) { in nd6_output_list()
4164 rtfree_locked(gwrt); in nd6_output_list()
4169 VERIFY(gwrt != NULL); in nd6_output_list()
4175 rt_set_gwroute(rt, rt_key(rt), gwrt); in nd6_output_list()
4180 rt = gwrt; in nd6_output_list()
4182 RT_ADDREF_LOCKED(gwrt); in nd6_output_list()
4183 RT_UNLOCK(gwrt); in nd6_output_list()
4187 rt = gwrt; in nd6_output_list()
4189 VERIFY(rt == gwrt); in nd6_output_list()