Lines Matching refs:rt2
215 struct rtentry *rt2;
221 rt2 = rtalloc1_scoped_locked((struct sockaddr *)sin6, 0,
223 if (rt2) {
224 RT_LOCK(rt2);
225 if ((rt2->rt_flags & RTF_LLINFO) &&
226 (rt2->rt_flags & RTF_HOST) &&
227 rt2->rt_gateway != NULL &&
228 rt2->rt_gateway->sa_family == AF_LINK) {
235 RT_UNLOCK(rt2);
236 (void) rtrequest_locked(RTM_DELETE, rt_key(rt2),
237 rt2->rt_gateway, rt_mask(rt2),
238 rt2->rt_flags, 0);
242 RT_UNLOCK(rt2);
244 rtfree_locked(rt2);
247 struct rtentry *rt2;
260 rt2 = rtalloc1_scoped_locked((struct sockaddr *)sin6, 0,
262 if (rt2) {
263 RT_LOCK(rt2);
264 if ((rt2->rt_flags & (RTF_CLONING|RTF_HOST|RTF_GATEWAY))
266 && rt2->rt_gateway
267 && rt2->rt_gateway->sa_family == AF_LINK
268 && rt2->rt_ifp == rt->rt_ifp) {
269 ret = rt2->rt_nodes;
271 RT_UNLOCK(rt2);
272 rtfree_locked(rt2);