Hi,
I'm trying to implement IPv6 in my device.
I've configured linklocal IP6 address using
netif_create_ip6_linklocal_address() function in my device.
But I want to assign static IPv6 address to my device. For this, I just know
how to configure it which I does as follows:
{
ip6_addr_t &private_addr;
IP6_ADDR( &private_addr, 0, 0xFD, 0xA8, 0x06, 0xC3);
IP6_ADDR( &private_addr, 1, 0xCE, 0x53, 0xA8, 0x90);
IP6_ADDR( &private_addr, 2, 0x00, 0x00, 0x00, 0x00);
IP6_ADDR( &private_addr, 3, 0x00, 0x00, 0x00, 0x08);
ip6_addr_copy(netif->ip6_addr[1], ip_addr);
netif_ip6_addr_set_state(netif, 1, IP6_ADDR_TENTATIVE);
}
But where to set above parameters and call netif_ip6_addr_set_state()
function that I'm not getting.
So can any one please tell me?
Any help would be highly appreciated.
Thanks & Regards,
Mohsin