libnl 3.7.0
|
Macros | |
#define | VLAN_F_VID (1 << 0) |
#define | VLAN_F_PROTO (1 << 1) |
#define | VLAN_F_PRIO (1 << 2) |
#define | VLAN_F_ACT (1 << 3) |
#define | VLAN_F_MODE (1 << 4) |
Attribute Modifications | |
int | rtnl_vlan_set_mode (struct rtnl_act *act, int mode) |
Set vlan mode. More... | |
int | rtnl_vlan_get_mode (struct rtnl_act *act, int *out_mode) |
Get vlan mode. More... | |
int | rtnl_vlan_set_action (struct rtnl_act *act, int action) |
Set general action. More... | |
int | rtnl_vlan_get_action (struct rtnl_act *act, int *out_action) |
Get general action. More... | |
int | rtnl_vlan_set_protocol (struct rtnl_act *act, uint16_t protocol) |
Set protocol. More... | |
int | rtnl_vlan_get_protocol (struct rtnl_act *act, uint16_t *out_protocol) |
Get protocol. More... | |
int | rtnl_vlan_set_vlan_id (struct rtnl_act *act, uint16_t vid) |
Set vlan id. More... | |
int | rtnl_vlan_get_vlan_id (struct rtnl_act *act, uint16_t *out_vid) |
Get vlan id. More... | |
int | rtnl_vlan_set_vlan_prio (struct rtnl_act *act, uint8_t prio) |
Set vlan prio. More... | |
int | rtnl_vlan_get_vlan_prio (struct rtnl_act *act, uint8_t *out_prio) |
Get vlan prio. More... | |
int rtnl_vlan_set_mode | ( | struct rtnl_act * | act, |
int | mode | ||
) |
Set vlan mode.
act | vlan action |
mode | one of (TCA_VLAN_ACT_*: POP, PUSH, MODIFY) |
Definition at line 188 of file vlan.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_vlan_get_mode | ( | struct rtnl_act * | act, |
int * | out_mode | ||
) |
Get vlan mode.
act | vlan action |
out_mode | vlan mode output paramter |
Definition at line 210 of file vlan.c.
References rtnl_tc_data_peek(), and TC_CAST.
int rtnl_vlan_set_action | ( | struct rtnl_act * | act, |
int | action | ||
) |
Set general action.
act | vlan action |
action | one of (TCA_ACT_*: PIPE, SHOT, GOTO_CHAIN, etc) |
Definition at line 230 of file vlan.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_vlan_get_action | ( | struct rtnl_act * | act, |
int * | out_action | ||
) |
Get general action.
act | vlan action |
out_action | output parameter |
Definition at line 249 of file vlan.c.
References rtnl_tc_data_peek(), and TC_CAST.
int rtnl_vlan_set_protocol | ( | struct rtnl_act * | act, |
uint16_t | protocol | ||
) |
Set protocol.
act | vlan action |
protocol | one of (ETH_P_8021Q || ETH_P_8021AD) |
Definition at line 269 of file vlan.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_vlan_get_protocol | ( | struct rtnl_act * | act, |
uint16_t * | out_protocol | ||
) |
Get protocol.
act | vlan action |
out_protocol | protocol output argument |
Definition at line 288 of file vlan.c.
References rtnl_tc_data_peek(), and TC_CAST.
int rtnl_vlan_set_vlan_id | ( | struct rtnl_act * | act, |
uint16_t | vid | ||
) |
Set vlan id.
act | vlan action |
vid | vlan id |
Definition at line 308 of file vlan.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_vlan_get_vlan_id | ( | struct rtnl_act * | act, |
uint16_t * | out_vid | ||
) |
Get vlan id.
act | vlan action |
out_vid | output vlan id |
Definition at line 330 of file vlan.c.
References rtnl_tc_data_peek(), and TC_CAST.
int rtnl_vlan_set_vlan_prio | ( | struct rtnl_act * | act, |
uint8_t | prio | ||
) |
Set vlan prio.
act | vlan action |
prio | vlan priority (0 - 7) |
Definition at line 350 of file vlan.c.
References rtnl_tc_data(), and TC_CAST.
int rtnl_vlan_get_vlan_prio | ( | struct rtnl_act * | act, |
uint8_t * | out_prio | ||
) |
Get vlan prio.
act | vlan action |
out_prio | the output vlan prio |
Definition at line 372 of file vlan.c.
References rtnl_tc_data_peek(), and TC_CAST.