]> git.proxmox.com Git - mirror_iproute2.git/commit
ip-address: Support filtering by slave type, too
authorPhil Sutter <phil@nwl.cc>
Tue, 28 Jun 2016 13:07:16 +0000 (15:07 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 29 Jun 2016 16:20:02 +0000 (09:20 -0700)
commite0513807f6dbbd4631fdbb27f0bd6bbce138e8cd
treeef3f892c16ce28b06d68af79a61193d8366b905f
parent62000e51e05d635016bae9891a4e00134ed8aefb
ip-address: Support filtering by slave type, too

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 complete since it
does not allow to match on type and slave type at the same time, but it
doesn't prevent implementing a dedicated slave_type match, either.

Signed-off-by: Phil Sutter <phil@nwl.cc>
ip/ipaddress.c