Skip to content
Commit a2e2ca3b authored by Linus Lüssing's avatar Linus Lüssing Committed by David S. Miller
Browse files

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: default avatarLinus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ba5ea614
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment