diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-16 16:31:43 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-16 16:31:43 +0100 |
commit | e87a95d97d18eb12d005312f27b082f0821d3923 (patch) | |
tree | 51eb29b6f0b12cad8ceba9870dbe0b53bc577c2f /nest/iface.c | |
parent | 3013fc57bdc97b0031c4f4250b9bdd172f4c0f4e (diff) |
Minor fixes for debug mode
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nest/iface.c b/nest/iface.c index 303a52b2..54c16c58 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -93,7 +93,8 @@ if_dump(struct iface *i) WALK_LIST(a, i->addrs) { ifa_dump(a); - ASSERT((a != i->addr) == !(a->flags & IA_PRIMARY)); + ASSERT(!!(a->flags & IA_PRIMARY) == + ((a == i->addr4) || (a == i->addr6) || (a == i->llv6))); } } |