]> git.ipfire.org Git - thirdparty/iproute2.git/commit
tipc: add link broadcast get
authorHoang Le <hoang.h.le@dektech.com.au>
Fri, 22 Mar 2019 08:47:34 +0000 (15:47 +0700)
committerDavid Ahern <dsahern@gmail.com>
Tue, 26 Mar 2019 23:09:16 +0000 (16:09 -0700)
commit5027f233e35b80f306bc06b63f2ad1243ba5f3a8
treed6b39ea1ef88be9dd0ce40aa6ea0fcdcd3359b24
parent0ea46945bc930ad59533b3e0def08dc71e820cc3
tipc: add link broadcast get

The command prints the actually method that multicast
is running in the system.
Also 'ratio' value for AUTOSELECT method.

A sample usage is shown below:
$tipc link get broadcast
BROADCAST

$tipc link get broadcast
AUTOSELECT ratio:30%

$tipc link get broadcast -j -p
[ {
        "method": "AUTOSELECT"
    },{
        "ratio": 30
    } ]

Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
Signed-off-by: David Ahern <dsahern@gmail.com>
tipc/link.c