summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2022-12-15 19:52:28 +0200
committerDavid Ahern <dsahern@kernel.org>2022-12-18 18:38:48 -0700
commitaa9a0b0fa9c2773f61fa0b748db600aa1b186f32 (patch)
treed2d6cb8930af1e5776e825f5d0f182e291c68c5b /man
parent7fe47f5160d334c6827f891aee4b9fd9ad7482c3 (diff)
downloadiproute2-aa9a0b0fa9c2773f61fa0b748db600aa1b186f32.tar.gz
bridge: mdb: Add source list support
Allow user space to specify the source list of (*, G) entries by adding the 'MDBE_ATTR_SRC_LIST' attribute to the 'MDBA_SET_ENTRY_ATTRS' nest. Example: # bridge mdb add dev br0 port dummy10 grp 239.1.1.1 temp source_list 198.51.100.1,198.51.100.2 filter_mode exclude # bridge -d -s mdb show dev br0 port dummy10 grp 239.1.1.1 src 198.51.100.2 temp filter_mode include proto static blocked 0.00 dev br0 port dummy10 grp 239.1.1.1 src 198.51.100.1 temp filter_mode include proto static blocked 0.00 dev br0 port dummy10 grp 239.1.1.1 temp filter_mode exclude source_list 198.51.100.2/0.00,198.51.100.1/0.00 proto static 256.42 # bridge -j -p -d -s mdb show [ { "mdb": [ { "index": 10, "dev": "br0", "port": "dummy10", "grp": "239.1.1.1", "src": "198.51.100.2", "state": "temp", "filter_mode": "include", "protocol": "static", "flags": [ "blocked" ], "timer": " 0.00" },{ "index": 10, "dev": "br0", "port": "dummy10", "grp": "239.1.1.1", "src": "198.51.100.1", "state": "temp", "filter_mode": "include", "protocol": "static", "flags": [ "blocked" ], "timer": " 0.00" },{ },{ "index": 10, "dev": "br0", "port": "dummy10", "grp": "239.1.1.1", "state": "temp", "filter_mode": "exclude", "source_list": [ { "address": "198.51.100.2", "timer": "0.00" },{ "address": "198.51.100.1", "timer": "0.00" } ], "protocol": "static", "flags": [ ], "timer": " 251.19" } ], "router": {} } ] Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David Ahern <dsahern@kernel.org>
Diffstat (limited to 'man')
-rw-r--r--man/man8/bridge.811
1 files changed, 10 insertions, 1 deletions
diff --git a/man/man8/bridge.8 b/man/man8/bridge.8
index e829b9cb..801bf70c 100644
--- a/man/man8/bridge.8
+++ b/man/man8/bridge.8
@@ -139,7 +139,9 @@ bridge \- show / manipulate bridge addresses and devices
.BR permanent " | " temp " ] [ "
.B vid
.IR VID " ] [ "
-.BR filter_mode " { " include " | " exclude " } ] "
+.BR filter_mode " { " include " | " exclude " } ] [ "
+.B source_list
+.IR SOURCE_LIST " ]
.ti -8
.BR "bridge mdb show" " [ "
@@ -937,6 +939,13 @@ the VLAN ID which is known to have members of this multicast group.
controls whether the sources in the entry's source list are in INCLUDE or
EXCLUDE mode. Can only be set for (*, G) entries.
+.TP
+.BI source_list " SOURCE_LIST"
+optional list of source IP addresses of senders for this multicast group,
+separated by a ','. Whether the entry forwards packets from these senders or
+not is determined by the entry's filter mode, which becomes a mandatory
+argument. Can only be set for (*, G) entries.
+
.in -8
.SS bridge mdb delete - delete a multicast group database entry
This command removes an existing mdb entry.