igmp: accept packets that have more on the wire data than IGMP reports. 12/20412/3
authorNeale Ranns <nranns@cisco.com>
Sun, 30 Jun 2019 09:05:05 +0000 (09:05 +0000)
committerNeale Ranns <nranns@cisco.com>
Sun, 30 Jun 2019 09:14:18 +0000 (09:14 +0000)
commit01b0a05e4ffc9e84eeedf15919c1a320daec4e91
treec01bcbc16cb05c8997e191a6d9ea83e8315ed279
parent1671d3be382fc8690f24d3569733f3dcf96cf011
igmp: accept packets that have more on the wire data than IGMP reports.

IGMPv3 sends a variable length of sources in a query. Today if the
amount of data on the wire does not exactly match that required for the
number of sources the packet is dropped.
Relax this check and instead accept the packet is the amount of wire
data is equal or greater than the number of sources.
Some devices on the wild internet pad small packets.

Type: feature

Change-Id: I102682814b38c0a0614d71816c9a286d90b834df
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/plugins/igmp/igmp_input.c
test/test_igmp.py