summaryrefslogtreecommitdiffstats
path: root/include/netlink
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 /include/netlink
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 'include/netlink')
-rw-r--r--include/netlink/route/link/veth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/netlink/route/link/veth.h b/include/netlink/route/link/veth.h
index 7ca7d32..35c2345c 100644
--- a/include/netlink/route/link/veth.h
+++ b/include/netlink/route/link/veth.h
@@ -14,6 +14,7 @@
#include <netlink/netlink.h>
#include <netlink/route/link.h>
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
@@ -26,7 +27,7 @@ extern int rtnl_link_is_veth(struct rtnl_link *);
extern struct rtnl_link *rtnl_link_veth_get_peer(struct rtnl_link *);
extern int rtnl_link_veth_add(struct nl_sock *sock, const char *name,
- const char *peer);
+ const char *peer, pid_t pid);
#ifdef __cplusplus
}