Data structure, Adlink_action_type_t, Adlink_acl_data_t – ADLINK aTCA-N700 User Manual

Page 34: Table 6- 1, qualifier type description, Table 6- 2, action type description

Advertising
background image

Switch Manager API Programming Guide

34

Table 6- 1, Qualifier Type Description

Qualifier Type

Description

INPORTS

Filter for the port ID a packet comes from

SRCIP

Filter for source IP address of a packet

DSTIP

Filter for destination IP address of a packet

IPPROTOCOL

Filter for IP protocol (such as 0x06 for TCP) of a packet

L4SRCPORT

Filter for L4 source port of a packet

L4DSTPORT

Filter for L4 destination port of a packet

SRCMAC

Filter for source MAC address of a packet

DSTMAC

Filter for destination MAC address of a packet

SRCTRUNK

Filter for the trunk ID a packet comes from

ETHERTYPE

Filter for Ethernet type (such as 0x0806 for ARP) of a packet

INNERVLAN

Filter for the inner VLAN ID of a packet

OUTERVLAN

Filter for the outer VLAN ID of a packet

adlink_action_type_t

typedef enum adlink_action_type

{

REDIRECTPORT = 1, //port bit mask, data32, only one port is permitted

REDIRECTTRUNK, //trunk id, data16

DROP,

//no param

} adlink_action_type_t;

Table 6- 2, Action Type Description

Action Type

Description

REDIRECTPORT

Redirect the packet to a port (cpu0, xe0, xe1, xe2…).

REDIRECTTRUNK Redirect the packet to a trunk

DROP

Drop the packet

Data Structure

adlink_acl_data_t

typedef struct adlink_acl_data

{

UINT8 data128[16]; //data128 use, such as ipv6 addr

UINT64 data64;

//data64 use

UINT8 data48[6];

//data48 use, such as mac addr

UINT32 data32;

//data32 use, such as ip addr

Advertising