Lines Matching refs:xdst
65 static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, in xfrm4_fill_dst() argument
68 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst()
71 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst()
73 xdst->u.dst.dev = dev; in xfrm4_fill_dst()
74 netdev_hold(dev, &xdst->u.dst.dev_tracker, GFP_ATOMIC); in xfrm4_fill_dst()
78 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst()
79 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst()
81 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst()
82 xdst->u.rt.rt_uses_gateway = rt->rt_uses_gateway; in xfrm4_fill_dst()
83 xdst->u.rt.rt_gw_family = rt->rt_gw_family; in xfrm4_fill_dst()
85 xdst->u.rt.rt_gw4 = rt->rt_gw4; in xfrm4_fill_dst()
87 xdst->u.rt.rt_gw6 = rt->rt_gw6; in xfrm4_fill_dst()
88 xdst->u.rt.rt_pmtu = rt->rt_pmtu; in xfrm4_fill_dst()
89 xdst->u.rt.rt_mtu_locked = rt->rt_mtu_locked; in xfrm4_fill_dst()
90 rt_add_uncached_list(&xdst->u.rt); in xfrm4_fill_dst()
99 struct xfrm_dst *xdst = (struct xfrm_dst *)dst; in xfrm4_update_pmtu() local
100 struct dst_entry *path = xdst->route; in xfrm4_update_pmtu()
108 struct xfrm_dst *xdst = (struct xfrm_dst *)dst; in xfrm4_redirect() local
109 struct dst_entry *path = xdst->route; in xfrm4_redirect()
116 struct xfrm_dst *xdst = (struct xfrm_dst *)dst; in xfrm4_dst_destroy() local
119 rt_del_uncached_list(&xdst->u.rt); in xfrm4_dst_destroy()
120 xfrm_dst_destroy(xdst); in xfrm4_dst_destroy()