teamd: check target host with nap.nah.nd_na_target

Now in lw_nsnap_receive, it compares ip6h.ip6_src with nsnap_ppriv->dst
to check target host.

But when target_host is set with a global addr, the na packet from some
switch may use it's link/local addr as the ip6_src addr, instead of the
global addr. It will cause to fail to validate the ipv6 na packet, and
nsna_ping couldn't work.

Since nap.nah.nd_na_target is always set with target_host, this patch is
to fix it by using nap.nah.nd_na_target to compare with nsnap_ppriv->dst
to check target host instead.

Reported-by: Amit Supugade <asupugad@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
1 file changed