Re: [iproute PATCH 1/2] ip-address: Support filtering by slave type, too

2016-06-29 Thread Stephen Hemminger
On Tue, 28 Jun 2016 15:07:16 +0200 Phil Sutter wrote: > +static int match_link_kind(struct rtattr **tb, char *kind, bool slave) const char *kind ?? > +{ > + if (!tb[IFLA_LINKINFO]) > + return -1; > + > + return strcmp(parse_link_kind(tb[IFLA_LINKINFO], slave),

Re: [iproute PATCH 1/2] ip-address: Support filtering by slave type, too

2016-06-28 Thread David Ahern
On 6/28/16 7:07 AM, Phil Sutter wrote: This patch allows to query all interfaces enslaved to a bridge or bond using the following syntax: works for vrf's too.

[iproute PATCH 1/2] ip-address: Support filtering by slave type, too

2016-06-28 Thread Phil Sutter
This patch allows to query all interfaces enslaved to a bridge or bond using the following syntax: | ip addr show type bridge_slave Filtering has to be done in userspace since the kernel does not support filtering on IFLA_INFO_SLAVE_KIND. Functionality introduced in this patch is not fully