Adlink_acl_rule_info_t, Functionsadlink_acl_rule_add (), Adlink_acl_rule_delete () – ADLINK aTCA-N700 User Manual
Page 36
Switch Manager API Programming Guide
36
Table 6- 4, Data Descriptions for Different Action Types
Action Type
Param0
Param1
REDIRECTPORT
data32 (port bit maps, only one
port is allowed, cpu0 is bit 0,
xe0 is bit 1,…)
None
REDIRECTTRUNK Data16
None
DROP None None
adlink_acl_rule_info_t
typedef struct adlink_acl_rule_info
{
UINT16 priority;
// the priority of the ACL rule
UINT16 qualifier_num;
//the number of qualifier of the ACL rule
adlink_acl_qualifier_info_t qualifier[MAX_QUALIFIER_NUM];
//record the qualifier info
adlink_acl_action_info_t action;// record the action info
} adlink_acl_rule_info_t;
Functionsadlink_acl_rule_add ()
PROTOTYPE
status_t adlink_acl_rule_add (adlink_acl_rule_info_t *rule_info,UINT16 *rule_id);
DESCRIPTION
This function is used to add an ACL rule.
PARAMETERS
rule_info
[IN] the ACL rule info needed to be added.
rule_id
[OUT] the pointer for saving the rule ID.
RETURN
See the description of status_t in Section 1.
adlink_acl_rule_delete ()
PROTOTYPE
status_t adlink_acl_rule_delete (UINT16 rule_id);