aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--ndp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ndp.c b/ndp.c
index 3487e51..92abbe9 100644
--- a/ndp.c
+++ b/ndp.c
@@ -76,6 +76,9 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len)
sizeof(struct in6_addr))
return -1;
+ if (IN6_IS_ADDR_UNSPECIFIED(&ip6h->saddr))
+ return 1;
+
info("NDP: received NS, sending NA");
ihr->icmp6_type = NA;
ihr->icmp6_code = 0;