Searched hist:"7 d472a59c0e5ec117220a05de6b370447fb6cb66" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | arp.c | diff 5990baaa6d7b437dfcf58b7021ca56b1d6b35869 Thu May 25 00:19:35 CEST 2017 Ihar Hrachyshka <ihrachys@redhat.com> arp: fixed -Wuninitialized compiler warning
Commit 7d472a59c0e5ec117220a05de6b370447fb6cb66 ("arp: always override existing neigh entries with gratuitous ARP") introduced a compiler warning:
net/ipv4/arp.c:880:35: warning: 'addr_type' may be used uninitialized in this function [-Wmaybe-uninitialized]
While the code logic seems to be correct and doesn't allow the variable to be used uninitialized, and the warning is not consistently reproducible, it's still worth fixing it for other people not to waste time looking at the warning in case it pops up in the build environment. Yes, compiler is probably at fault, but we will need to accommodate.
Fixes: 7d472a59c0e5 ("arp: always override existing neigh entries with gratuitous ARP") Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> diff 7d472a59c0e5ec117220a05de6b370447fb6cb66 Thu May 18 21:41:21 CEST 2017 Ihar Hrachyshka <ihrachys@redhat.com> arp: always override existing neigh entries with gratuitous ARP
Currently, when arp_accept is 1, we always override existing neigh entries with incoming gratuitous ARP replies. Otherwise, we override them only if new replies satisfy _locktime_ conditional (packets arrive not earlier than _locktime_ seconds since the last update to the neigh entry).
The idea behind locktime is to pick the very first (=> close) reply received in a unicast burst when ARP proxies are used. This helps to avoid ARP thrashing where Linux would switch back and forth from one proxy to another.
This logic has nothing to do with gratuitous ARP replies that are generally not aligned in time when multiple IP address carriers send them into network.
This patch enforces overriding of existing neigh entries by all incoming gratuitous ARP packets, irrespective of their time of arrival. This will make the kernel honour all incoming gratuitous ARP packets.
Signed-off-by: Ihar Hrachyshka <ihrachys@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|