bird6 1.4.5 OSPFv3 LSA checksum failures

Ondrej Zajicek santiago at crfreenet.org
Sat Apr 25 23:52:35 CEST 2015


On Sat, Apr 25, 2015 at 08:54:13PM +0100, Chris Boot wrote:
> The problem happens because BIRD doesn’t verify the checksum by running Fletcher against the received packet and testing for zero; rather it:
> - sets the checksum in the packet to 0
> - runs the checksum calculation on the LSA data
> - updates the checksum in the packet (and comes up with a different result)
> - complains when the result is not the same as what was in the packet
> 
> I believe the correct way to verify the checksum would be to run the algorithm against the unchanged packet (with the checksum intact) and verify that the result is zero.
>
> Would a patch that changes this behaviour be welcome? I’ve written something up against the current git master, but haven’t yet tested it.

Hello

You are most likley right. As i understand it, these checksums are modulo
255; therefore, in some cases they are not unique. Therefore simple
computing new value and comparing it with received does not work.
A patch would be definitely welcome.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20150425/1a5446fb/attachment.asc>


More information about the Bird-users mailing list