diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c index a5da425..f3c2d81 100644 --- a/proto/ospf/lsupd.c +++ b/proto/ospf/lsupd.c @@ -598,9 +598,7 @@ ospf_lsupd_receive(struct ospf_packet *ps_i, struct ospf_iface *ifa, { OSPF_TRACE(D_EVENTS, "Premature aging it"); lsatmp.age = LSA_MAXAGE; - lsatmp.sn = LSA_MAXSEQNO; lsa->age = htons(LSA_MAXAGE); - lsa->sn = htonl(LSA_MAXSEQNO); lsasum_check(lsa, (lsa + 1)); /* It also calculates chsum! */ lsatmp.checksum = ntohs(lsa->checksum); ospf_lsupd_flood(po, NULL, lsa, &lsatmp, domain, 0); @@ -742,7 +740,6 @@ ospf_lsupd_flush_nlsa(struct proto_ospf *po, struct top_hash_entry *en) struct proto *p = &po->proto; lsa->age = LSA_MAXAGE; - lsa->sn = LSA_MAXSEQNO; lsasum_calculate(lsa, en->lsa_body); OSPF_TRACE(D_EVENTS, "Premature aging self originated lsa!"); OSPF_TRACE(D_EVENTS, "Type: %04x, Id: %R, Rt: %R", lsa->type, lsa->id, lsa->rt); diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 5d93c0e..a2deee0 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -930,7 +930,7 @@ check_ext_lsa(struct top_hash_entry *en, struct fib_node *fn, u32 metric, ip_add if (fn->pxlen != ipa_mklen(ext->netmask)) return -1; - return (en->lsa.sn != LSA_MAXSEQNO) && (ext->metric == metric) && + return (en->lsa.age != LSA_MAXAGE) && (ext->metric == metric) && (ext->tag == tag) && ipa_equal(ext->fwaddr,fwaddr); }