Network Component  Version 7.19.0
MDK Middleware for IPv4 and IPv6 Networking
NetLOOP: Loopback Interface

Events generated by the Network - Loopback Interface functions. More...

Functions

__STATIC_INLINE void EvrNetLOOP_InitInterface (void)
 Event on Loopback interface initialize (Op) More...
 
__STATIC_INLINE void EvrNetLOOP_SendFrame (uint32_t length, uint8_t ip_version)
 Event on Loopback send frame (Op) More...
 
__STATIC_INLINE void EvrNetLOOP_NoMemoryError (void)
 Event on Loopback out of memory for send (Error) More...
 
__STATIC_INLINE void EvrNetLOOP_ReceiveFrame (uint32_t length, uint8_t ip_version)
 Event on Loopback receive frame (Op) More...
 
__STATIC_INLINE void EvrNetLOOP_UninitInterface (void)
 Event on Loopback interface de-initialize (Op) More...
 

Description

Events generated by the Network - Loopback Interface functions.

The Network Loopback Interface functions generate events that inform about events in the loopback network interface and help in troubleshooting.

Function Documentation

◆ EvrNetLOOP_InitInterface()

__STATIC_INLINE void EvrNetLOOP_InitInterface ( void  )

Event on Loopback interface initialize (Op)

The event InitInterface is created when the loopback interface is initialized, that is, when the function netInitialize is executed.

Value in the Event Recorder shows:

  • loopback: loopback interface name.

◆ EvrNetLOOP_NoMemoryError()

__STATIC_INLINE void EvrNetLOOP_NoMemoryError ( void  )

Event on Loopback out of memory for send (Error)

The event NoMemoryError is created when the internal send_frame function wants to allocate the memory for the frame to be sent to the loopback interface, but no memory is available. Therefore, the frame is not sent.

Value in the Event Recorder shows:

  • error

◆ EvrNetLOOP_ReceiveFrame()

__STATIC_INLINE void EvrNetLOOP_ReceiveFrame ( uint32_t  length,
uint8_t  ip_version 
)

Event on Loopback receive frame (Op)

Parameters
lengthframe length in bytes
ip_versioninternet protocol version
  • 0: IPv4
  • 1: IPv6

The event ReceiveFrame is created when the network library receives the frame on the loopback interface.

Value in the Event Recorder shows:

  • len: length of the received frame in bytes.
  • ver: IP protocol version (IPv4, IPv6).

◆ EvrNetLOOP_SendFrame()

__STATIC_INLINE void EvrNetLOOP_SendFrame ( uint32_t  length,
uint8_t  ip_version 
)

Event on Loopback send frame (Op)

Parameters
lengthframe length in bytes
ip_versioninternet protocol version
  • 0: IPv4
  • 1: IPv6

The event SendFrame is created when the frame is sent to the loopback interface.

Value in the Event Recorder shows:

  • len: length of the frame to send in bytes.
  • ver: IP protocol version (IPv4, IPv6).

◆ EvrNetLOOP_UninitInterface()

__STATIC_INLINE void EvrNetLOOP_UninitInterface ( void  )

Event on Loopback interface de-initialize (Op)

The event UninitInterface is created when the function netUninitialize is executed.

Value in the Event Recorder shows:

  • loopback: loopback interface name.