summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_packet.c
diff options
context:
space:
mode:
authorPaul Jakma <paul@opensourcerouting.org>2015-01-23 17:43:49 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-08 21:03:49 +0200
commitdfa251d16295385079f8ab86af3b4fb4bb44923a (patch)
treefe66320fb3656a602307225d6448bbb79bffc798 /ospfd/ospf_packet.c
parentlib: assert(0) still needs a return (diff)
downloadfrr-dfa251d16295385079f8ab86af3b4fb4bb44923a.tar.xz
frr-dfa251d16295385079f8ab86af3b4fb4bb44923a.zip
ospfd: Remove another odd flooding hack in opaque LSA code
* ospf_opaque.c: (ospf_opaque_adjust_lsreq) Odd hack to general OSPF database exchange but made to act only on opaque LSAs. It's either covering up bugs in the flooding code or its wrong. If it's covering up bugs, those would affect all LSAs and should be fixed at a lower layer in ospfd, indeed perhaps those bugs are long fixed anyway (?). Alternatively, it's just plain wrong. Nuke. (ospf_opaque_exclude_lsa_from_lsreq) helper to above, nuke. * ospf_packet.c: Nuke call to ospf_opaque_adjust_lsreq. Tested-by: olivier.dugeon@orange.com
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r--ospfd/ospf_packet.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index eeed11be9..4b9f1c651 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -1779,21 +1779,6 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh,
*/
lsas = ospf_ls_upd_list_lsa (nbr, s, oi, size);
-#ifdef HAVE_OPAQUE_LSA
- /*
- * If self-originated Opaque-LSAs that have flooded before restart
- * are contained in the received LSUpd message, corresponding LSReq
- * messages to be sent may have to be modified.
- * To eliminate possible race conditions such that flushing and normal
- * updating for the same LSA would take place alternately, this trick
- * must be done before entering to the loop below.
- */
- /* XXX: Why is this Opaque specific? Either our core code is deficient
- * and this should be fixed generally, or Opaque is inventing strawman
- * problems */
- ospf_opaque_adjust_lsreq (nbr, lsas);
-#endif /* HAVE_OPAQUE_LSA */
-
#define DISCARD_LSA(L,N) {\
if (IS_DEBUG_OSPF_EVENT) \
zlog_debug ("ospf_lsa_discard() in ospf_ls_upd() point %d: lsa %p" \