summaryrefslogtreecommitdiffstats
path: root/proto/ospf/rt.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-11-17 10:31:33 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-11-17 10:31:33 +0100
commitcbf8b08d622695f360bcdd80d61eb4add967749e (patch)
tree3c219ba0b2eaf217aec4e4cb6bf3738e19732d38 /proto/ospf/rt.c
parent4ac7c8341c660db654821ed2dc0273645dc19645 (diff)
downloadbird-cbf8b08d622695f360bcdd80d61eb4add967749e.tar
bird-cbf8b08d622695f360bcdd80d61eb4add967749e.zip
Temporary OSPFv3 devel commit
Diffstat (limited to 'proto/ospf/rt.c')
-rw-r--r--proto/ospf/rt.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c
index 832281e..a72a94b 100644
--- a/proto/ospf/rt.c
+++ b/proto/ospf/rt.c
@@ -360,20 +360,19 @@ ospf_rt_spfa(struct ospf_area *oa)
if (rt->options & OPT_RT_V)
oa->trcap = 1;
- /* FIXME - in OSPFv3, should we add all routers, or just ABRs an ASBRs? */
- if ((rt->options & OPT_RT_V) || (rt->options & OPT_RT_E))
- {
- nf.type = RTS_OSPF;
- nf.options = rt->options;
- nf.metric1 = act->dist;
- nf.metric2 = LSINFINITY;
- nf.tag = 0;
- nf.oa = oa;
- nf.ar = act;
- nf.nh = act->nh;
- nf.ifa = act->nhi;
- ri_install(po, ipa_from_rid(act->lsa.rt), MAX_PREFIX_LENGTH, ORT_ROUTER, &nf, NULL);
- }
+ /* In OSPFv2, just ASBRs and ABRs are needed to add to oa->rtr table */
+ // ((rt->options & OPT_RT_V) || (rt->options & OPT_RT_E))
+
+ nf.type = RTS_OSPF;
+ nf.options = rt->options;
+ nf.metric1 = act->dist;
+ nf.metric2 = LSINFINITY;
+ nf.tag = 0;
+ nf.oa = oa;
+ nf.ar = act;
+ nf.nh = act->nh;
+ nf.ifa = act->nhi;
+ ri_install(po, ipa_from_rid(act->lsa.rt), MAX_PREFIX_LENGTH, ORT_ROUTER, &nf, NULL);
#ifdef OSPFv2
ospf_rt_spfa_rtlinks(oa, act, act);