mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
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
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user