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:
Nicolas Dichtel 2022-09-19 10:31:36 +02:00 committed by David Ahern
parent b264b4c656
commit e98683accc

View File

@ -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 ",