]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Temporary OSPFv3 devel commit
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 17 Nov 2009 09:31:33 +0000 (10:31 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 17 Nov 2009 09:31:33 +0000 (10:31 +0100)
proto/ospf/lsupd.c
proto/ospf/rt.c

index 7ae2f2a2f1e1dba49ce3183f189296eaed218129..b1f6f464a273d24d89d496ff6785dc9ef43043b3 100644 (file)
@@ -501,6 +501,7 @@ ospf_lsupd_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa,
     DBG("Update Type: %u ID: %R RT: %R, Sn: 0x%08x Age: %u, Sum: %u\n",
        lsatmp.type, lsatmp.id, lsatmp.rt, lsatmp.sn, lsatmp.age, lsatmp.checksum);
 
+    /* FIXME domain should be link id for unknown LSA types with zero Ubit */
     u32 domain = ospf_lsa_domain(lsatmp.type, ifa);
     lsadb = ospf_hash_find_header(po->gr, domain, &lsatmp);
 
index 832281eccdfe340fdc2ba5a85f7435bc9314eb6a..a72a94b2b83df0df1beba5e8a6de2f4d2409c38b 100644 (file)
@@ -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);