From: Ihar Hrachyshka Date: Thu, 18 May 2017 19:41:18 +0000 (-0700) Subject: arp: fixed error in a comment X-Git-Tag: MMI-PSA29.97-13-9~5548^2~9^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34eb5fe07831458cf8238d54c1fc847dedeaf68c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Ihar Hrachyshka Signed-off-by: David S. Miller --- 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))