diff options
author | Ihar Hrachyshka <ihrachys@redhat.com> | 2017-05-18 12:41:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-21 13:26:45 -0400 |
commit | 34eb5fe07831458cf8238d54c1fc847dedeaf68c (patch) | |
tree | c414cb470ce1f567c75d0a8bfe97d2a4a2c7a706 /net | |
parent | 499350a5a6e7512d9ed369ed63a4244b6536f4f8 (diff) | |
download | linux-34eb5fe07831458cf8238d54c1fc847dedeaf68c.tar.bz2 |
arp: fixed error in a comment
the is_garp code deals just with gratuitous ARP packets, not every
unsolicited packet.
This patch is a result of a discussion in netdev:
http://marc.info/?l=linux-netdev&m=149506354216994
Suggested-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-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 d54345a06f72..053492af8a6e 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -846,7 +846,7 @@ static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb) */ is_garp = tip == sip && addr_type == RTN_UNICAST; - /* Unsolicited ARP _replies_ also require target hwaddr to be + /* Gratuitous ARP _replies_ also require target hwaddr to be * the same as source. */ if (is_garp && arp->ar_op == htons(ARPOP_REPLY)) |