]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arp: fixed error in a comment
authorIhar Hrachyshka <ihrachys@redhat.com>
Thu, 18 May 2017 19:41:18 +0000 (12:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:26:45 +0000 (13:26 -0400)
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>
net/ipv4/arp.c

index d54345a06f720fb1cd7632a364aa7e7e19ff6216..053492af8a6e364d97b8a98015e6d9e93a773124 100644 (file)
@@ -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))