On 14/04/18 02:16, Sven Eckelmann wrote:
The IP translation layer is using the neighbor table of the kernel to get the unicast link layer (mac) address for IP(v4|v6) addresses. The kernel can not only return unicast mac addresses to such an RTM_GETNEIGH request but also zero mac address. Such an address must be considered invalid because the global translation table may not only contain a unique client mac address entry for it. The translation from client mac to originator will therefore most likely return an unexpected originator.
Dropping these kind of (bogus) results avoids confusions while using things like batctl's ping or traceroute.
Reported-by: Andre Kasper Andre.Kasper@gmx.de Signed-off-by: Sven Eckelmann sven@narfation.org
Acked-by: Antonio Quartulli a@unstable.cc