]> err.no Git - linux-2.6/blobdiff - net/ipv6/ip6_output.c
[NETFILTER]: ipt_ECN/ipt_TOS: fix incorrect checksum update
[linux-2.6] / net / ipv6 / ip6_output.c
index b2be749d22172d540d85093ea4d059cc9f289a70..66716911962eb967aa487b964895548c3542ea8c 100644 (file)
@@ -412,7 +412,9 @@ int ip6_forward(struct sk_buff *skb)
                return -ETIMEDOUT;
        }
 
-       if (pneigh_lookup(&nd_tbl, &hdr->daddr, skb->dev, 0)) {
+       /* XXX: idev->cnf.proxy_ndp? */
+       if (ipv6_devconf.proxy_ndp &&
+           pneigh_lookup(&nd_tbl, &hdr->daddr, skb->dev, 0)) {
                int proxied = ip6_forward_proxy_check(skb);
                if (proxied > 0)
                        return ip6_input(skb);