Network Component  Version 7.9.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetIP4: IP4 Core

Events generated by the Network - IPv4 Core functions. More...

Functions

__STATIC_INLINE void EvrNetIP4_InitCore (void)
 Event on IPv4 core initialize (Op) More...
 
__STATIC_INLINE void EvrNetIP4_ReceiveFrame (uint32_t length)
 Event on IPv4 receive frame (Op) More...
 
__STATIC_INLINE void EvrNetIP4_FrameTooShort (uint32_t length, uint32_t min_length)
 Event on IPv4 received frame too short (Error) More...
 
__STATIC_INLINE void EvrNetIP4_InvalidIpVersion (uint8_t ip_version)
 Event on IPv4 invalid protocol version (Error) More...
 
__STATIC_INLINE void EvrNetIP4_ShowFrameHeader (const void *ip4_header)
 Event on IPv4 display frame header (Detail) More...
 
__STATIC_INLINE void EvrNetIP4_SourceIpAddressInvalid (const uint8_t *ip4_addr)
 Event on IPv4 source IP address invalid (Error) More...
 
__STATIC_INLINE void EvrNetIP4_WrongMulticastProtocol (uint8_t ip4_protocol)
 Event on IPv4 wrong multicast protocol type (Error) More...
 
__STATIC_INLINE void EvrNetIP4_WrongDestinationAddress (const uint8_t *ip4_addr)
 Event on IPv4 wrong destination address (Op) More...
 
__STATIC_INLINE void EvrNetIP4_ChecksumFailed (uint32_t length)
 Event on IP4 frame checksum check failed (Error) More...
 
__STATIC_INLINE void EvrNetIP4_FragmentDfFlagSet (void)
 Event on IP4 fragmented frame received wit DF-flag set (Error) More...
 
__STATIC_INLINE void EvrNetIP4_FragmentationNotEnabled (void)
 Event on IP4 fragmented frame received (Error) More...
 
__STATIC_INLINE void EvrNetIP4_SendFrame (uint8_t ip4_protocol, uint32_t length)
 Event on IP4 send frame (Op) More...
 
__STATIC_INLINE void EvrNetIP4_ProtocolUnknown (uint8_t ip4_protocol)
 Event on IP4 unknown protocol type in sending frame (Error) More...
 
__STATIC_INLINE void EvrNetIP4_DestinationAddressNull (void)
 Event on IP4 destination address not provided (Error) More...
 
__STATIC_INLINE void EvrNetIP4_UninitCore (void)
 Event on IPv4 core de-initialize (Op) More...
 

Description

Events generated by the Network - IPv4 Core functions.

Function Documentation

__STATIC_INLINE void EvrNetIP4_ChecksumFailed ( uint32_t  length)

Event on IP4 frame checksum check failed (Error)

Parameters
lengthheader length in bytes
__STATIC_INLINE void EvrNetIP4_DestinationAddressNull ( void  )

Event on IP4 destination address not provided (Error)

__STATIC_INLINE void EvrNetIP4_FragmentationNotEnabled ( void  )

Event on IP4 fragmented frame received (Error)

__STATIC_INLINE void EvrNetIP4_FragmentDfFlagSet ( void  )

Event on IP4 fragmented frame received wit DF-flag set (Error)

__STATIC_INLINE void EvrNetIP4_FrameTooShort ( uint32_t  length,
uint32_t  min_length 
)

Event on IPv4 received frame too short (Error)

Parameters
lengthframe length in bytes
min_lengthminimum length of the frame
__STATIC_INLINE void EvrNetIP4_InitCore ( void  )

Event on IPv4 core initialize (Op)

__STATIC_INLINE void EvrNetIP4_InvalidIpVersion ( uint8_t  ip_version)

Event on IPv4 invalid protocol version (Error)

Parameters
ip_versionnot IPv4 protocol version value
  • 0..3
  • 5..15
__STATIC_INLINE void EvrNetIP4_ProtocolUnknown ( uint8_t  ip4_protocol)

Event on IP4 unknown protocol type in sending frame (Error)

Parameters
ip4_protocolunknown IPv4 protocol type value
__STATIC_INLINE void EvrNetIP4_ReceiveFrame ( uint32_t  length)

Event on IPv4 receive frame (Op)

Parameters
lengthframe length in bytes
__STATIC_INLINE void EvrNetIP4_SendFrame ( uint8_t  ip4_protocol,
uint32_t  length 
)

Event on IP4 send frame (Op)

Parameters
ip4_protocolIPv4 protocol type
  • 1: ICMP
  • 2: IGMP
  • 6: TCP
  • 17: UDP
lengthframe length
__STATIC_INLINE void EvrNetIP4_ShowFrameHeader ( const void *  ip4_header)

Event on IPv4 display frame header (Detail)

Parameters
ip4_headerpointer to IPv4 frame header of 20 bytes
  • VerHlen (1 byte)
  • Tos (1 byte)
  • Len (2 bytes)
  • Id (2 bytes)
  • FragOffs (2 bytes)
  • Ttl (1 byte)
  • Proto (1 byte)
  • Chksum (2 bytes)
  • SrcAddr (4 bytes)
  • DstAddr (4 bytes)
__STATIC_INLINE void EvrNetIP4_SourceIpAddressInvalid ( const uint8_t *  ip4_addr)

Event on IPv4 source IP address invalid (Error)

Parameters
ip4_addrpointer to IPv4 address
__STATIC_INLINE void EvrNetIP4_UninitCore ( void  )

Event on IPv4 core de-initialize (Op)

__STATIC_INLINE void EvrNetIP4_WrongDestinationAddress ( const uint8_t *  ip4_addr)

Event on IPv4 wrong destination address (Op)

Parameters
ip4_addrpointer to IPv4 destination address
__STATIC_INLINE void EvrNetIP4_WrongMulticastProtocol ( uint8_t  ip4_protocol)

Event on IPv4 wrong multicast protocol type (Error)

Parameters
ip4_protocolwrong protocol type value
Note
Only UDP and IGMP multicast frames are allowed!