Fixes bug in OSPF
Checksum was not recalculated when LSA was changed and packets with bad checksum were sent.
This commit is contained in:
parent
330aecead8
commit
f20907adf6
1 changed files with 1 additions and 0 deletions
|
@ -309,6 +309,7 @@ originate_net_lsa(struct ospf_iface *ifa)
|
||||||
ifa->iface->name);
|
ifa->iface->name);
|
||||||
ifa->nlsa->lsa.sn += 1;
|
ifa->nlsa->lsa.sn += 1;
|
||||||
ifa->nlsa->lsa.age = LSA_MAXAGE;
|
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);
|
ospf_lsupd_flood(NULL, NULL, &ifa->nlsa->lsa, NULL, ifa->oa, 0);
|
||||||
s_rem_node(SNODE ifa->nlsa);
|
s_rem_node(SNODE ifa->nlsa);
|
||||||
if (ifa->nlsa->lsa_body != NULL)
|
if (ifa->nlsa->lsa_body != NULL)
|
||||||
|
|
Loading…
Reference in a new issue