12 #ifndef NETLINK_LINK_VETH_H_ 13 #define NETLINK_LINK_VETH_H_ 15 #include <netlink/netlink.h> 16 #include <netlink/route/link.h> 17 #include <sys/types.h> 30 const char *peer, pid_t pid);
int rtnl_link_veth_add(struct nl_sock *sock, const char *name, const char *peer, pid_t pid)
Create a new kernel veth device.
int rtnl_link_is_veth(struct rtnl_link *)
Check if link is a veth link.
struct rtnl_link * rtnl_link_veth_alloc(void)
Allocate link object of type veth.
void rtnl_link_veth_release(struct rtnl_link *)
Release a veth link and its peer.
struct rtnl_link * rtnl_link_veth_get_peer(struct rtnl_link *)
Get the peer link of a veth link.