aboutsummaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-11-25 18:42:47 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2013-11-25 18:42:47 +0100
commit283c7dfada53a6dee6a8a17ecab492ffafd44b66 (patch)
tree5edfb9df61c3b625967f3c65317f27c5051a8a4d /proto/ospf
parent736e143fa50607fcd88132291e96089b899af979 (diff)
parent0bb4e37db317a1290bad24fe430cac6569a9bd8c (diff)
downloadbird-283c7dfada53a6dee6a8a17ecab492ffafd44b66.tar.gz
Merge branch 'master' into add-path
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c6
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