]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Peer address of stub iface should be announced in OSPF Router LSA.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 10 Nov 2012 13:54:35 +0000 (14:54 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 10 Nov 2012 13:54:35 +0000 (14:54 +0100)
proto/ospf/topology.c

index 177cd53ac0499e5446e428f6dc31c6fa6bde17d5..bfa071d822fb7e27a8d8d7c7eae164b0a2be1641 100644 (file)
@@ -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;