diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2015-04-28 13:45:44 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-04-28 13:45:44 +0200 |
commit | 30d09eb96e8d46143d04285016a137d71a87c416 (patch) | |
tree | 778a4a098081b86038b79f5eb127ce1979742754 /nest/password.h | |
parent | 7069fc9e724134ddd841219f5673cc9b13c58490 (diff) |
OSPF: Fixes validation of LSA checksums
Prior to this patch, BIRD validates the OSPF LSA checksum by calculating
a new checksum and comparing it with the checksum in the header. Due to
the specifics of the Fletcher checksum used in OSPF, this is not
necessarily correct as the checkbytes in the header may be calculated via
a different means and end up with a different value that is nonetheless
still correct.
The documented means of validating the checksum as specified in RFC 905
B.4 is to calculate c0 and c1 from the unchanged contents of the packet,
which must result in a zero value to be considered valid.
Thanks to Chris Boot for the patch.
Diffstat (limited to 'nest/password.h')
0 files changed, 0 insertions, 0 deletions