diff options
author | Cong Wang <amwang@redhat.com> | 2012-12-06 19:04:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-07 14:32:52 -0500 |
commit | ee07c6e7a6f8a25c18f0a6b18152fbd7499245f6 (patch) | |
tree | 055d61934deeedf93eefbde3106f6a751c35d932 /net/bridge/br_private.h | |
parent | 5d248c491b38d4f1b2a0bd7721241d68cd0b3067 (diff) |
bridge: export multicast database via netlink
V5: fix two bugs pointed out by Thomas
remove seq check for now, mark it as TODO
V4: remove some useless #include
some coding style fix
V3: drop debugging printk's
update selinux perm table as well
V2: drop patch 1/2, export ifindex directly
Redesign netlink attributes
Improve netlink seq check
Handle IPv6 addr as well
This patch exports bridge multicast database via netlink
message type RTM_GETMDB. Similar to fdb, but currently bridge-specific.
We may need to support modify multicast database too (RTM_{ADD,DEL}MDB).
(Thanks to Thomas for patient reviews)
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Thomas Graf <tgraf@suug.ch>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index cd86222cf5e3..ae0a6ec0a702 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -433,6 +433,7 @@ extern int br_multicast_set_port_router(struct net_bridge_port *p, | |||
433 | extern int br_multicast_toggle(struct net_bridge *br, unsigned long val); | 433 | extern int br_multicast_toggle(struct net_bridge *br, unsigned long val); |
434 | extern int br_multicast_set_querier(struct net_bridge *br, unsigned long val); | 434 | extern int br_multicast_set_querier(struct net_bridge *br, unsigned long val); |
435 | extern int br_multicast_set_hash_max(struct net_bridge *br, unsigned long val); | 435 | extern int br_multicast_set_hash_max(struct net_bridge *br, unsigned long val); |
436 | extern void br_mdb_init(void); | ||
436 | 437 | ||
437 | static inline bool br_multicast_is_router(struct net_bridge *br) | 438 | static inline bool br_multicast_is_router(struct net_bridge *br) |
438 | { | 439 | { |