]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip monitor: display interfaces from all groups
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 21 Jun 2019 09:21:32 +0000 (11:21 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 21 Jun 2019 19:59:50 +0000 (12:59 -0700)
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 <nicolas.dichtel@6wind.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c

index b504200bb3776a09d90a6ff697da4846bcb890d4..fd79f978435dacf37e7fa000298010815c436acc 100644 (file)
@@ -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)