• Nikolay Aleksandrov's avatar
    bridge: mdb: add user-space support for extended attributes · 05d4f64d
    Nikolay Aleksandrov authored
    Recently support was added to the kernel to be able to add more per-mdb
    entry attributes via standard netlink attributes of type MDBA_MDB_EATTR_.
    This patch adds support to iproute2 to parse and output these
    attributes. The first exported attribute is the mdb "timer" value which
    is shown only when the "-s" iproute2 arg is used.
    
    Example:
    $ bridge -s mdb show
    dev br0 port eth1 grp 239.0.0.11 permanent   0.00
    dev br0 port eth1 grp 239.0.0.10 temp 244.15
    dev br0 port eth1 grp 239.0.0.1 temp 245.21
    dev br0 port eth1 grp 239.0.0.5 temp 246.43
    dev br0 port eth2 grp 239.0.0.5 temp 248.44
    dev br0 port eth1 grp 239.0.0.2 temp 245.32
    Signed-off-by: default avatarNikolay Aleksandrov <nikolay@cumulusnetworks.com>
    05d4f64d
br_common.h 756 Bytes