]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fix checksum calculation to not include old checksum 5823/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Feb 2020 00:43:22 +0000 (19:43 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Feb 2020 14:34:18 +0000 (09:34 -0500)
commit30b544edc4248221f5975293ff01d6b7103c9495
treec4e55bc5e0f7c3f73d058c1033cf5f3f189e0ce6
parent3d0deb9c8b6ba004aecc8ca8ceed2694533976c9
zebra: Fix checksum calculation to not include old checksum

As part of checksum calculation for a received packet we were
comparing the checksum returned from in_cksum.  Typically
when we calculate the checksum the value stored in the checksum
must be all 0's.  Store the received checksum and then set
the checksum to 0 and then compare.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/irdp_packet.c