Lines Matching refs:xdst
69 static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
72 struct rtable *rt = (struct rtable *)xdst->route;
75 xdst->u.rt.rt_iif = fl4->flowi4_iif;
77 xdst->u.dst.dev = dev;
78 netdev_hold(dev, &xdst->u.dst.dev_tracker, GFP_ATOMIC);
82 xdst->u.rt.rt_is_input = rt->rt_is_input;
83 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST |
85 xdst->u.rt.rt_type = rt->rt_type;
86 xdst->u.rt.rt_uses_gateway = rt->rt_uses_gateway;
87 xdst->u.rt.rt_gw_family = rt->rt_gw_family;
89 xdst->u.rt.rt_gw4 = rt->rt_gw4;
91 xdst->u.rt.rt_gw6 = rt->rt_gw6;
92 xdst->u.rt.rt_pmtu = rt->rt_pmtu;
93 xdst->u.rt.rt_mtu_locked = rt->rt_mtu_locked;
94 rt_add_uncached_list(&xdst->u.rt);
103 struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
104 struct dst_entry *path = xdst->route;
112 struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
113 struct dst_entry *path = xdst->route;
120 struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
123 rt_del_uncached_list(&xdst->u.rt);
124 xfrm_dst_destroy(xdst);