From: Nicolas Dichtel Date: Mon, 19 Sep 2022 08:31:36 +0000 (+0200) Subject: link: display 'allmulti' counter X-Git-Tag: v6.1.0~33^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e98683accc28f5669fa5c6c2985f207ad90b49c8;p=thirdparty%2Fiproute2.git 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 --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 71c1ad5f2..986cfbc3c 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 ",