]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_igmpv2.c
pimd: IGMPv2 leave msg may be longer than 8 octets
authorMobashshera Rasool <mrasool@vmware.com>
Thu, 13 Jan 2022 08:07:12 +0000 (00:07 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Thu, 13 Jan 2022 08:21:43 +0000 (00:21 -0800)
commit69b9ea0b496dd02aabda038465ba6b59bf1b3810
treeffc2b5150067f291bb8865455b5cf239692fe551
parent3b93886add3b28acec698da8a50cf8c87eb16e4e
pimd: IGMPv2 leave msg may be longer than 8 octets

Fix the code as per RFC 2236 section 2.5:
   Note that IGMP messages may be longer than 8 octets, especially
   future backwards-compatible versions of IGMP.  As long as the Type is
   one that is recognized, an IGMPv2 implementation MUST ignore anything
   past the first 8 octets while processing the packet.  However, the
   IGMP checksum is always computed over the whole IP payload, not just
   over the first 8 octets.

Fixes: #10331
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_igmpv2.c