Lines Matching defs:rt
94 struct rtentry *rt = NULL;
114 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
134 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
176 rt = rin6.ro_rt;
199 if (in6_setscope(&src_in6, rt->rt_ifp, &outzone)) {
213 in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard);
223 if_name(m->m_pkthdr.rcvif), if_name(rt->rt_ifp));
240 in6_setscope(&dst_in6, rt->rt_ifp, &outzone) != 0 ||
247 if (rt->rt_flags & RTF_GATEWAY)
248 dst = (struct sockaddr_in6 *)rt->rt_gateway;
259 if (V_ip6_sendredirects && rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt &&
260 (rt->rt_flags & (RTF_DYNAMIC|RTF_MODIFIED)) == 0)
271 if ((rt->rt_ifp->if_flags & IFF_LOOPBACK) != 0) {
284 if ((rt->rt_flags & (RTF_BLACKHOLE|RTF_REJECT)) == 0)
292 if_name(rt->rt_ifp));
299 origifp = rt->rt_ifp;
313 error = pfil_run_hooks(&V_inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT,
326 RTFREE(rt);
355 RTFREE(rt);
361 if (m->m_pkthdr.len > IN6_LINKMTU(rt->rt_ifp)) {
362 in6_ifstat_inc(rt->rt_ifp, ifs6_in_toobig);
365 IN6_LINKMTU(rt->rt_ifp));
369 error = nd6_output_ifp(rt->rt_ifp, origifp, m, dst, NULL);
371 in6_ifstat_inc(rt->rt_ifp, ifs6_out_discard);
375 in6_ifstat_inc(rt->rt_ifp, ifs6_out_forward);
389 icmp6_redirect_output(mcopy, rt);
420 if (rt != NULL)
421 RTFREE(rt);