summaryrefslogtreecommitdiff
path: root/net/ipv4/xfrm4_mode_tunnel.c
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2017-11-28 15:40:22 -0500
committerDavid S. Miller <davem@davemloft.net>2017-11-30 09:54:25 -0500
commitb92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b (patch)
treef8fb92d4c9394bdf61716d074b9aaa15fbf22450 /net/ipv4/xfrm4_mode_tunnel.c
parent071fb37ec43dcd88937a669c5f97bd37f7d29dea (diff)
downloadlinux-rpi3-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.tar.gz
linux-rpi3-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.tar.bz2
linux-rpi3-b92cf4aab8e688b1bd501ac2ac4f1b5c99601e3b.zip
net: Create and use new helper xfrm_dst_child().
Only IPSEC routes have a non-NULL dst->child pointer. And IPSEC routes are identified by a non-NULL dst->xfrm pointer. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_mode_tunnel.c')
-rw-r--r--net/ipv4/xfrm4_mode_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/xfrm4_mode_tunnel.c b/net/ipv4/xfrm4_mode_tunnel.c
index e6265e2c274e..7d885a44dc9d 100644
--- a/net/ipv4/xfrm4_mode_tunnel.c
+++ b/net/ipv4/xfrm4_mode_tunnel.c
@@ -62,7 +62,7 @@ static int xfrm4_mode_tunnel_output(struct xfrm_state *x, struct sk_buff *skb)
top_iph->frag_off = (flags & XFRM_STATE_NOPMTUDISC) ?
0 : (XFRM_MODE_SKB_CB(skb)->frag_off & htons(IP_DF));
- top_iph->ttl = ip4_dst_hoplimit(dst->child);
+ top_iph->ttl = ip4_dst_hoplimit(xfrm_dst_child(dst));
top_iph->saddr = x->props.saddr.a4;
top_iph->daddr = x->id.daddr.a4;