Commit 34eb5fe0 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka Committed by David S. Miller

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=149506354216994Suggested-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarIhar Hrachyshka <ihrachys@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 499350a5
...@@ -846,7 +846,7 @@ static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb) ...@@ -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; 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. * the same as source.
*/ */
if (is_garp && arp->ar_op == htons(ARPOP_REPLY)) if (is_garp && arp->ar_op == htons(ARPOP_REPLY))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment