diff options
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nest/iface.c b/nest/iface.c index 3eaa5ebd..e9f55f0a 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -532,10 +532,8 @@ ifa_update(struct ifa *a) break; } -#ifndef IPV6 - if ((i->flags & IF_BROADCAST) && !ipa_nonzero(a->brd)) + if ((a->prefix.type == NET_IP4) && (i->flags & IF_BROADCAST) && ipa_zero(a->brd)) log(L_ERR "Missing broadcast address for interface %s", i->name); -#endif b = mb_alloc(if_pool, sizeof(struct ifa)); memcpy(b, a, sizeof(struct ifa)); |