summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-05-26 16:09:22 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-05-26 16:09:22 +0200
commit691057f03310e712428e19214ae48462d0f258e1 (patch)
tree263e8ed83920f2dd9fd48bfba70e812c033629f3 /proto/ospf
parente0a62ad0f8be198bf8afb1f6900f138dfe12d4fb (diff)
Support loopback/dummy addresses.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index ae7b80c9..bef31125 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -453,6 +453,10 @@ ospf_iface_new(struct proto_ospf *po, struct iface *iface, struct ifa *addr,
else
ifa->type = ip->type;
+ /* a loopback/dummy address */
+ if ((addr->pxlen == MAX_PREFIX_LENGTH) && ipa_zero(addr->opposite))
+ ifa->stub = 1;
+
#ifdef OSPFv2
if ((ifa->type != OSPF_IT_PTP) && (ifa->type != OSPF_IT_VLINK) &&
(addr->flags & IA_UNNUMBERED))