mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 14:05:22 +08:00
link: display 'allmulti' counter
This counter is based on the same principle that the 'promiscuity' counter: the flag ALLMULTI is displayed only when it is explicitly requested by the userland. This counter enables to know if 'allmulti' is configured on an interface. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
parent
b264b4c656
commit
e98683accc
@ -1205,6 +1205,12 @@ int print_linkinfo(struct nlmsghdr *n, void *arg)
|
||||
" promiscuity %u ",
|
||||
rta_getattr_u32(tb[IFLA_PROMISCUITY]));
|
||||
|
||||
if (tb[IFLA_ALLMULTI])
|
||||
print_uint(PRINT_ANY,
|
||||
"allmulti",
|
||||
" allmulti %u ",
|
||||
rta_getattr_u32(tb[IFLA_ALLMULTI]));
|
||||
|
||||
if (tb[IFLA_MIN_MTU])
|
||||
print_uint(PRINT_ANY,
|
||||
"min_mtu", "minmtu %u ",
|
||||
|
Loading…
Reference in New Issue
Block a user