Commit f20907ad authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

Fixes bug in OSPF

Checksum was not recalculated when LSA was changed and
packets with bad checksum were sent.
parent 330aecea
......@@ -309,6 +309,7 @@ originate_net_lsa(struct ospf_iface *ifa)
ifa->nlsa-> += 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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment