diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-07-14 23:51:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-07-14 23:51:44 -0400 |
commit | 1b1ac759d7c6bba6e5f4731ef6ea720b6636e27c (patch) | |
tree | 52b309bb91de1b4ca82b8a3b505dcfcd9a0812c6 /net/ipv4/arp.c | |
parent | 0621ed2e4edbe2f6f83dafbf85eecefae7aaf2e8 (diff) |
[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>
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index e00767e8ebd9..9ab9d534fbac 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -885,7 +885,7 @@ static int arp_process(struct sk_buff *skb) | |||
885 | if (n == NULL && | 885 | if (n == NULL && |
886 | arp->ar_op == htons(ARPOP_REPLY) && | 886 | arp->ar_op == htons(ARPOP_REPLY) && |
887 | inet_addr_type(sip) == RTN_UNICAST) | 887 | inet_addr_type(sip) == RTN_UNICAST) |
888 | n = __neigh_lookup(&arp_tbl, &sip, dev, -1); | 888 | n = __neigh_lookup(&arp_tbl, &sip, dev, 1); |
889 | } | 889 | } |
890 | 890 | ||
891 | if (n) { | 891 | if (n) { |