summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-08-19 18:15:40 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-08-19 18:15:40 +0200
commit1520e4748129c4eb97ac3090bcc97149a1900611 (patch)
treef4501a77bcb9e3ecabfd9dd5f80ee3e71cb35119 /lib/zclient.c
parent342a31bfda21616209366679ac522471e5772a2f (diff)
parent90444ca35e3037ed43ec695428f0ef6d82f9a320 (diff)
*: merge branch stable/0.99.23
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 20188f6abd..3b5477e903 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -805,6 +805,16 @@ zebra_interface_address_read (int type, struct stream *s)
ifc->flags = ifc_flags;
if (ifc->destination)
ifc->destination->prefixlen = ifc->address->prefixlen;
+ else if (CHECK_FLAG(ifc->flags, ZEBRA_IFA_PEER))
+ {
+ /* carp interfaces on OpenBSD with 0.0.0.0/0 as "peer" */
+ char buf[BUFSIZ];
+ prefix2str (ifc->address, buf, sizeof(buf));
+ zlog_warn("warning: interface %s address %s "
+ "with peer flag set, but no peer address!",
+ ifp->name, buf);
+ UNSET_FLAG(ifc->flags, ZEBRA_IFA_PEER);
+ }
}
}
else