# Ethernet link status queries

Ethernet link status queries return information about the Ethernet connections that the CG board maintains. MSP_QRY_ETHERNET_LINK_STATUS queries return the following structure:

typedef struct {
DWORD numETHs;
ETH_STATUS eth[MAX_CG_ETH];
} msp_ETH_STATUS;

The msp_ETH_STATUS structure specifies the number of active board Ethernet connections (in the numETHs field), and provides the following substructure for each active Ethernet connection:

typedef struct {
DWORD ethStatus;
DWORD ethMode;
DWORD ethSpeed;
} ETH_STATUS;

Each ETH_STATUS substructure provides the following information:

Field | Description
ethStatus | Indicates whether the Ethernet connection is up (ETH_LINK_UP) or down (ETH_LINK_DOWN).
ethMode | Indicates whether board Ethernet connection is a half duplex (ETH_HALFDUPLEX) or full duplex (ETH_FULLDUPLEX).
ethSpeed | Specifies the board's Ethernet throughput capacity as 10 Mb (ETH_10Mb) or 100 Mb (ETH_100Mb).