NetIPv6_AddrAutoCfgHookSet

Description

Set IPv6 Auto-Configuration hook function. This hook function will be called each time an IPv6 Auto-Configuration process ends.

Files

net_ipv6.h/net_ipv6.c

Prototype

void  NetIPv6_AddrAutoCfgHookSet(NET_IF_NBR                    if_nbr,
                                 NET_IPv6_AUTO_CFG_HOOK_FNCT   fnct,
                                 NET_ERR                      *p_err);

Arguments

if_nbr

Interface number to configure.

fnct

Pointer to hook function. 

p_err

Pointer to variable that will receive the error code from this function:

NET_IPv6_ERR_NONE
NET_INIT_ERR_NOT_COMPLETED
NET_IF_ERR_INVALID_IF
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

None.

Required Configuration

NET_IPv6_CFG_ADDR_AUTO_CFG_EN must be enabled in the net_cfg.h file.

Notes / Warnings

None.