Home
last modified time | relevance | path

Searched refs:xdst (Results 1 – 6 of 6) sorted by relevance

/net/ipv6/
Dxfrm6_policy.c71 static int xfrm6_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, in xfrm6_fill_dst() argument
74 struct rt6_info *rt = (struct rt6_info *)xdst->route; in xfrm6_fill_dst()
76 xdst->u.dst.dev = dev; in xfrm6_fill_dst()
79 xdst->u.rt6.rt6i_idev = in6_dev_get(dev); in xfrm6_fill_dst()
80 if (!xdst->u.rt6.rt6i_idev) { in xfrm6_fill_dst()
87 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst()
89 xdst->route_cookie = rt6_get_cookie(rt); in xfrm6_fill_dst()
90 xdst->u.rt6.rt6i_gateway = rt->rt6i_gateway; in xfrm6_fill_dst()
91 xdst->u.rt6.rt6i_dst = rt->rt6i_dst; in xfrm6_fill_dst()
92 xdst->u.rt6.rt6i_src = rt->rt6i_src; in xfrm6_fill_dst()
[all …]
/net/ipv4/
Dxfrm4_policy.c71 static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, in xfrm4_fill_dst() argument
74 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst()
77 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst()
79 xdst->u.dst.dev = dev; in xfrm4_fill_dst()
84 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst()
85 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst()
87 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst()
88 xdst->u.rt.rt_uses_gateway = rt->rt_uses_gateway; in xfrm4_fill_dst()
89 xdst->u.rt.rt_gw_family = rt->rt_gw_family; in xfrm4_fill_dst()
91 xdst->u.rt.rt_gw4 = rt->rt_gw4; in xfrm4_fill_dst()
[all …]
/net/xfrm/
Dxfrm_policy.c168 static int xfrm_bundle_ok(struct xfrm_dst *xdst);
2475 struct xfrm_dst *xdst; in xfrm_alloc_dst() local
2492 xdst = dst_alloc(dst_ops, NULL, 1, DST_OBSOLETE_NONE, 0); in xfrm_alloc_dst()
2494 if (likely(xdst)) { in xfrm_alloc_dst()
2495 struct dst_entry *dst = &xdst->u.dst; in xfrm_alloc_dst()
2497 memset(dst + 1, 0, sizeof(*xdst) - sizeof(*dst)); in xfrm_alloc_dst()
2499 xdst = ERR_PTR(-ENOBUFS); in xfrm_alloc_dst()
2503 return xdst; in xfrm_alloc_dst()
2516 static inline int xfrm_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, in xfrm_fill_dst() argument
2520 xfrm_policy_get_afinfo(xdst->u.dst.ops->family); in xfrm_fill_dst()
[all …]
Dxfrm_device.c271 struct xfrm_dst *xdst = (struct xfrm_dst *)dst; in xfrm_dev_offload_ok() local
278 (!xdst->child->xfrm)) { in xfrm_dev_offload_ok()
279 mtu = xfrm_state_mtu(x, xdst->child_mtu_cached); in xfrm_dev_offload_ok()
/net/core/
Ddst.c111 struct xfrm_dst *xdst = (struct xfrm_dst *) dst; in dst_destroy() local
113 child = xdst->child; in dst_destroy()
Dpktgen.c415 struct xfrm_dst xdst; member
2514 skb->_skb_refdst = (unsigned long)&pkt_dev->xdst.u.dst | SKB_DST_NOREF; in pktgen_output_ipsec()
3659 pkt_dev->xdst.u.dst.dev = pkt_dev->odev; in pktgen_add_device()
3660 dst_init_metrics(&pkt_dev->xdst.u.dst, pktgen_dst_metrics, false); in pktgen_add_device()
3661 pkt_dev->xdst.child = &pkt_dev->xdst.u.dst; in pktgen_add_device()
3662 pkt_dev->xdst.u.dst.ops = &pkt_dev->dstops; in pktgen_add_device()