From: Vlad Dogaru Date: Wed, 2 Feb 2011 18:23:41 +0000 (+0200) Subject: iproute2: support device group semantics X-Git-Tag: v2.6.39~13^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26ad3aecfeeb93cd396a199a5e664e749bcabc8d;p=thirdparty%2Fiproute2.git iproute2: support device group semantics Add the group keyword to ip link set, which has the following meaning: If both a group and a device name are pressent, we change the device's group to the specified one. If only a group is present, then the operation specified by the rest of the command should apply on an entire group, not a single device. So, to set eth0 to the default group, one would use ip link set dev eth0 group default Conversely, to set all the devices in the default group down, use ip link set group default down Signed-off-by: Vlad Dogaru --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index e4748e3dd..524ea0185 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -725,7 +725,7 @@ static int ipaddr_list_or_flush(int argc, char **argv, int flush) if (filter.family == AF_UNSPEC) filter.family = preferred_family; - filter.group = INIT_NETDEV_GROUP; + filter.group = 0; /* INIT_NETDEV_GROUP */ if (flush) { if (argc <= 0) {