Skip to content

Commit

Permalink
[IPV4]: Cleanup call to __neigh_lookup()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jean Delvare authored and davem330 committed Jul 15, 2007
1 parent 0621ed2 commit 1b1ac75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b1ac75

Please sign in to comment.