]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_msg.c
pimd: non-null register checksum incorrect
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 12 Jan 2017 03:36:50 +0000 (19:36 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 14 Feb 2017 20:52:09 +0000 (15:52 -0500)
commit5637da0501faa600273ecd7a2ed39cdbbe4531b1
tree91c9476f77893d7b9c201ec41c7b761e63a75d96
parent48f6dc2dae2572864db373ddc556518c2ab2ad85
pimd: non-null register checksum incorrect

Ticket: CM-12041
Reviewed By: sharpd, CCR-5556
Testing Done: Tested on Local setup generating PIM Register (Data/Null) and processing both Tx/Rx with correct checksum.
Provided quagga debian to submitter and checksum cases passed on submitter setup.

1. PIM Register msg checksum only accounts for 8 bytes (4 bytes for PIM header and next 4 byetes before data payload).
In PIM header checksum calculation checked PIM packet type (in this case REGISTER type) then only pass 8 bytes as length
rather than full packet length.
2. PIM Register Rx path also handled with 8 byte and full pim lenth checksum.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
pimd/pim_msg.c
pimd/pim_pim.c