]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: fix igmpv3 / mldv2 report parsing
authorLinus Lüssing <linus.luessing@c0d3.blue>
Fri, 11 Sep 2015 16:39:48 +0000 (18:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Sep 2015 22:08:20 +0000 (15:08 -0700)
commit407d8a7178c45e90422a6e3feb26a2ab39c3ae89
treede70128e6dba1bc818a614bcfe776c94367a5c40
parentd2662f4bc3ad87c88c4177bc3c2eb04220819877
bridge: fix igmpv3 / mldv2 report parsing

With the newly introduced helper functions the skb pulling is hidden in
the checksumming function - and undone before returning to the caller.

The IGMPv3 and MLDv2 report parsing functions in the bridge still
assumed that the skb is pointing to the beginning of the IGMP/MLD
message while it is now kept at the beginning of the IPv4/6 header,
breaking the message parsing and creating packet loss.

Fixing this by taking the offset between IP and IGMP/MLD header into
account, too.

Fixes: 235fe4730414 ("net: Export IGMP/MLD message validation code")
Reported-by: Tobias Powalowski <tobias.powalowski@googlemail.com>
Tested-by: Tobias Powalowski <tobias.powalowski@googlemail.com>
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c