Network Component  Version 7.3
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetNDP: NDP Neighbor Discovery

Events generated by the Network - Neighbor Discovery for IPv6 functions. More...

Functions

__STATIC_INLINE void EvrNetNDP_InitCache (uint32_t entries)
 Event on NDP cache initialize (Op) More...
 
__STATIC_INLINE void EvrNetNDP_FrameCheckFailed (uint8_t msg_type)
 Event on NDP discovery frame consistency check failed (Error) More...
 
__STATIC_INLINE void EvrNetNDP_AddressNotLinkLocal (const uint8_t *ip6_address)
 Event on NDP received address not link-local (Op) More...
 
__STATIC_INLINE void EvrNetNDP_RouterAdvertisement (uint8_t hop_limit, uint8_t flags, uint16_t lifetime)
 Event on NDP Router Advertisement (RA) message received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_OptionMtu (uint32_t mtu)
 Event on NDP option Maximum transfer unit (MTU) (Op) More...
 
__STATIC_INLINE void EvrNetNDP_OptionSourceMacAddress (const uint8_t *src_addr)
 Event on NDP option Source link-layer (MAC) address (Op) More...
 
__STATIC_INLINE void EvrNetNDP_OptionPrefixInfo (const uint8_t *opt_prefix)
 Event on NDP RA-option address prefix info (Op) More...
 
__STATIC_INLINE void EvrNetNDP_PrefixInfoNotValid (void)
 Event on NDP prefix information option not valid (Op) More...
 
__STATIC_INLINE void EvrNetNDP_WrongTargetAddress (const uint8_t *targ_addr)
 Event on NDP wrong target address received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_NeighborSolicitation (const uint8_t *targ_addr)
 Event on NDP Neighbor Solicitation (NS) message received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_ProbeRequest (void)
 Event on NDP probe request received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_NeighborAdvertisement (const uint8_t *targ_addr)
 Event on NDP Neighbor Advertisement (NA) message received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_ProbeResponse (void)
 Event on NDP probe response received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_WrongDestinationAddress (const uint8_t *dst_addr)
 Event on NDP wrong destination address received (Op) More...
 
__STATIC_INLINE void EvrNetNDP_SendReply (const uint8_t *targ_addr)
 Event on NDP send advertisement reply to solicitation message (Op) More...
 
__STATIC_INLINE void EvrNetNDP_ShowFlags (uint32_t flags)
 Event on NDP display advertisement message flags (Op) More...
 
__STATIC_INLINE void EvrNetNDP_SendRequest (uint32_t type)
 Event on NDP send solicitation request (Op) More...
 
__STATIC_INLINE void EvrNetNDP_ShowTargetAddress (const uint8_t *targ_addr)
 Event on NDP display target address (Op) More...
 
__STATIC_INLINE void EvrNetNDP_OptionTargetMacAddress (const uint8_t *targ_addr)
 Event on NDP option Target link-layer (MAC) address (Op) More...
 
__STATIC_INLINE void EvrNetNDP_CacheEntryUpdate (uint32_t entry)
 Event on NDP cache entry update (Op) More...
 
__STATIC_INLINE void EvrNetNDP_WrongResponse (uint8_t msg_type)
 Event on NDP wrong response received (Error) More...
 
__STATIC_INLINE void EvrNetNDP_CreateTempAddress (const uint8_t *temp_addr)
 Event on NDP create temporary address (SLAAC) using prefix info (Op) More...
 

Description

Events generated by the Network - Neighbor Discovery for IPv6 functions.

Function Documentation

__STATIC_INLINE void EvrNetNDP_AddressNotLinkLocal ( const uint8_t *  ip6_address)

Event on NDP received address not link-local (Op)

Parameters
ip6_addresspointer to IPv6 source address
Note
Nodes must silently discard RA messages if src IP not link-local.
__STATIC_INLINE void EvrNetNDP_CacheEntryUpdate ( uint32_t  entry)

Event on NDP cache entry update (Op)

Parameters
entrycache entry number
__STATIC_INLINE void EvrNetNDP_CreateTempAddress ( const uint8_t *  temp_addr)

Event on NDP create temporary address (SLAAC) using prefix info (Op)

Parameters
temp_addrpointer to temporary address
__STATIC_INLINE void EvrNetNDP_FrameCheckFailed ( uint8_t  msg_type)

