Lines Matching refs:rt
34 struct rtable *rt; in xfrm4_dst_lookup() local
40 err = __ip_route_output_key(net, &rt, &fl); in xfrm4_dst_lookup()
41 dst = &rt->u.dst; in xfrm4_dst_lookup()
51 struct rtable *rt; in xfrm4_get_saddr() local
57 rt = (struct rtable *)dst; in xfrm4_get_saddr()
58 saddr->a4 = rt->rt_src; in xfrm4_get_saddr()
71 if (xdst->u.rt.fl.oif == fl->oif && /*XXX*/ in __xfrm4_find_bundle()
72 xdst->u.rt.fl.fl4_dst == fl->fl4_dst && in __xfrm4_find_bundle()
73 xdst->u.rt.fl.fl4_src == fl->fl4_src && in __xfrm4_find_bundle()
74 xdst->u.rt.fl.fl4_tos == fl->fl4_tos && in __xfrm4_find_bundle()
97 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst() local
99 xdst->u.rt.fl = rt->fl; in xfrm4_fill_dst()
104 xdst->u.rt.idev = in_dev_get(dev); in xfrm4_fill_dst()
105 if (!xdst->u.rt.idev) in xfrm4_fill_dst()
108 xdst->u.rt.peer = rt->peer; in xfrm4_fill_dst()
109 if (rt->peer) in xfrm4_fill_dst()
110 atomic_inc(&rt->peer->refcnt); in xfrm4_fill_dst()
114 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst()
116 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst()
117 xdst->u.rt.rt_src = rt->rt_src; in xfrm4_fill_dst()
118 xdst->u.rt.rt_dst = rt->rt_dst; in xfrm4_fill_dst()
119 xdst->u.rt.rt_gateway = rt->rt_gateway; in xfrm4_fill_dst()
120 xdst->u.rt.rt_spec_dst = rt->rt_spec_dst; in xfrm4_fill_dst()
208 if (likely(xdst->u.rt.idev)) in xfrm4_dst_destroy()
209 in_dev_put(xdst->u.rt.idev); in xfrm4_dst_destroy()
210 if (likely(xdst->u.rt.peer)) in xfrm4_dst_destroy()
211 inet_putpeer(xdst->u.rt.peer); in xfrm4_dst_destroy()
224 if (xdst->u.rt.idev->dev == dev) { in xfrm4_dst_ifdown()
230 in_dev_put(xdst->u.rt.idev); in xfrm4_dst_ifdown()
231 xdst->u.rt.idev = loopback_idev; in xfrm4_dst_ifdown()