mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
[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: Jean Delvare <khali@linux-fr.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0621ed2e4e
commit
1b1ac759d7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue