link: display 'allmulti' counter
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- include/uapi/linux/if_link.h | 1 + ip/ipaddress.c | 6 ++++++ 2 files changed, 7 insertions(+)
include/uapi/linux/if_link.h +1 -0
@@ -370,6 +370,7 @@ enum {IFLA_GRO_MAX_SIZE ,IFLA_TSO_MAX_SIZE ,IFLA_TSO_MAX_SEGS , +IFLA_ALLMULTI , __IFLA_MAX };
ip/ipaddress.c +6 -0
@@ -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 ",
Signature · 1 line
2.33.0
David Ahern
AppliedQuoted 11 lines · Nicolas Dichtel
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 <[email protected]>--- include/uapi/linux/if_link.h | 1 + ip/ipaddress.c | 6 ++++++ 2 files changed, 7 insertions(+)
applied to iproute2-next. Thanks