diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-11-24 22:12:51 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-11-24 22:12:51 +0100 |
commit | c72aca41e5fa55b0efa768e93b55f5c307f84025 (patch) | |
tree | ba8809320a532b280f7d188db27f6bd4245e310c /proto/ospf/iface.c | |
parent | e4d179f2c2f213c9190ff4d05979dc33f2c5b2c7 (diff) |
OSPF ifaces on loopback should be stub.
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f1409840..333c2a6d 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 |