]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commit
iproute2: add support for IFLA_NET_NS_PID in ip link
authorBenjamin Thery <benjamin.thery@bull.net>
Fri, 20 Jun 2008 09:07:35 +0000 (11:07 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 23 Jun 2008 16:10:47 +0000 (09:10 -0700)
commite2613dc8605e56dbc53890ebbae263f93610bd41
treefd7fba9615c735117bceb4e1068eb44ef18a0559
parentae76106841d764fc64188e78f5c2a2575fba725e
iproute2: add support for IFLA_NET_NS_PID in ip link

Hi Stephen,

I resend you this patch once more. This time I updated the documentation
too (may be that was the reason why you didn't take it before?).

Please tell me if there are other things missing in this patch
It applies on iproute2 git tree.

Regards,
Benjamin

Description:
------------

This patch adds support for the IFLA_NET_NS_PID type. It is used to
move network devices between network namespaces.

The syntax is:
ip link set DEVICE netns PID

PID is the pid of a process in the target network namespace.

(Daniel Lezcano is the original author).

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
doc/ip-cref.tex
ip/iplink.c
man/man8/ip.8