]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes bug in OSPF
authorOndrej Zajicek <santiago@crfreenet.org>
Sun, 11 Jan 2009 09:47:41 +0000 (10:47 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sun, 11 Jan 2009 09:47:41 +0000 (10:47 +0100)
Checksum was not recalculated when LSA was changed and
packets with bad checksum were sent.

proto/ospf/topology.c

index 1d6b06ef674c83b1c7d39d356d7051b30e0fed42..9b2befbbc41a6ab02e0016143d74f65ae5df9657 100644 (file)
@@ -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)