Mon, Sep 30, 2019 at 06:27:18PM CEST, step...@networkplumber.org wrote:
>On Mon, 30 Sep 2019 11:59:02 +0200
>Jiri Pirko wrote:
>
>> +open_json_array(PRINT_JSON, "altnames");
>> +for (i = RTA_DATA(proplist); RTA_OK(i, rem);
>> + i = RTA_NEXT(i, rem)) {
>> +
On Mon, 30 Sep 2019 11:59:02 +0200
Jiri Pirko 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)
> +
In subject of this and the next one should be iproute2-next, of course.
From: Jiri Pirko
Implement addition/deletion of lists of properties, currently
alternative ifnames. Also extent the ip link show command to list them.
Signed-off-by: Jiri Pirko
---
rfc->v1:
- convert to generic property lists
- added patch description
- use ll_name_to_index() and ifindex as han