NanoIPDevice generates events of the type NetEvent.
struct NetEvent // meta-named as NetEvent
{
EventTimeType time;
EventIdType id;
uint8 ip_event;
};
ip_event is an enum, describing the event.
enum IPEvent : uint8
{
IPTx_ARP, // "IP Tx ARP" Up
IPTx_IP, // "IP Tx IP" Up
IPTx_UDP, // "IP Tx UDP" Up
IPRx_ARP, // "IP Rx ARP" Down
IPRx_IP, // "IP Rx IP" Down
IPRx_UDP, // "IP Rx UDP" Down
IPTx_BadPacketLen, // "IP Tx bad packet len" UpBlock
IPTx_TimeoutDrop, // "IP Tx timeout drop" UpBlock
IPTx_ARP_Missing, // "IP Tx ARP missing" UpBlock
IPTx_ARP_Drop, // "IP Tx ARP drop" UpBlock
IPTx_Drop, // "IP Tx drop" UpBlock
IPRx_BadPacket, // "IP Rx bad packet" DownBlock
IPRx_Drop, // "IP Rx drop" DownBlock
IPRx_UDP_NoPort, // "IP Rx UDP no port" DownBlock
IPEventLim
};