From dafaef9ba9e7b46b9ff42b2cb75954a86f920951 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 20 Feb 2005 16:53:06 +0000 Subject: Originate default route into stub areas. --- proto/ospf/rt.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'proto/ospf/rt.c') diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 653e594..c2f7ca0 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -1049,10 +1049,24 @@ again2: if ((oa == po->backbone) && oaa->trcap) fl = 1; + if (oaa->stub) fl = 1; + if(fl) flush_sum_lsa(oaa, &anet->fn, ORT_NET); else originate_sum_lsa(oaa, &anet->fn, ORT_NET, anet->metric); } } FIB_WALK_END; + + /* Check default summary LSA for stub areas + * just for router connected to backbone */ + if (po->backbone) + { + struct fib_node fnn; + + fnn.prefix = IPA_NONE; + fnn.pxlen = 0; + if(oa->stub) originate_sum_lsa(oa, &fnn, ORT_NET, oa->stub); + else flush_sum_lsa(oa, &fnn, ORT_NET); + } } } -- cgit v1.2.3