diff options
-rw-r--r-- | src/ndp_table.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ndp_table.c b/src/ndp_table.c index 41481ca..fdb189d 100644 --- a/src/ndp_table.c +++ b/src/ndp_table.c @@ -62,7 +62,12 @@ bool ndp_table_search(Slirp *slirp, struct in6_addr ip_addr, DEBUG_CALL("ndp_table_search"); DEBUG_ARG("ip = %s", addrstr); - assert(!in6_zero(&ip_addr)); + /* If unspecified address */ + if (in6_zero(&ip_addr)) { + /* return Ethernet broadcast address */ + memset(out_ethaddr, 0xff, ETH_ALEN); + return 1; + } /* Multicast address: fec0::abcd:efgh/8 -> 33:33:ab:cd:ef:gh */ if (IN6_IS_ADDR_MULTICAST(&ip_addr)) { |