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 compl
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.
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), kind);
> +}
>