net: Export IGMP/MLD message validation code
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sat, 2 May 2015 12:01:07 +0000 (14:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 18:49:23 +0000 (14:49 -0400)
commit9afd85c9e4552b276e2f4cfefd622bdeeffbbf26
tree3657b92f850d03ec3a8f67e6171d5b61abdf3ae0
parent3c9e4f870012350a36dc3091c7a57f5ba2799afe
net: Export IGMP/MLD message validation code

With this patch, the IGMP and MLD message validation functions are moved
from the bridge code to IPv4/IPv6 multicast files. Some small
refactoring was done to enhance readibility and to iron out some
differences in behaviour between the IGMP and MLD parsing code (e.g. the
skb-cloning of MLD messages is now only done if necessary, just like the
IGMP part always did).

Finally, these IGMP and MLD message validation functions are exported so
that not only the bridge can use it but batman-adv later, too.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/igmp.h
include/linux/skbuff.h
include/net/addrconf.h
net/bridge/br_multicast.c
net/core/skbuff.c
net/ipv4/igmp.c
net/ipv6/Makefile
net/ipv6/mcast_snoop.c [new file with mode: 0644]