Event on NDP discovery frame consistency check failed (Error)

Parameters
msg_typediscovery message type
  • 134: Router Advertisement
  • 135: Neighbor Solicitation
  • 136: Neighbor Advertisement
__STATIC_INLINE void EvrNetNDP_InitCache ( uint32_t  entries)

Event on NDP cache initialize (Op)

Parameters
entriesnumber of entries available in NDP cache
__STATIC_INLINE void EvrNetNDP_NeighborAdvertisement ( const uint8_t *  targ_addr)

Event on NDP Neighbor Advertisement (NA) message received (Op)

Parameters
targ_addrpointer to target address
__STATIC_INLINE void EvrNetNDP_NeighborSolicitation ( const uint8_t *  targ_addr)

Event on NDP Neighbor Solicitation (NS) message received (Op)

Parameters
targ_addrpointer to target address
__STATIC_INLINE void EvrNetNDP_OptionMtu ( uint32_t  mtu)

Event on NDP option Maximum transfer unit (MTU) (Op)

Parameters
mtumaximum transfer unit
__STATIC_INLINE void EvrNetNDP_OptionPrefixInfo ( const uint8_t *  opt_prefix)

Event on NDP RA-option address prefix info (Op)

Parameters
opt_prefixpointer to RA prefix option structure (32 bytes)
  • Type: 1 byte
  • Length: 1 byte
  • PrefixLen: 1 byte
  • Flags: 1 byte
  • Valid: 4 byte2
  • Preferred: 4 byte2
  • Reserved: 4 bytes
  • Prefix: 16 bytes
__STATIC_INLINE void EvrNetNDP_OptionSourceMacAddress ( const uint8_t *  src_addr)

Event on NDP option Source link-layer (MAC) address (Op)

Parameters
src_addrsource link-layer address
__STATIC_INLINE void EvrNetNDP_OptionTargetMacAddress ( const uint8_t *  targ_addr)

Event on NDP option Target link-layer (MAC) address (Op)

Parameters
targ_addrtarget link-layer address
__STATIC_INLINE void EvrNetNDP_PrefixInfoNotValid ( void  )

Event on NDP prefix information option not valid (Op)

Note
Nodes must silently discard not valid RA messages.
__STATIC_INLINE void EvrNetNDP_ProbeRequest ( void  )

Event on NDP probe request received (Op)

__STATIC_INLINE void EvrNetNDP_ProbeResponse ( void  )

Event on NDP probe response received (Op)

__STATIC_INLINE void EvrNetNDP_RouterAdvertisement ( uint8_t  hop_limit,
uint8_t  flags,
uint16_t  lifetime 
)

Event on NDP Router Advertisement (RA) message received (Op)

Parameters
hop_limitcurrent hop limit
flagsadvertisement flags
  • 0x80: M-flag (Managed address configuration)
  • 0x40: O-flag (Other configuration)
lifetimerouter lifetime in seconds
__STATIC_INLINE void EvrNetNDP_SendReply ( const uint8_t *  targ_addr)

Event on NDP send advertisement reply to solicitation message (Op)

Parameters
targ_addrpointer to target address
__STATIC_INLINE void EvrNetNDP_SendRequest ( uint32_t  type)

Event on NDP send solicitation request (Op)

Parameters
typerequest type
  • 133: Router Solicitation
  • 135: Neighbor Solicitation
__STATIC_INLINE void EvrNetNDP_ShowFlags ( uint32_t  flags)

Event on NDP display advertisement message flags (Op)

Parameters
flagsmessage flags
__STATIC_INLINE void EvrNetNDP_ShowTargetAddress ( const uint8_t *  targ_addr)

Event on NDP display target address (Op)

Parameters
targ_addrpointer to target address
__STATIC_INLINE void EvrNetNDP_WrongDestinationAddress ( const uint8_t *  dst_addr)

Event on NDP wrong destination address received (Op)

Parameters
dst_addrpointer to destination address
__STATIC_INLINE void EvrNetNDP_WrongResponse ( uint8_t  msg_type)

Event on NDP wrong response received (Error)

Parameters
msg_typediscovery message type
  • 136: Neighbor Advertisement
__STATIC_INLINE void EvrNetNDP_WrongTargetAddress ( const uint8_t *  targ_addr)

Event on NDP wrong target address received (Op)

Parameters
targ_addrpointer to target address