]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV4]: Cleanup call to __neigh_lookup()
authorJean Delvare <khali@linux-fr.org>
Sun, 15 Jul 2007 03:51:44 +0000 (20:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Jul 2007 03:51:44 +0000 (20:51 -0700)
Back in the times of Linux 2.2, negative values for the creat parameter
of __neigh_lookup() had a particular meaning, but no longer, so we
should pass 1 instead.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/arp.c

index e00767e8ebd94ed4facfc11b3a3b746e84a50345..9ab9d534fbac28597f0a5b2b5c0c07d3e4485f29 100644 (file)
@@ -885,7 +885,7 @@ static int arp_process(struct sk_buff *skb)
                if (n == NULL &&
                    arp->ar_op == htons(ARPOP_REPLY) &&
                    inet_addr_type(sip) == RTN_UNICAST)
-                       n = __neigh_lookup(&arp_tbl, &sip, dev, -1);
+                       n = __neigh_lookup(&arp_tbl, &sip, dev, 1);
        }
 
        if (n) {