Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.03.00

Description

This hook function, if set, will be called each time a IPv6 address auto-configuration process ends.

Prototype

Arguments

if_nbr

Network Interface number on which Auto-Configuration took place.

p_addr_local_cfgd

Pointer to IPv6 link-local address configured, if any.
DEF_NULL, otherwise. 

p_addr_global_cfgd

Pointer to IPv6 global address configured, if any.
DEF_NULL, otherwise.  

auto_cfg_result

Result status of the IPv6 Address Auto-Configuration process.

Return Values

None.

Required Configuration

NET_IPv6_CFG_ADDR_AUTO_CFG_EN macro must be enabled in the net_cfg.h file.

Notes / Warnings

p_addr_local_cfgd and p_addr_global_cfgd are for read-only. They must not be modified at any point in this hook function.

This hook function is called with the Network Lock already acquired, therefore no network API functions can be called will inside this hook function.

Example Template

Below,  shows a possible implementation of the hook function. That code simply print in the debug console the IPv6 addresses configured and the final result of the IPv6 Auto-Configuration process.