]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() internals
authorLinus Lüssing <linus.luessing@c0d3.blue>
Mon, 21 Jan 2019 06:26:26 +0000 (07:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2019 01:18:08 +0000 (17:18 -0800)
commite4d37edc82d507495b9998f5e63b470af2aa2b93
tree7e67a61e9eafae3581f2995fbc54b65aacd72f8c
parent40a8efcec8afdb0c46ecf123a0560156e2aaed0d
bridge: simplify ip_mc_check_igmp() and ipv6_mc_check_mld() internals

With this patch the internal use of the skb_trimmed is reduced to
the ICMPv6/IGMP checksum verification. And for the length checks
the newly introduced helper functions are used instead of calculating
and checking with skb->len directly.

These changes should hopefully make it easier to verify that length
checks are performed properly.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/igmp.c
net/ipv6/mcast_snoop.c