Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
authorDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 22:28:58 +0000 (14:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2011 22:28:58 +0000 (14:28 -0800)
1  2 
MAINTAINERS
drivers/net/benet/be_main.c
drivers/net/bnx2x/bnx2x_main.c
drivers/net/vxge/vxge-config.c
include/net/netfilter/nf_conntrack_ecache.h
net/core/dev.c
net/ipv4/route.c
net/ipv6/raw.c
net/ipv6/route.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/xt_iprange.c

diff --cc MAINTAINERS
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc net/core/dev.c
Simple merge
Simple merge
diff --cc net/ipv6/raw.c
Simple merge
Simple merge
Simple merge
index d3eb5ed1892fa4c0318cce266421c336a887797e,73c33a42f87f8fddbe901b7403a9041182842f54..b46626cddd933022d796c2f4e0f54ddd2c1ae8e1
@@@ -75,30 -73,18 +73,30 @@@ iprange_mt6(const struct sk_buff *skb, 
        bool m;
  
        if (info->flags & IPRANGE_SRC) {
-               m  = iprange_ipv6_sub(&iph->saddr, &info->src_min.in6) < 0;
-               m |= iprange_ipv6_sub(&iph->saddr, &info->src_max.in6) > 0;
+               m  = iprange_ipv6_lt(&iph->saddr, &info->src_min.in6);
+               m |= iprange_ipv6_lt(&info->src_max.in6, &iph->saddr);
                m ^= !!(info->flags & IPRANGE_SRC_INV);
 -              if (m)
 +              if (m) {
 +                      pr_debug("src IP %pI6 NOT in range %s%pI6-%pI6\n",
 +                               &iph->saddr,
 +                               (info->flags & IPRANGE_SRC_INV) ? "(INV) " : "",
 +                               &info->src_min.in6,
 +                               &info->src_max.in6);
                        return false;
 +              }
        }
        if (info->flags & IPRANGE_DST) {
-               m  = iprange_ipv6_sub(&iph->daddr, &info->dst_min.in6) < 0;
-               m |= iprange_ipv6_sub(&iph->daddr, &info->dst_max.in6) > 0;
+               m  = iprange_ipv6_lt(&iph->daddr, &info->dst_min.in6);
+               m |= iprange_ipv6_lt(&info->dst_max.in6, &iph->daddr);
                m ^= !!(info->flags & IPRANGE_DST_INV);
 -              if (m)
 +              if (m) {
 +                      pr_debug("dst IP %pI6 NOT in range %s%pI6-%pI6\n",
 +                               &iph->daddr,
 +                               (info->flags & IPRANGE_DST_INV) ? "(INV) " : "",
 +                               &info->dst_min.in6,
 +                               &info->dst_max.in6);
                        return false;
 +              }
        }
        return true;
  }