summaryrefslogtreecommitdiffstats
path: root/nest/iface.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-02 17:21:51 +0200
committerMartin Mares <mj@ucw.cz>2000-05-02 17:21:51 +0200
commit85a291ff3055f0b10ffc199138c67305f5b3fc98 (patch)
tree0b15577d579eb044124afb6f2514c57981df264f /nest/iface.c
parentd1a74339d4edb717fbe98d412bd5e4ad03bb20a2 (diff)
downloadbird-85a291ff3055f0b10ffc199138c67305f5b3fc98.tar
bird-85a291ff3055f0b10ffc199138c67305f5b3fc98.zip
IPv6 address classification fixes.
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/iface.c b/nest/iface.c
index b58b183..d41b39d 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -371,8 +371,10 @@ ifa_update(struct ifa *a)
if (!(i->flags & IF_MULTIACCESS) && a->pxlen < BITS_PER_IP_ADDRESS - 2)
log(L_WARN "Strange prefix length %d for point-to-point interface %s", a->pxlen, i->name);
+#ifndef IPV6
if ((i->flags & IF_BROADCAST) && !ipa_nonzero(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));