summaryrefslogtreecommitdiff
path: root/proto/ospf/topology.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2012-11-10 14:54:35 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2012-11-10 14:54:35 +0100
commita55a90faec5cce09cee65f484e3731207af00335 (patch)
tree4c05799a63be78112870de145e2e1d1b348375f8 /proto/ospf/topology.c
parentcf98be7b6743e45dde9e0458664cc0762bf08867 (diff)
Peer address of stub iface should be announced in OSPF Router LSA.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index 177cd53a..bfa071d8 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -305,7 +305,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length)
/* Now we will originate stub area if there is no primary */
if (net_lsa ||
(ifa->type == OSPF_IT_VLINK) ||
- (ifa->addr->flags & IA_PEER) ||
+ ((ifa->addr->flags & IA_PEER) && ! ifa->cf->stub) ||
configured_stubnet(oa, ifa->addr))
continue;