Commit 1b1ac759 authored by Jean Delvare's avatar Jean Delvare Committed by David S. Miller

[IPV4]: Cleanup call to __neigh_lookup()

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: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0621ed2e
...@@ -885,7 +885,7 @@ static int arp_process(struct sk_buff *skb) ...@@ -885,7 +885,7 @@ static int arp_process(struct sk_buff *skb)
if (n == NULL && if (n == NULL &&
arp->ar_op == htons(ARPOP_REPLY) && arp->ar_op == htons(ARPOP_REPLY) &&
inet_addr_type(sip) == RTN_UNICAST) inet_addr_type(sip) == RTN_UNICAST)
n = __neigh_lookup(&arp_tbl, &sip, dev, -1); n = __neigh_lookup(&arp_tbl, &sip, dev, 1);
} }
if (n) { if (n) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment