Commit f796945f authored by Ondřej Zajíček's avatar Ondřej Zajíček

Fixes LSA checksum computation for larger LSAs.

parent fdf16eb6
......@@ -243,7 +243,7 @@ lsasum_check(struct ospf_lsa_header *h, void *body)
}
else
{
c0 += *(b + (p - sp) - sizeof(struct ospf_lsa_header) + 2);
c0 += *(b + (p - (u8 *) (h + 1)));
}
c1 += c0;
......
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