libnl 3.7.0
vlan.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2018 Volodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
4 */
5
6#ifndef NETLINK_VLAN_H_
7#define NETLINK_VLAN_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/route/action.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17extern int rtnl_vlan_set_mode(struct rtnl_act *act, int mode);
18extern int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode);
19extern int rtnl_vlan_set_action(struct rtnl_act *act, int action);
20extern int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action);
21extern int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol);
22extern int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol);
23extern int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid);
24extern int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid);
25extern int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio);
26extern int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio);
27
28#ifdef __cplusplus
29}
30#endif
31
32#endif /* NETLINK_VLAN_H_ */
int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio)
Get vlan prio.
Definition: vlan.c:372
int rtnl_vlan_set_mode(struct rtnl_act *act, int mode)
Set vlan mode.
Definition: vlan.c:188
int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol)
Set protocol.
Definition: vlan.c:269
int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio)
Set vlan prio.
Definition: vlan.c:350
int rtnl_vlan_set_action(struct rtnl_act *act, int action)
Set general action.
Definition: vlan.c:230
int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid)
Set vlan id.
Definition: vlan.c:308
int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol)
Get protocol.
Definition: vlan.c:288
int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid)
Get vlan id.
Definition: vlan.c:330
int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode)
Get vlan mode.
Definition: vlan.c:210
int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action)
Get general action.
Definition: vlan.c:249