From: Nicolas Dichtel Date: Fri, 21 Jun 2019 09:21:32 +0000 (+0200) Subject: ip monitor: display interfaces from all groups X-Git-Tag: v5.2.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d77d9c6ae74fe231d9aab2b7538fdded1d1028c;p=thirdparty%2Fiproute2.git ip monitor: display interfaces from all groups Only interface from group 0 were displayed. ip monitor calls ipaddr_reset_filter() and there is no reason to not reset the filter group in this function. Fixes: c4fdf75d3def ("ip link: fix display of interface groups") Signed-off-by: Nicolas Dichtel Signed-off-by: Stephen Hemminger --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index b504200bb..fd79f9784 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1850,7 +1850,6 @@ static int ipaddr_list_flush_or_save(int argc, char **argv, int action) ipaddr_reset_filter(oneline, 0); filter.showqueue = 1; filter.family = preferred_family; - filter.group = -1; if (action == IPADD_FLUSH) { if (argc <= 0) { @@ -2107,6 +2106,7 @@ void ipaddr_reset_filter(int oneline, int ifindex) memset(&filter, 0, sizeof(filter)); filter.oneline = oneline; filter.ifindex = ifindex; + filter.group = -1; } static int default_scope(inet_prefix *lcl)