aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-02-27 14:41:46 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-28 03:48:45 -0500
commit5cb5e947d8f82011e3d7e7017e9d10db9a40ae9f (patch)
tree126e3b2112f780120bf9e95c67fdb1b81e73c314 /net/bridge/br_private.h
parenteb1d16414339a6e113d89e2cca2556005d7ce919 (diff)
bridge: Add multicast forwarding functions
This patch adds code to perform selective multicast forwarding. We forward multicast traffic to a set of ports plus all multicast router ports. In order to avoid duplications among these two sets of ports, we order all ports by the numeric value of their pointers. The two lists are then walked in lock-step to eliminate duplicates. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index 44345c9afdd3..c85943c2b23f 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -293,6 +293,10 @@ extern void br_multicast_disable_port(struct net_bridge_port *port);
293extern void br_multicast_init(struct net_bridge *br); 293extern void br_multicast_init(struct net_bridge *br);
294extern void br_multicast_open(struct net_bridge *br); 294extern void br_multicast_open(struct net_bridge *br);
295extern void br_multicast_stop(struct net_bridge *br); 295extern void br_multicast_stop(struct net_bridge *br);
296extern void br_multicast_deliver(struct net_bridge_mdb_entry *mdst,
297 struct sk_buff *skb);
298extern void br_multicast_forward(struct net_bridge_mdb_entry *mdst,
299 struct sk_buff *skb, struct sk_buff *skb2);
296#else 300#else
297static inline int br_multicast_rcv(struct net_bridge *br, 301static inline int br_multicast_rcv(struct net_bridge *br,
298 struct net_bridge_port *port, 302 struct net_bridge_port *port,
@@ -334,6 +338,17 @@ static inline void br_multicast_open(struct net_bridge *br)
334static inline void br_multicast_stop(struct net_bridge *br) 338static inline void br_multicast_stop(struct net_bridge *br)
335{ 339{
336} 340}
341
342static inline void br_multicast_deliver(struct net_bridge_mdb_entry *mdst,
343 struct sk_buff *skb)
344{
345}
346
347static inline void br_multicast_forward(struct net_bridge_mdb_entry *mdst,
348 struct sk_buff *skb,
349 struct sk_buff *skb2)
350{
351}
337#endif 352#endif
338 353
339static inline bool br_multicast_is_router(struct net_bridge *br) 354static inline bool br_multicast_is_router(struct net_bridge *br)