iproute2/bridge
Nikolay Aleksandrov 547b319762 bridge: mdb: add support for source address
This patch adds the user-space control and dump of mdb entry source
address. When setting the new MDBA_SET_ENTRY_ATTRS nested attribute is
used and inside is added MDBE_ATTR_SOURCE based on the address family.
When dumping we look for MDBA_MDB_EATTR_SOURCE and if present we add the
"src x.x.x.x" output. The source address will be always shown as it's
needed to match the entry to modify it from user-space.

Example:
 $ bridge mdb add dev bridge port ens13 grp 239.0.0.1 src 1.2.3.4 permanent vid 100
 $ bridge mdb show
 dev bridge port ens13 grp 239.0.0.1 src 1.2.3.4 permanent vid 100

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2020-10-11 20:07:25 -06:00
..
.gitignore Add bridge command 2012-08-01 15:23:49 -07:00
Makefile SPDX license identifiers 2017-11-24 12:21:35 -08:00
br_common.h bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
bridge.c replace SNAPSHOT with auto-generated version string 2020-08-03 10:02:47 -07:00
fdb.c Merge branch 'main' into next 2020-08-06 16:21:35 +00:00
link.c State of bridge STP port are now case insensitive 2020-04-20 09:45:37 -07:00
mdb.c bridge: mdb: add support for source address 2020-10-11 20:07:25 -06:00
monitor.c bridge: mdb: restore valid json output 2019-04-17 16:27:06 -07:00
vlan.c Replace open-coded instances of print_nl() 2020-05-04 17:13:53 -07:00