TCPIP_EVENT Enumeration

C

typedef enum {
TCPIP_EV_NONE = 0x0000,
TCPIP_EV_RX_PKTPEND = 0x0001,
TCPIP_EV_RX_OVFLOW = 0x0002,
TCPIP_EV_RX_BUFNA = 0x0004,
TCPIP_EV_RX_ACT = 0x0008,
TCPIP_EV_RX_DONE = 0x0010,
TCPIP_EV_RX_FWMARK = 0x0020,
TCPIP_EV_RX_EWMARK = 0x0040,
TCPIP_EV_RX_BUSERR = 0x0080,
TCPIP_EV_TX_DONE = 0x0100,
TCPIP_EV_TX_ABORT = 0x0200,
TCPIP_EV_TX_BUSERR = 0x0400,
TCPIP_EV_CONN_ESTABLISHED = 0x0800,
TCPIP_EV_CONN_LOST = 0x1000,
TCPIP_EV_RX_ALL = (TCPIP_EV_RX_PKTPEND|TCPIP_EV_RX_OVFLOW|TCPIP_EV_RX_BUFNA|TCPIP_EV_RX_ACT| TCPIP_EV_RX_DONE|TCPIP_EV_RX_FWMARK|TCPIP_EV_RX_EWMARK|TCPIP_EV_RX_BUSERR),
TCPIP_EV_TX_ALL = (TCPIP_EV_TX_DONE|TCPIP_EV_TX_ABORT|TCPIP_EV_TX_BUSERR),
TCPIP_EV_RXTX_ERRORS = (TCPIP_EV_RX_OVFLOW|TCPIP_EV_RX_BUFNA|TCPIP_EV_RX_BUSERR| TCPIP_EV_TX_ABORT|TCPIP_EV_TX_BUSERR),
TCPIP_EV_CONN_ALL = (TCPIP_EV_CONN_ESTABLISHED|TCPIP_EV_CONN_LOST)
} TCPIP_EVENT;

Description

TCPIP stack events codes.

This enumeration defines all the possible events that can be reported by the TCPIP stack. These are events received by the stack from the network interfaces. They are reported by the MAC driver of the network interface.

Members

MembersDescription
TCPIP_EV_NONE = 0x0000No event.
TCPIP_EV_RX_PKTPEND = 0x0001A receive packet is pending.
TCPIP_EV_RX_OVFLOW = 0x0002RX FIFO overflow (system level latency, no descriptors, etc.).
TCPIP_EV_RX_BUFNA = 0x0004No RX descriptor available to receive a new packet.
TCPIP_EV_RX_ACT = 0x0008There's RX data available.
TCPIP_EV_RX_DONE = 0x0010A packet was successfully received.
TCPIP_EV_RX_FWMARK = 0x0020The number of received packets is >= than the RX full watermark.
TCPIP_EV_RX_EWMARK = 0x0040The number of received packets is <= than the RX empty watermark.
TCPIP_EV_RX_BUSERR = 0x0080A buss error encountered during an RX transfer.
TCPIP_EV_TX_DONE = 0x0100A packet was transmitted and its status is available.
TCPIP_EV_TX_ABORT = 0x0200A TX packet was aborted by the MAC (jumbo/system under-run/excessive defer/late collision/excessive collisions).
TCPIP_EV_TX_BUSERR = 0x0400A bus error encountered during a TX transfer.
TCPIP_EV_CONN_ESTABLISHED = 0x0800Connection established.
TCPIP_EV_CONN_LOST = 0x1000Connection lost.
TCPIP_EV_RX_ALL = (TCPIP_EV_RX_PKTPENDTCPIP_EV_RX_OVFLOW
TCPIP_EV_TX_ALL = (TCPIP_EV_TX_DONETCPIP_EV_TX_ABORT
TCPIP_EV_RXTX_ERRORS = (TCPIP_EV_RX_OVFLOWTCPIP_EV_RX_BUFNA
TCPIP_EV_CONN_ALL = (TCPIP_EV_CONN_ESTABLISHEDTCPIP_EV_CONN_LOST)

Remarks

Depending on the type of the hardware interface, no all events are possible. Not that specific interfaces can offer specific events and ufnctions to retrieve those events.