6#ifndef NETLINK_LINK_VETH_H_
7#define NETLINK_LINK_VETH_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
24 const char *peer, pid_t pid);
struct rtnl_link * rtnl_link_veth_get_peer(struct rtnl_link *)
Get the peer link of a veth link.
int rtnl_link_veth_add(struct nl_sock *sock, const char *name, const char *peer, pid_t pid)
Create a new kernel veth device.
void rtnl_link_veth_release(struct rtnl_link *)
Release a veth link and its peer.
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.