libnl: /data/src/libnl3/include/netlink/route/act/vlan.h Source File

libnl 3.10.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_ */
rtnl_vlan_get_vlan_prio
int rtnl_vlan_get_vlan_prio(struct rtnl_act *act, uint8_t *out_prio)
Get vlan prio.
Definition vlan.c:383
rtnl_vlan_set_mode
int rtnl_vlan_set_mode(struct rtnl_act *act, int mode)
Set vlan mode.
Definition vlan.c:199
rtnl_vlan_set_protocol
int rtnl_vlan_set_protocol(struct rtnl_act *act, uint16_t protocol)
Set protocol.
Definition vlan.c:280
rtnl_vlan_set_vlan_prio
int rtnl_vlan_set_vlan_prio(struct rtnl_act *act, uint8_t prio)
Set vlan prio.
Definition vlan.c:361
rtnl_vlan_set_action
int rtnl_vlan_set_action(struct rtnl_act *act, int action)
Set general action.
Definition vlan.c:241
rtnl_vlan_set_vlan_id
int rtnl_vlan_set_vlan_id(struct rtnl_act *act, uint16_t vid)
Set vlan id.
Definition vlan.c:319
rtnl_vlan_get_protocol
int rtnl_vlan_get_protocol(struct rtnl_act *act, uint16_t *out_protocol)
Get protocol.
Definition vlan.c:299
rtnl_vlan_get_vlan_id
int rtnl_vlan_get_vlan_id(struct rtnl_act *act, uint16_t *out_vid)
Get vlan id.
Definition vlan.c:341
rtnl_vlan_get_mode
int rtnl_vlan_get_mode(struct rtnl_act *act, int *out_mode)
Get vlan mode.
Definition vlan.c:221
rtnl_vlan_get_action
int rtnl_vlan_get_action(struct rtnl_act *act, int *out_action)
Get general action.
Definition vlan.c:260
rtnl_act
Definition nl-route.h:122