Adlink_set_port_status_cmd_t, Adl_nic_config_set_cmd_t, Adl_nic_config_info_t – ADLINK aTCA-N700 User Manual

Page 23

Advertising
background image

Switch Manager API Programming Guide

23

UINT32 rx_pkt_rate;

UINT32 tx_byte_num;

UINT32 tx_byte_rate;

UINT32 tx_pkt_num;

UINT32 tx_pkt_rate;

}adlink_portstat_t;

Define the entry format of the port statistic table.

adlink_set_port_status_cmd_t

typedef struct adlink_set_port_status_cmd {

UINT32 port; /*port ID*/

UINT32 flag; /*PORT_ATTR_xxx in port_attribute_t*/

int status; /*ENABLE/DISABLE*/

int autoneg_mode; /*ENABLE/DISABLE*/

int duplex_mode; /*PORT_DUPLEX_xxx in port_duplex_t*/

int speed_mode; /*PORT_SPEED_xxx in port_speed_t*/

int pvid; /*default 802.1Q vid for untagged packets*/

int cos; /*default 802.1Q cos for untagged packets*/

int mtu; /*max data transmission unit*/

} adlink_set_port_status_cmd_t;

Define the format of parameters used to set port attributes.

adl_nic_config_set_cmd_t

typedef struct adl_nic_config_set_cmd {

char

if_name[TAPNAMSIZ];

UINT32 config_mask; //nic_config_mask_t

UINT32

ip;

UINT32

netmask;

UINT32 status; //0 down, 1 up

}adl_nic_config_set_cmd_t;

Define the format of parameters used to set NIC configuration.

adl_nic_config_info_t

typedef struct adl_nic_config_info

{

UINT32 ip;

Advertising