Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
iproute2
Handle-netdev-group-for-veth-peer-too.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Handle-netdev-group-for-veth-peer-too.patch of Package iproute2
From: Sergey Popovich <popovich_sergei@mail.ru> Date: Wed, 11 Dec 2013 14:25:07 +0200 Subject: Handle netdev group for veth peer too Patch-mainline: v3.14.0 Git-commit: e0d47aa303d7224f9be10fd769592cca5090085f References: bnc#879865 Currently ip-link(8) parses, but ignores "group" argument to peer interface on veth creation. Insert IFLA_GROUP attribute for peer interface when present. Signed-off-by: Sergey Popovich <popovich_sergei@mail.ru> --- ip/link_veth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ip/link_veth.c b/ip/link_veth.c index f357182..62cb5a5 100644 --- a/ip/link_veth.c +++ b/ip/link_veth.c @@ -56,6 +56,9 @@ static int veth_parse_opt(struct link_util *lu, int argc, char **argv, addattr_l(hdr, 1024, IFLA_IFNAME, name, len); } + if (group != -1) + addattr32(hdr, 1024, IFLA_GROUP, group); + data->rta_len = (void *)NLMSG_TAIL(hdr) - (void *)data; return argc - 1 - err; } -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor