From: Ondrej Zajicek Date: Sun, 24 Nov 2013 21:12:51 +0000 (+0100) Subject: OSPF ifaces on loopback should be stub. X-Git-Tag: v1.4.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c72aca41e5fa55b0efa768e93b55f5c307f84025;p=thirdparty%2Fbird.git OSPF ifaces on loopback should be stub. --- diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f14098409..333c2a6de 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -472,10 +472,14 @@ ospf_iface_stubby(struct ospf_iface_patt *ip, struct ifa *addr) if (! addr) return 0; - /* a host/loopback address */ + /* a host address */ if (addr->flags & IA_HOST) return 1; + /* a loopback iface */ + if (addr->iface->flags & IF_LOOPBACK) + return 1; + /* * We cannot properly support multiple OSPF ifaces on real iface * with multiple prefixes, therefore we force OSPF ifaces with