tnl-neigh-cache: ignore Neighbor Advertisements with no TLL
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Fri, 19 Feb 2016 16:42:13 +0000 (14:42 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 10 Mar 2016 17:03:57 +0000 (14:03 -0300)
commit4ca1ea6944c687b59c50eba1b665843a2690ed05
treea215cc265def1d2e662ae2e5fdb06a090b0b7e7b
parent6eb8c285696089f08ce7a88b403b0a473fe94903
tnl-neigh-cache: ignore Neighbor Advertisements with no TLL

RFC4861 says Neighbor Advertisements sent in response to unicast Neighbor
Solicitations SHOULD include the Target link-layer address. However, Linux
doesn't. Responses to multicast NS MUST include it, which is what OVS sends. So,
the response to Solicitations sent by OVS will include the TLL address and other
Advertisements not including it can be ignored.

This prevents the inclusion of a zero address in the cache.
lib/tnl-neigh-cache.c