X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Fnetfilter%2Fiptable_mangle.c;h=397b95cc026ba9841f4414ca79cc9622318654e1;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=f7b8906c30d3f06d6aba932a16ed5fa50243d35e;hpb=567f20a20be06ad546b5962340c4be268462055b;p=linux-2.6.git diff --git a/net/ipv4/netfilter/iptable_mangle.c b/net/ipv4/netfilter/iptable_mangle.c index f7b8906c3..397b95cc0 100644 --- a/net/ipv4/netfilter/iptable_mangle.c +++ b/net/ipv4/netfilter/iptable_mangle.c @@ -10,6 +10,7 @@ * * Extended to all five netfilter hooks by Brad Chapman & Harald Welte */ +#include #include #include #include @@ -157,8 +158,7 @@ ipt_local_hook(unsigned int hook, || (*pskb)->nfmark != nfmark #endif || (*pskb)->nh.iph->tos != tos)) - if (ip_route_me_harder(pskb, RTN_UNSPEC)) - ret = NF_DROP; + return ip_route_me_harder(pskb) == 0 ? ret : NF_DROP; return ret; }