X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fipv4%2Fip_forward.c;h=694de3b7aebfede6073433201e1200cf72008997;hb=4d26aa305414dbb33b3c32fb205b68004cda8ffc;hp=ab09b126423ce3e56fd1fee2f6bda54e4b851022;hpb=548ed10228093f1036297a333d1c1064f4daefdc;p=~andy%2Flinux diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index ab09b126423..694de3b7aeb 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c @@ -85,7 +85,7 @@ int ip_forward(struct sk_buff *skb) rt = skb_rtable(skb); - if (opt->is_strictroute && opt->nexthop != rt->rt_gateway) + if (opt->is_strictroute && rt->rt_uses_gateway) goto sr_failed; if (unlikely(skb->len > dst_mtu(&rt->dst) && !skb_is_gso(skb) &&