summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@web.de>2013-09-04 02:13:39 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-05 18:35:53 +0200
commit3c3769e63301fd92fcaf51870c371583dd0282ce (patch)
treebdb41fcb0cde61816896406a405d1385cd4d446e /net/bridge/br_private.h
parentbridge: prevent flooding IPv6 packets that do not have a listener (diff)
downloadlinux-3c3769e63301fd92fcaf51870c371583dd0282ce.tar.xz
linux-3c3769e63301fd92fcaf51870c371583dd0282ce.zip
bridge: apply multicast snooping to IPv6 link-local, too
The multicast snooping code should have matured enough to be safely applicable to IPv6 link-local multicast addresses (excluding the link-local all nodes address, ff02::1), too. Signed-off-by: Linus Lüssing <linus.luessing@web.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/bridge/br_private.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index d41283c57952..89b2949be02f 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -476,16 +476,6 @@ extern void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port,
#define mlock_dereference(X, br) \
rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock))
-#if IS_ENABLED(CONFIG_IPV6)
-#include <net/addrconf.h>
-static inline int ipv6_is_transient_multicast(const struct in6_addr *addr)
-{
- if (ipv6_addr_is_multicast(addr) && IPV6_ADDR_MC_FLAG_TRANSIENT(addr))
- return 1;
- return 0;
-}
-#endif
-
static inline bool br_multicast_is_router(struct net_bridge *br)
{
return br->multicast_router == 2 ||