From e98683accc28f5669fa5c6c2985f207ad90b49c8 Mon Sep 17 00:00:00 2001 From: Nicolas Dichtel Date: Mon, 19 Sep 2022 10:31:36 +0200 Subject: [PATCH] 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 Signed-off-by: David Ahern --- ip/ipaddress.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 71c1ad5f..986cfbc3 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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 ",