SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
IPv6 local link must consist of the following prefix: Fe80::/64. The following IPv6 link-local acquisition methods are allowed:
Example:
_i16 Status;
Status = sl_NetCfgSet(SL_NETCFG_IPV6_ADDR_LOCAL,SL_NETCFG_ADDR_STATELESS,0,0);
if( Status )
{
// error
}
Example:
_i16 Status;
Status = sl_NetCfgSet(SL_NETCFG_IPV6_ADDR_LOCAL,SL_NETCFG_ADDR_STATEFUL,0,0);
if( Status )
{
// error
}
Example:
_i16 Status;
SlNetCfgIpV6Args_t ipV6;
memset(&ipV6, 0, sizeof(ipV6));
ipV6.Ip[0] = 0xfe800000;
ipV6.Ip[1] = 0x00000000;
ipV6.Ip[2] = 0x00004040;
ipV6.Ip[3] = 0x0000ce65;
Status = sl_NetCfgSet(SL_NETCFG_IPV6_ADDR_LOCAL,SL_NETCFG_ADDR_STATIC,sizeof(ipV6),(_u8*)&ipV6);
if( Status )
{
// error
}