6#ifndef NETLINK_LINK_VLAN_H_
7#define NETLINK_LINK_VLAN_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
22#define VLAN_PRIO_MAX 7
28extern char * rtnl_link_vlan_flags2str(
int,
char *,
size_t);
29extern int rtnl_link_vlan_str2flags(
const char *);
43extern int rtnl_link_vlan_set_ingress_map(
struct rtnl_link *,
45extern uint32_t * rtnl_link_vlan_get_ingress_map(
struct rtnl_link *);
47extern int rtnl_link_vlan_set_egress_map(
struct rtnl_link *,
int rtnl_link_vlan_get_protocol(struct rtnl_link *link)
Get VLAN protocol.
int rtnl_link_vlan_unset_flags(struct rtnl_link *, unsigned int)
Unset VLAN flags.
int rtnl_link_vlan_set_id(struct rtnl_link *, uint16_t)
Set VLAN ID.
int rtnl_link_vlan_set_protocol(struct rtnl_link *link, uint16_t)
Set VLAN protocol.
int rtnl_link_is_vlan(struct rtnl_link *)
Check if link is a VLAN link.
int rtnl_link_vlan_get_id(struct rtnl_link *)
Get VLAN Id.
struct rtnl_link * rtnl_link_vlan_alloc(void)
Allocate link object of type VLAN.
int rtnl_link_vlan_set_flags(struct rtnl_link *, unsigned int)
Set VLAN flags.
int rtnl_link_vlan_get_flags(struct rtnl_link *)
Get VLAN flags.