X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fipv4%2Fip_forward.c;h=3b34d1c862709e7bde3cd3665fad1e191692506d;hb=caebc160ce3f76761cc62ad96ef6d6f30f54e3dd;hp=99461f09320f6d7350ac2a91e5c49062617f2c15;hpb=682c30ed2165d5694a414d31eac7c63ac5700fb0;p=firefly-linux-kernel-4.4.55.git diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 99461f09320f..3b34d1c86270 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -84,7 +84,7 @@ int ip_forward(struct sk_buff *skb) rt = skb_rtable(skb); - if (opt->is_strictroute && rt->rt_dst != rt->rt_gateway) + if (opt->is_strictroute && ip_hdr(skb)->daddr != rt->rt_gateway) goto sr_failed; if (unlikely(skb->len > dst_mtu(&rt->dst) && !skb_is_gso(skb) &&