beautypg.com

Macro definitions, Max_qualifier_num, Enum type – ADLINK aTCA-N700 User Manual

Page 33: Section 6: acl, Adlink_qualifier_type_t

background image

Switch Manager API Programming Guide

33

Section 6: ACL

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

header file “adlink_api_acl.h”.

Macro Definitions

MAX_QUALIFIER_NUM

The ACL supports multiple qualifiers. This macro defines the maximum qualifier number

allowed.

Enum Type

adlink_qualifier_type_t

typedef enum adlink_qualifier_type

{

INPORTS = 1, //port bit mask,data32

SRCIP,

//data32

DSTIP,

//data32

IPPROTOCOL, //data8

L4SRCPORT, //data16

L4DSTPORT, //data16

SRCMAC, //data48

DSTMAC, //data48

SRCTRUNK, //data16

ETHERTYPE, //data16

INNERVLAN, //data16

OUTERVLAN, //data16

} adlink_qualifier_type_t;