rtnetlink: Return neighbor even if addr is missing
There are valid configurations that return these type of messages from
the kernel and we don't want to fail for them
Change-Id: I74a0fd519e553c2e4bc3e114e7563fe93d8facf6
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/types.hpp b/src/types.hpp
index 9262623..709874c 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -138,7 +138,7 @@
{
unsigned ifidx;
uint16_t state;
- InAddrAny addr;
+ std::optional<InAddrAny> addr;
std::optional<ether_addr> mac;
constexpr bool operator==(const NeighborInfo& rhs) const noexcept