beautypg.com

Section 2: vlan, Macro definitions, Max_vlan_mac_cnt – ADLINK aTCA-N700 User Manual

Page 14: Enum type, Adlink_vlan_tag_mode_t, Data structure, Adlink_vlan_info_t

background image

Switch Manager API Programming Guide

14

PARAMETERS

None

RETURN

See the description of status_t above.

Section 2: VLAN

This section describes the macro, enum, struct and function for VLAN. They are defined in the

header file “adlink_api_vlan.h”.

Macro Definitions

MAX_VLAN_MAC_CNT

Maximum entry count of MAC based VLAN.

Enum Type

adlink_vlan_tag_mode_t

typedef enum adlink_vlan_tag_mode_e{

VLAN_MODE_UNTAGGED = 0,

VLAN_MODE_TAGGED = 1,

} adlink_vlan_tag_mode_t;

Define the codes of port mode in VLAN.

Data Structure

adlink_vlan_info_t

typedef struct adlink_vlan_info_s {

UINT8

enable;

/*admin

status*/