mbox series

[iproute2-next,0/6] bridge: mdb: add support for IGMPv3/MLDv2 attributes

Message ID 20201008135024.1515468-1-razor@blackwall.org
Headers show
Series bridge: mdb: add support for IGMPv3/MLDv2 attributes | expand

Message

Nikolay Aleksandrov Oct. 8, 2020, 1:50 p.m. UTC
From: Nikolay Aleksandrov <nikolay@nvidia.com>

Hi,
This set adds support for IGMPv3/MLDv2 attributes, they're mostly
read-only at the moment. The only new "set" option is the source address
for S,G entries. It is added in patch 01 (see the patch commit message for
an example). Patch 02 shows a missing flag (fast_leave) for
completeness, then patch 03 shows the new IGMPv3/MLDv2 flags:
added_by_star_ex and blocked. Patches 04-06 show the new extra
information about the entry's state when IGMPv3/MLDv2 are enabled. That
includes its filter mode (include/exclude), source list with timers and
origin protocol (currently only static/kernel), in order to show the new
information the user must use "-d"/show_details.
Here's the output of a few IGMPv3 entries:
 dev bridge port ens12 grp 239.0.0.1 src 20.21.22.23 temp filter_mode include proto kernel  blocked    0.00
 dev bridge port ens12 grp 239.0.0.1 src 8.9.10.11 temp filter_mode include proto kernel  blocked    0.00
 dev bridge port ens12 grp 239.0.0.1 src 1.2.3.1 temp filter_mode include proto kernel  blocked    0.00
 dev bridge port ens12 grp 239.0.0.1 temp filter_mode exclude source_list 20.21.22.23/0.00,8.9.10.11/0.00,1.2.3.1/0.00 proto kernel    26.65

Thanks,
 Nik

Nikolay Aleksandrov (6):
  bridge: mdb: add support for source address
  bridge: mdb: print fast_leave flag
  bridge: mdb: show igmpv3/mldv2 flags
  bridge: mdb: print filter mode when available
  bridge: mdb: print source list when available
  bridge: mdb: print protocol when available

 bridge/mdb.c      | 123 ++++++++++++++++++++++++++++++++++++++++------
 man/man8/bridge.8 |   8 +++
 2 files changed, 117 insertions(+), 14 deletions(-)

Comments

David Ahern Oct. 12, 2020, 2:08 a.m. UTC | #1
On 10/8/20 6:50 AM, Nikolay Aleksandrov wrote:
> From: Nikolay Aleksandrov <nikolay@nvidia.com>
> 
> Hi,
> This set adds support for IGMPv3/MLDv2 attributes, they're mostly
> read-only at the moment. The only new "set" option is the source address
> for S,G entries. It is added in patch 01 (see the patch commit message for
> an example). Patch 02 shows a missing flag (fast_leave) for
> completeness, then patch 03 shows the new IGMPv3/MLDv2 flags:
> added_by_star_ex and blocked. Patches 04-06 show the new extra
> information about the entry's state when IGMPv3/MLDv2 are enabled. That
> includes its filter mode (include/exclude), source list with timers and
> origin protocol (currently only static/kernel), in order to show the new
> information the user must use "-d"/show_details.
> Here's the output of a few IGMPv3 entries:
>  dev bridge port ens12 grp 239.0.0.1 src 20.21.22.23 temp filter_mode include proto kernel  blocked    0.00
>  dev bridge port ens12 grp 239.0.0.1 src 8.9.10.11 temp filter_mode include proto kernel  blocked    0.00
>  dev bridge port ens12 grp 239.0.0.1 src 1.2.3.1 temp filter_mode include proto kernel  blocked    0.00
>  dev bridge port ens12 grp 239.0.0.1 temp filter_mode exclude source_list 20.21.22.23/0.00,8.9.10.11/0.00,1.2.3.1/0.00 proto kernel    26.65
> 

applied to iproute2-next. Thanks, Nik