6#ifndef NETLINK_LINK_MACVTAP_H_
7#define NETLINK_LINK_MACVTAP_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
20extern char * rtnl_link_macvtap_mode2str(
int,
char *,
size_t);
21extern int rtnl_link_macvtap_str2mode(
const char *);
23extern char * rtnl_link_macvtap_flags2str(
int,
char *,
size_t);
24extern int rtnl_link_macvtap_str2flags(
const char *);
int rtnl_link_is_macvtap(struct rtnl_link *)
Check if link is a MACVTAP link.
int rtnl_link_macvtap_set_flags(struct rtnl_link *, uint16_t)
Set MACVTAP flags.
uint32_t rtnl_link_macvtap_get_mode(struct rtnl_link *)
Get MACVTAP Mode.
int rtnl_link_macvtap_set_mode(struct rtnl_link *, uint32_t)
Set MACVTAP MODE.
uint16_t rtnl_link_macvtap_get_flags(struct rtnl_link *)
Get MACVTAP flags.
int rtnl_link_macvtap_unset_flags(struct rtnl_link *, uint16_t)
Unset MACVTAP flags.
struct rtnl_link * rtnl_link_macvtap_alloc(void)
Allocate link object of type MACVTAP.