On Wed, Jun 01, 2016 at 09:57:27PM +0200, Phil Sutter wrote:
> Not sure why this was limited to ip-link before. It is semantically
> equal to the 'master' keyword, which is not restricted at all.
> 
Hi Phil,

I don't remember why I did so, but you are right, it might be
used for 'ip addr' too.

> Cc: Vadim Kochan <vadi...@gmail.com>
> Signed-off-by: Phil Sutter <p...@nwl.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
> 

Reply via email to