[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190930092718.2d3a47ab@hermes.lan>
Date: Mon, 30 Sep 2019 09:27:18 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net,
jakub.kicinski@...ronome.com, dsahern@...il.com,
roopa@...ulusnetworks.com, dcbw@...hat.com,
nikolay@...ulusnetworks.com, mkubecek@...e.cz, andrew@...n.ch,
parav@...lanox.com, saeedm@...lanox.com, f.fainelli@...il.com,
sd@...asysnail.net, sbrivio@...hat.com, pabeni@...hat.com,
mlxsw@...lanox.com
Subject: Re: [patch net-next 1/2] ip: add support for alternative name
addition/deletion/list
On Mon, 30 Sep 2019 11:59:02 +0200
Jiri Pirko <jiri@...nulli.us> wrote:
> + open_json_array(PRINT_JSON, "altnames");
> + for (i = RTA_DATA(proplist); RTA_OK(i, rem);
> + i = RTA_NEXT(i, rem)) {
> + if (i->rta_type != IFLA_ALT_IFNAME)
> + continue;
> + print_string(PRINT_FP, "NULL", "%s altname ", _SL_);
You can pass real NULL versus quoted NULL when doing print to file only
Powered by blists - more mailing lists