diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2015-05-02 15:01:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-04 21:49:23 +0300 |
commit | 9afd85c9e4552b276e2f4cfefd622bdeeffbbf26 (patch) | |
tree | 3657b92f850d03ec3a8f67e6171d5b61abdf3ae0 /include/linux/igmp.h | |
parent | 3c9e4f870012350a36dc3091c7a57f5ba2799afe (diff) | |
download | linux-9afd85c9e4552b276e2f4cfefd622bdeeffbbf26.tar.xz |
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>
Diffstat (limited to 'include/linux/igmp.h')
-rw-r--r-- | include/linux/igmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/igmp.h b/include/linux/igmp.h index 2c677afeea47..193ad488d3e2 100644 --- a/include/linux/igmp.h +++ b/include/linux/igmp.h @@ -130,5 +130,6 @@ extern void ip_mc_unmap(struct in_device *); extern void ip_mc_remap(struct in_device *); extern void ip_mc_dec_group(struct in_device *in_dev, __be32 addr); extern void ip_mc_inc_group(struct in_device *in_dev, __be32 addr); +int ip_mc_check_igmp(struct sk_buff *skb, struct sk_buff **skb_trimmed); #endif |