From f20907adf60960f63b797f4423b4790e8591e99c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sun, 11 Jan 2009 10:47:41 +0100 Subject: [PATCH] Fixes bug in OSPF Checksum was not recalculated when LSA was changed and packets with bad checksum were sent. --- proto/ospf/topology.c | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index 1d6b06ef..9b2befbb 100644 --- a/proto/ospf/topology.c +++ b/proto/ospf/topology.c @@ -309,6 +309,7 @@ originate_net_lsa(struct ospf_iface *ifa) ifa->iface->name); ifa->nlsa->lsa.sn += 1; ifa->nlsa->lsa.age = LSA_MAXAGE; + lsasum_calculate(&ifa->nlsa->lsa, ifa->nlsa->lsa_body); ospf_lsupd_flood(NULL, NULL, &ifa->nlsa->lsa, NULL, ifa->oa, 0); s_rem_node(SNODE ifa->nlsa); if (ifa->nlsa->lsa_body != NULL)