summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2019-06-21 11:21:32 +0200
committerStephen Hemminger <stephen@networkplumber.org>2019-06-21 12:59:50 -0700
commit6d77d9c6ae74fe231d9aab2b7538fdded1d1028c (patch)
treeb3412e8c9e239db29f79b9644656b305e7bf6ad0
parentb2e2922373a6c65ed08b57926e61f3621d89a70a (diff)
downloadiproute2-6d77d9c6ae74fe231d9aab2b7538fdded1d1028c.tar.gz
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 <nicolas.dichtel@6wind.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--ip/ipaddress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index b504200b..fd79f978 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)