Network Component  Version 7.11.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetARP: ARP Address Resolution

Events generated by the Network - Ethernet Address Resolution functions. More...

Functions

__STATIC_INLINE void EvrNetARP_InitCache (uint32_t num_entries)
 Event on ARP cache initialize (Op) More...
 
__STATIC_INLINE void EvrNetARP_ReceiveFrame (uint16_t opcode, uint32_t length)
 Event on ARP receive frame (Op) More...
 
__STATIC_INLINE void EvrNetARP_FrameTooShort (uint32_t length, uint32_t min_length)
 Event on ARP receive frame is too short (Error) More...
 
__STATIC_INLINE void EvrNetARP_FrameCorrupted (void)
 Event on ARP received frame corrupted (Error) More...
 
__STATIC_INLINE void EvrNetARP_ShowFrameHeader (const void *arp_header)
 Event on ARP display send/receive frame header (Detail) More...
 
__STATIC_INLINE void EvrNetARP_SenderAddressInvalid (void)
 Event on ARP invalid IP or MAC address of sender received (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheEntryUpdate (uint32_t entry)
 Event on ARP cache entry update (Op) More...
 
__STATIC_INLINE void EvrNetARP_ProbeResponseReceived (const uint8_t *ip4_addr)
 Event on ARP probe response received (Op) More...
 
__STATIC_INLINE void EvrNetARP_WrongIpAddress (const uint8_t *ip4_addr)
 Event on ARP wrong destination IP address received (Op) More...
 
__STATIC_INLINE void EvrNetARP_WrongMacAddress (const uint8_t *mac_addr)
 Event on ARP wrong destination MAC address received (Op) More...
 
__STATIC_INLINE void EvrNetARP_OpcodeUnknown (uint16_t opcode)
 Event on ARP unknown opcode received (Op) More...
 
__STATIC_INLINE void EvrNetARP_SendReply (uint16_t opcode)
 Event on ARP send reply message (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheEntryRefreshed (uint32_t entry)
 Event on ARP cache entry refreshed (Op) More...
 
__STATIC_INLINE void EvrNetARP_WrongResponse (void)
 Event on ARP wrong response received (Error) More...
 
__STATIC_INLINE void EvrNetARP_SendRequest (uint16_t opcode)
 Event on ARP send request message (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheAllocFailed (void)
 Event on ARP allocate free cache entry failed (Error) More...
 
__STATIC_INLINE void EvrNetARP_CacheIpRefreshed (const uint8_t *ip4_addr)
 Event on ARP refresh cached IP address (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheAdd (const uint8_t *ip4_addr, const uint8_t *mac_addr)
 Event on ARP add host address to ARP cache (Op) More...
 
__STATIC_INLINE void EvrNetARP_GatewayUnknown (const uint8_t *ip4_addr)
 Event on ARP cache add gateway unknown (Error) More...
 
__STATIC_INLINE void EvrNetARP_CacheEntryAdded (uint32_t entry)
 Event on ARP cache entry added (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheEarly (const uint8_t *ip4_addr, const uint8_t *mac_addr)
 Event on ARP early cache address of the sender (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheFind (const uint8_t *ip4_addr)
 Event on ARP find IP address in cache (Op) More...
 
__STATIC_INLINE void EvrNetARP_UsingGateway (const uint8_t *ip4_addr)
 Event on ARP use gateway to access external address (Op) More...
 
__STATIC_INLINE void EvrNetARP_UnresolvedMacAddress (const uint8_t *ip4_addr)
 Event on ARP unresolved MAC address in cache (Error) More...
 
__STATIC_INLINE void EvrNetARP_EntryFound (uint32_t entry)
 Event on ARP cache entry found (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheIp (const uint8_t *ip4_addr)
 Event on netARP_CacheIP execute (API) More...
 
__STATIC_INLINE void EvrNetARP_CacheIpInvalidParameter (void)
 Event on netARP_CacheIP invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetARP_CacheMac (const uint8_t *mac_addr)
 Event on netARP_CacheMAC execute (API) More...
 
__STATIC_INLINE void EvrNetARP_CacheMacInvalidParameter (void)
 Event on netARP_CacheMAC invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetARP_UnresolvedIpAddress (const uint8_t *mac_addr)
 Event on ARP unresolved IP address in cache (Op) More...
 
__STATIC_INLINE void EvrNetARP_GetIp (const uint8_t *mac_addr, const uint8_t *ip4_addr)
 Event on netARP_GetIP resolving success (API) More...
 
__STATIC_INLINE void EvrNetARP_GetIpInvalidParameter (void)
 Event on netARP_GetIP invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetARP_GetIpEntryNotFound (const uint8_t *mac_addr)
 Event on netARP_GetIP entry with MAC address not found in cache (Op) More...
 
__STATIC_INLINE void EvrNetARP_GetMac (const uint8_t *ip4_addr, const uint8_t *mac_addr)
 Event on netARP_GetMAC resolving success (API) More...
 
__STATIC_INLINE void EvrNetARP_GetMacInvalidParameter (void)
 Event on netARP_GetMAC invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetARP_GetMacEntryNotFound (const uint8_t *ip4_addr)
 Event on netARP_GetMAC entry with IP address not found in cache (Op) More...
 
__STATIC_INLINE void EvrNetARP_Probe (const uint8_t *ip4_addr)
 Event on netARP_Probe execute (API) More...
 
__STATIC_INLINE void EvrNetARP_ProbeInvalidParameter (void)
 Event on netARP_Probe invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetARP_ProbeBusy (void)
 Event on ARP probe process busy (Error) More...
 
__STATIC_INLINE void EvrNetARP_ProbeRetransmit (const uint8_t *ip4_addr)
 Event on ARP probe retransmit (Op) More...
 
__STATIC_INLINE void EvrNetARP_ProbeTimeout (const uint8_t *ip4_addr)
 Event on ARP probe timeout (Op) More...
 
__STATIC_INLINE void EvrNetARP_CacheEntryTimeout (uint32_t entry, const uint8_t *ip4_addr, const uint8_t *mac_addr, uint32_t type)
 Event on ARP cache entry timeout (Op) More...
 
__STATIC_INLINE void EvrNetARP_EntryReleased (uint32_t entry)
 Event on ARP cache entry released (Op) More...
 
__STATIC_INLINE void EvrNetARP_ResolveEntry (uint32_t entry)
 Event on resolve ARP cache entry (Op) More...
 
__STATIC_INLINE void EvrNetARP_RefreshEntry (uint32_t entry)
 Event on refresh ARP cache entry (Op) More...
 
__STATIC_INLINE void EvrNetARP_UninitCache (void)
 Event on ARP cache de-initialize (Op) More...
 

Description

Events generated by the Network - Ethernet Address Resolution functions.

The Network ARP Address Resolution functions generate events that report events in the ARP address resolver and ARP cache and help in troubleshooting.

Function Documentation

__STATIC_INLINE void EvrNetARP_CacheAdd ( const uint8_t *  ip4_addr,
const uint8_t *  mac_addr 
)

Event on ARP add host address to ARP cache (Op)

Parameters
ip4_addrpointer to IP address
mac_addrpointer to MAC address

The event CacheAdd is created when the network library wants to add a new host to the ARP cache table.

Value in the Event Recorder shows:

  • ip: IP address of the host to be added to the cache.
  • mac: MAC address of the host to be added to the cache.
__STATIC_INLINE void EvrNetARP_CacheAllocFailed ( void  )

Event on ARP allocate free cache entry failed (Error)

The event CacheAllocFailed is created when the network library wants to add new host to the ARP cache table, but it fails. Therefore, the new host is not cached. In order to get rid of such events, you must increase the size of the ARP cache table in the ethernet interface configuration.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_CacheEarly ( const uint8_t *  ip4_addr,
const uint8_t *  mac_addr 
)

Event on ARP early cache address of the sender (Op)

Parameters
ip4_addrpointer to IP address
mac_addrpointer to MAC address

The event CacheEarly is created when the network library wants to add a new host to the ARP cache table, when it receives a valid unicast IP frame. This method is called early caching and is used to improve the functioning of the network library.

Value in the Event Recorder shows:

  • ip: IP address of the host to be added to the cache.
  • mac: MAC address of the host to be added to the cache.
__STATIC_INLINE void EvrNetARP_CacheEntryAdded ( uint32_t  entry)

Event on ARP cache entry added (Op)

Parameters
entrycache entry number

The event CacheEntryAdded is created when the network library successfully added the new host to the ARP cache table.

Value in the Event Recorder shows:

  • entry: assigned cache entry identifier.
__STATIC_INLINE void EvrNetARP_CacheEntryRefreshed ( uint32_t  entry)

Event on ARP cache entry refreshed (Op)

Parameters
entrycache entry number

The event CacheEntryRefreshed is created when the network library receives the ARP reply or inverse ARP response, and refresh the entry in the local cache.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_CacheEntryTimeout ( uint32_t  entry,
const uint8_t *  ip4_addr,
const uint8_t *  mac_addr,
uint32_t  type 
)

Event on ARP cache entry timeout (Op)

Parameters
entrycache entry number
ip4_addrpointer to IP address
mac_addrpointer to MAC address
typecache entry type
  • 0: Fixed IP
  • 1: Temporary IP
  • 2: In-use temporary IP

The event CacheEntryTimeout is created when the validity of the ARP cached host has expired. The host will be refreshed or removed from the cache.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
  • type: type of host cache entry (FixIP, TempIP, InuseIP).
  • ip: IP address of the host cache entry.
  • mac: MAC address of the host cache entry.
__STATIC_INLINE void EvrNetARP_CacheEntryUpdate ( uint32_t  entry)

Event on ARP cache entry update (Op)

Parameters
entrycache entry number

The event CacheEntryUpdate is created when the network library receives the gratuitous ARP request and update the local cache entry.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_CacheFind ( const uint8_t *  ip4_addr)

Event on ARP find IP address in cache (Op)

Parameters
ip4_addrpointer to IP address

The event CacheFind is created when the network library wants to find the host in the ARP cache table to resolve its MAC address. If the host is not in the ARP cache, the network library creates a new entry in the table and starts the resolution process.

Value in the Event Recorder shows:

  • ip: IP address of the host being searched in the cache.
__STATIC_INLINE void EvrNetARP_CacheIp ( const uint8_t *  ip4_addr)

Event on netARP_CacheIP execute (API)

Parameters
ip4_addrpointer to requested IP address

The event CacheIp is created when the function netARP_CacheIP is executed.

Value in the Event Recorder shows:

  • ip: IP address of the host being requested.
__STATIC_INLINE void EvrNetARP_CacheIpInvalidParameter ( void  )

Event on netARP_CacheIP invalid parameter (Error)

The event CacheIpInvalidParameter is created when the function netARP_CacheIP is executed, and the function input parameter is invalid.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_CacheIpRefreshed ( const uint8_t *  ip4_addr)

Event on ARP refresh cached IP address (Op)

Parameters
ip4_addrpointer to IP address

The event CacheIpRefreshed is created when the network library wants to add a new host to the ARP cache table, but finds it already cached. Therefore, the new host is only refreshed in the cache table.

Value in the Event Recorder shows:

  • ip: IP address of the host to be added to the cache.
__STATIC_INLINE void EvrNetARP_CacheMac ( const uint8_t *  mac_addr)

Event on netARP_CacheMAC execute (API)

Parameters
mac_addrpointer to requested MAC address

The event CacheMac is created when the function netARP_CacheMAC is executed.

Value in the Event Recorder shows:

  • mac: MAC address of the host being requested.
__STATIC_INLINE void EvrNetARP_CacheMacInvalidParameter ( void  )

Event on netARP_CacheMAC invalid parameter (Error)

The event CacheMacInvalidParameter is created when the function netARP_CacheMAC is executed, and the function input parameter is invalid.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_EntryFound ( uint32_t  entry)

Event on ARP cache entry found (Op)

Parameters
entrycache entry number

The event EntryFound is created when the network library wants to notify that it has found the host in the ARP cache table.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_EntryReleased ( uint32_t  entry)

Event on ARP cache entry released (Op)

Parameters
entrycache entry number

The event EntryReleased is created when the cached host entry is released from the ARP cache.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_FrameCorrupted ( void  )

Event on ARP received frame corrupted (Error)

The event FrameCorrupted is created when the network library receives the ARP frame, checks the ARP header and finds errors in it. The frame is therefore discarded.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_FrameTooShort ( uint32_t  length,
uint32_t  min_length 
)

Event on ARP receive frame is too short (Error)

Parameters
lengthframe length in bytes
min_lengthminimum length of the frame

The event FrameTooShort is created when the network library receives the ARP frame that is too short. The frame is discarded.

Value in the Event Recorder shows:

  • len: length of the received frame in bytes.
  • min: minimum valid frame length in bytes.
__STATIC_INLINE void EvrNetARP_GatewayUnknown ( const uint8_t *  ip4_addr)

Event on ARP cache add gateway unknown (Error)

Parameters
ip4_addrpointer to IP address of a gateway

The event GatewayUnknown is created when the network library wants to add a new non-local host to the ARP cache table. The network library uses the gateway to access the host, but finds that the gateway address is not specified.

Value in the Event Recorder shows:

  • gw: IP address of the default gateway.
__STATIC_INLINE void EvrNetARP_GetIp ( const uint8_t *  mac_addr,
const uint8_t *  ip4_addr 
)

Event on netARP_GetIP resolving success (API)

Parameters
mac_addrpointer to requested MAC address
ip4_addrpointer to resolved IP address

The event GetIp is created when the function netARP_GetIP is executed.

Value in the Event Recorder shows:

  • ip: returned IP address of the host.
  • mac: MAC address of the host being requested.
__STATIC_INLINE void EvrNetARP_GetIpEntryNotFound ( const uint8_t *  mac_addr)

Event on netARP_GetIP entry with MAC address not found in cache (Op)

Parameters
mac_addrpointer to requested MAC address

The event GetIpEntryNotFound is created when the function netARP_GetIP is executed, but the requested MAC address of the host in the cache is missing.

Value in the Event Recorder shows:

  • mac: MAC address of the host being requested.
__STATIC_INLINE void EvrNetARP_GetIpInvalidParameter ( void  )

Event on netARP_GetIP invalid parameter (Error)

The event GetIpInvalidParameter is created when the function netARP_GetIP is executed, and the function input parameter is invalid.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_GetMac ( const uint8_t *  ip4_addr,
const uint8_t *  mac_addr 
)

Event on netARP_GetMAC resolving success (API)

Parameters
ip4_addrpointer to requested IP address
mac_addrpointer to resolved MAC address

The event GetMac is created when the function netARP_GetMAC is executed.

Value in the Event Recorder shows:

  • mac: returned MAC address of the host.
  • ip: IP address of the host being requested.
__STATIC_INLINE void EvrNetARP_GetMacEntryNotFound ( const uint8_t *  ip4_addr)

Event on netARP_GetMAC entry with IP address not found in cache (Op)

Parameters
ip4_addrpointer to requested IP address

The event GetMacEntryNotFound is created when the function netARP_GetMAC is executed, but the requested IP address of the host in the cache is missing.

Value in the Event Recorder shows:

  • ip: IP address of the host being requested.
__STATIC_INLINE void EvrNetARP_GetMacInvalidParameter ( void  )

Event on netARP_GetMAC invalid parameter (Error)

The event GetMacInvalidParameter is created when the function netARP_GetMAC is executed, and the function input parameter is invalid.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_InitCache ( uint32_t  num_entries)

Event on ARP cache initialize (Op)

Parameters
num_entriesnumber of entries available in cache

The event InitCache is created when the ARP service is initialized, that is, when the function netInitialize is executed.

Value in the Event Recorder shows:

  • entries: number of entries available in ARP cache table.
__STATIC_INLINE void EvrNetARP_OpcodeUnknown ( uint16_t  opcode)

Event on ARP unknown opcode received (Op)

Parameters
opcodeunknown operation code value

The event OpcodeUnknown is created when the network library receives the ARP frame with unknown operation code. The frame is therefore discarded.

Value in the Event Recorder shows:

  • opcode: received ARP operation code.
__STATIC_INLINE void EvrNetARP_Probe ( const uint8_t *  ip4_addr)

Event on netARP_Probe execute (API)

Parameters
ip4_addrpointer to requested IP address

The event Probe is created when the function netARP_Probe is executed.

Value in the Event Recorder shows:

  • ip: IP address of the host being tested.
__STATIC_INLINE void EvrNetARP_ProbeBusy ( void  )

Event on ARP probe process busy (Error)

The event ProbeBusy is created when the function netARP_Probe is executed, and the internal probe process is still busy.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_ProbeInvalidParameter ( void  )

Event on netARP_Probe invalid parameter (Error)

The event ProbeInvalidParameter is created when the function netARP_Probe is executed, and the function input parameter is invalid.

Value in the Event Recorder shows:

  • error
__STATIC_INLINE void EvrNetARP_ProbeResponseReceived ( const uint8_t *  ip4_addr)

Event on ARP probe response received (Op)

Parameters
ip4_addrpointer to IP address

The event ProbeResponseReceived is created when the network library receives the response to our ARP probe request. This is an indication that the tested IP address is already in use.

Value in the Event Recorder shows:

  • ip: IP address of the responding host.
__STATIC_INLINE void EvrNetARP_ProbeRetransmit ( const uint8_t *  ip4_addr)

Event on ARP probe retransmit (Op)

Parameters
ip4_addrpointer to IP address of probed host

The event ProbeRetransmit is created when the network library resends the request for testing the IP address, if it is in use.

Value in the Event Recorder shows:

  • ip: IP address of the host being tested.
__STATIC_INLINE void EvrNetARP_ProbeTimeout ( const uint8_t *  ip4_addr)

Event on ARP probe timeout (Op)

Parameters
ip4_addrpointer to IP address of probed host

The event ProbeTimeout is created when the network library has left the IP address test procedure, since no host responded. The tested IP address is considered to be free.

Value in the Event Recorder shows:

  • ip: IP address of the host being tested.
__STATIC_INLINE void EvrNetARP_ReceiveFrame ( uint16_t  opcode,
uint32_t  length 
)

Event on ARP receive frame (Op)

Parameters
opcodeoperation code of received message
  • 0x0001: ARP Request
  • 0x0002: ARP Reply
  • 0x0003: Reverse ARP Request
  • 0x0004: Reverse ARP Reply
  • 0x0008: Inverse ARP Request
  • 0x0009: Inverse ARP Response
lengthframe length in bytes

The event ReceiveFrame is created when the network library receives the ARP frame.

Value in the Event Recorder shows:

  • opcode: operation code (ARP_REQUEST, ARP_REPLY, RARP_REQUEST, RARP_REPLY, InARP_REQUEST, InARP_RESPONSE).
  • len: length of the received frame in bytes.
__STATIC_INLINE void EvrNetARP_RefreshEntry ( uint32_t  entry)

Event on refresh ARP cache entry (Op)

Parameters
entrycache entry number

The event RefreshEntry is created when the network library wants to refresh the required ARP entry in the cache. This happens when the ARP entry expires, and the type of entry is Fixed-IP or Inuse-IP.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_ResolveEntry ( uint32_t  entry)

Event on resolve ARP cache entry (Op)

Parameters
entrycache entry number

The event ResolveEntry is created when the network library wants to resolve the required ARP entry in the cache. This usually happens when the ARP entry is created, but it is not yet resolved or has expired.

Value in the Event Recorder shows:

  • entry: identifier of the host cache entry.
__STATIC_INLINE void EvrNetARP_SenderAddressInvalid ( void  )

Event on ARP invalid IP or MAC address of sender received (Op)

The event SenderAddressInvalid is created when the network library receives the ARP frame, checks the protocol and hardware address of the sender and finds that they are invalid. The frame is therefore discarded. This usually happens in network attacks.

Value in the Event Recorder shows:

  • discard
__STATIC_INLINE void EvrNetARP_SendReply ( uint16_t  opcode)

Event on ARP send reply message (Op)

Parameters
opcodeoperation code of sending message
  • 0x0002: ARP Reply
  • 0x0009: Inverse ARP Response

The event SendReply is created when the network library wants to send an ARP reply message.

Value in the Event Recorder shows:

  • opcode: operation code (ARP_REPLY, InARP_RESPONSE).
__STATIC_INLINE void EvrNetARP_SendRequest ( uint16_t  opcode)

Event on ARP send request message (Op)

Parameters
opcodeoperation code of sending message
  • 0x0001: ARP Request
  • 0x0008: Inverse ARP Request

The event SendRequest is created when the network library wants to send an ARP request message.

Value in the Event Recorder shows:

  • opcode: operation code (ARP_REQUEST, InARP_REQUEST).
__STATIC_INLINE void EvrNetARP_ShowFrameHeader ( const void *  arp_header)

Event on ARP display send/receive frame header (Detail)

Parameters
arp_headerpointer to ARP frame header of 28 bytes
  • HwType (2 bytes)
  • ProtType (2 bytes)
  • HwLen (1 byte)
  • ProtLen (1 byte)
  • OpCode (2 bytes)
  • SendHwAddr (6 bytes)
  • SendIpAddr (4 bytes)
  • TargHwAddr (6 bytes)
  • TargIpAddr (4 bytes)

The event ShowFrameHeader is created when the network library wants to display detailed information about the ARP header.

Value in the Event Recorder shows:

  • op: operation code (ARP_REQUEST, ARP_REPLY, RARP_REQUEST, RARP_REPLY, InARP_REQUEST, InARP_RESPONSE).
  • spa: sender protocol IP address.
  • tpa: target protocol IP address.
  • sha: sender hardware MAC address.
  • tha: target hardware MAC address.
__STATIC_INLINE void EvrNetARP_UninitCache ( void  )

Event on ARP cache de-initialize (Op)

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

Value in the Event Recorder shows:

  • arp
__STATIC_INLINE void EvrNetARP_UnresolvedIpAddress ( const uint8_t *  mac_addr)

Event on ARP unresolved IP address in cache (Op)

Parameters
mac_addrpointer to MAC cache address

The event UnresolvedIpAddress is created when the network library wants to find the host in the ARP cache table to resolve its IP address, but the host is in the process of resolving. IP address is not yet valid.

Value in the Event Recorder shows:

  • mac: MAC address of the host being searched in the cache.
__STATIC_INLINE void EvrNetARP_UnresolvedMacAddress ( const uint8_t *  ip4_addr)

Event on ARP unresolved MAC address in cache (Error)

Parameters
ip4_addrpointer to requested IP address

The event UnresolvedMacAddress is created when the network library wants to find the host in the ARP cache table to resolve its MAC address, but the host is in the process of resolving. MAC address is not yet valid.

Value in the Event Recorder shows:

  • ip: IP address of the host being searched in the cache.
__STATIC_INLINE void EvrNetARP_UsingGateway ( const uint8_t *  ip4_addr)

Event on ARP use gateway to access external address (Op)

Parameters
ip4_addrpointer to IP address of a gateway

The event UsingGateway is created when the network library wants to find the non-local host in the ARP cache table. The network library uses the gateway to access the host.

Value in the Event Recorder shows:

  • gw: IP address of the default gateway.
__STATIC_INLINE void EvrNetARP_WrongIpAddress ( const uint8_t *  ip4_addr)

Event on ARP wrong destination IP address received (Op)

Parameters
ip4_addrpointer to IP address

The event WrongIpAddress is created when the network library receives the ARP frame, but the target IP address is not the same as our local IP address. The frame is therefore discarded.

Value in the Event Recorder shows:

  • ip: received target IP address.
__STATIC_INLINE void EvrNetARP_WrongMacAddress ( const uint8_t *  mac_addr)

Event on ARP wrong destination MAC address received (Op)

Parameters
mac_addrpointer to MAC address

The event WrongMacAddress is created when the network library receives Inverse ARP frame, but the target MAC address is not the same as our local MAC address. The frame is therefore discarded.

Value in the Event Recorder shows:

  • mac: received target MAC address.
__STATIC_INLINE void EvrNetARP_WrongResponse ( void  )

Event on ARP wrong response received (Error)

The event WrongResponse is created when the network library receives a valid ARP response, but the ARP service waits for none. The received ARP frame is therefore discarded. This usually happens in network attacks.

Value in the Event Recorder shows:

  • error