]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit235fe4730414a3a8c9b779c19c89716ded03c8ed
tree3657b92f850d03ec3a8f67e6171d5b61abdf3ae0
parent1ef50d8fa9abde2f9ef8523af869ceab2a33cfc9
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]