tnl-neigh-cache: ignore Neighbor Advertisements with no TLL
[cascardo/ovs.git] / lib / tnl-neigh-cache.c
index 0339b52..29a70a3 100644 (file)
@@ -171,6 +171,10 @@ tnl_nd_snoop(const struct flow *flow, struct flow_wildcards *wc,
         return EINVAL;
     }
 
+    if (eth_addr_is_zero(flow->arp_tha)) {
+        return EINVAL;
+    }
+
     memset(&wc->masks.ipv6_src, 0xff, sizeof wc->masks.ipv6_src);
     memset(&wc->masks.ipv6_dst, 0xff, sizeof wc->masks.ipv6_dst);
     memset(&wc->masks.nd_target, 0xff, sizeof wc->masks.nd_target);