diff options
author | Linus Lüssing <linus.luessing@c0d3.blue> | 2015-05-02 14:01:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-04 20:49:23 +0200 |
commit | 9afd85c9e4552b276e2f4cfefd622bdeeffbbf26 (patch) | |
tree | 3657b92f850d03ec3a8f67e6171d5b61abdf3ae0 /include/net/addrconf.h | |
parent | bridge: multicast: call skb_checksum_{simple_, }validate (diff) | |
download | linux-9afd85c9e4552b276e2f4cfefd622bdeeffbbf26.tar.xz linux-9afd85c9e4552b276e2f4cfefd622bdeeffbbf26.zip |
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/net/addrconf.h')
-rw-r--r-- | include/net/addrconf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 80456f72d70a..def59d3a34d5 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -142,6 +142,7 @@ void ipv6_mc_unmap(struct inet6_dev *idev); void ipv6_mc_remap(struct inet6_dev *idev); void ipv6_mc_init_dev(struct inet6_dev *idev); void ipv6_mc_destroy_dev(struct inet6_dev *idev); +int ipv6_mc_check_mld(struct sk_buff *skb, struct sk_buff **skb_trimmed); void addrconf_dad_failure(struct inet6_ifaddr *ifp); bool ipv6_chk_mcast_addr(struct net_device *dev, const struct in6_addr *group, |