summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2013-12-04 04:16:08 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-12-09 14:28:33 (GMT)
commitaa1c5628fd67631894b91bfb339a912a39a24994 (patch)
tree71b61a97a6c79fdbfe8a1e56682f8b9a12c44aa7 /tests
parent8b87ae55161f402c07aa8464d8d6164d46aa84d5 (diff)
downloadlibnl-aa1c5628fd67631894b91bfb339a912a39a24994.zip
libnl-aa1c5628fd67631894b91bfb339a912a39a24994.tar.gz
libnl-aa1c5628fd67631894b91bfb339a912a39a24994.tar.bz2
add a parameter to rtnl_link_veth_add()
Usually the peer of a veth device is moved to a new netns after creation, so add a pid parameter to rtnl_link_veth_add(). Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-create-veth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-create-veth.c b/tests/test-create-veth.c
index 038353f..c0d9145 100644
--- a/tests/test-create-veth.c
+++ b/tests/test-create-veth.c
@@ -16,7 +16,7 @@ int main(int argc, char *argv[])
}
#if 0
- rtnl_link_veth_add(sk, "veth2", "veth3");
+ rtnl_link_veth_add(sk, "veth2", "veth3", getpid());
#else
link = rtnl_link_veth_alloc();
if (!link) {