Port_stp_state_t, Port_vlan_filter_mode_mask_t, Port_rate_limit_mask_t – ADLINK aTCA-N700 User Manual

Page 21: Nic_config_mask_t

Advertising
background image

Switch Manager API Programming Guide

21

port_stp_state_t

typedef enum port_stp_state_e { /*Heritage */

PORT_STP_DISABLE = 0, /* Disabled. */

PORT_STP_BLOCK = 1, /* BPDUs/no learns. */

PORT_STP_LISTEN = 2, /* BPDUs/no learns. */

PORT_STP_LEARN = 3, /* BPDUs/learns. */

PORT_STP_FORWARD = 4, /* Normal operation. */

PORT_STP_COUNT = 5

} port_stp_state_t;

Define the codes of port status for Spanning Tree Protocol.

port_vlan_filter_mode_mask_t

typedef enum port_vlan_filter_mode_mask_e { /*Heritage*/

PORT_VLAN_FILTER_INGRESS = 0x00000001,

PORT_VLAN_FILTER_EGRESS = 0x00000002,

} port_vlan_filter_mode_mask_t;

Define the codes of VLAN filter mode in port attribute.

port_rate_limit_mask_t

typedef enum port_rate_limit_mask_e { /*Heritage*/

PORT_RATE_DLF = 0x01,

PORT_RATE_MCAST = 0x02,

PORT_RATE_BCAST = 0x04,

PORT_RATE_UCAST = 0x08,

} port_rate_limit_mask_t;

Define the codes of rate limit type mask in port attribute.

nic_config_mask_t

typedef enum nic_config_mask

{

NIC_CONFIG_IP_MASK = 1,

/*Set this bit to flag IP&MASK operation*/

NIC_CONFIG_STATUS = 2,

/*Set this bit to flag NIC running status operation*/

}nic_config_mask_t;

Define the codes of NIC operation.

Advertising