Macro definitions, Mac_size, Adlink_l2_xxx – ADLINK aTCA-N700 User Manual
Page 31: Enum type, Data structure, Section 5: layer-2, Adlink_mac_entry_t
Switch Manager API Programming Guide
31
Section 5: Layer-2
This section describes the macro, enum, struct and function for Layer-2. They are defined in the
header file “adlink_api_l2.h”.
Macro Definitions
MAC_SIZE
MAC addresses data size in bytes.
ADLINK_L2_xxx
L2 entry flag masks. Flags are special attributes of the MAC entry. For details, please refer to
the definitions in “adlink_api_l2. h”
Enum Type
None
Data Structure
adlink_mac_entry_t
typedef struct adlink_mac_entry_s
{
UINT32 port; /*port ID associated with the entry, start from 1*/
UINT16 vid; /*vlan id*/
UINT8 rsv0[2]; /*reserved*/
UINT32 flag; /*entry flag, ADLINK_L2_XXX*/
UINT8 mac[MAC_SIZE]; /*mac address*/
UINT8 rsv1[2]; /*reserved*/
} adlink_mac_entry_t;
Define the entry format of the MAC table.