[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1464811047-18642-1-git-send-email-phil@nwl.cc>
Date: Wed, 1 Jun 2016 21:57:27 +0200
From: Phil Sutter <phil@....cc>
To: Stephen Hemminger <shemming@...cade.com>
Cc: netdev@...r.kernel.org, Vadim Kochan <vadim4j@...il.com>
Subject: [iproute PATCH] ipaddress: Allow listing addresses by type
Not sure why this was limited to ip-link before. It is semantically
equal to the 'master' keyword, which is not restricted at all.
Cc: Vadim Kochan <vadim4j@...il.com>
Signed-off-by: Phil Sutter <phil@....cc>
---
ip/ipaddress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
index df363b070d5de..1b5ee838ef3fe 100644
--- a/ip/ipaddress.c
+++ b/ip/ipaddress.c
@@ -1613,7 +1613,7 @@ static int ipaddr_list_flush_or_save(int argc, char **argv, int action)
if (!ifindex)
invarg("Device does not exist\n", *argv);
filter.master = ifindex;
- } else if (do_link && strcmp(*argv, "type") == 0) {
+ } else if (strcmp(*argv, "type") == 0) {
NEXT_ARG();
filter.kind = *argv;
} else {
--
2.8.2
Powered by blists - more mailing lists