lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] How to manually set static IPv6 address?


From: Mohsin
Subject: [lwip-users] How to manually set static IPv6 address?
Date: Tue, 24 Feb 2015 05:32:42 -0700 (MST)

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



--
View this message in context: 
http://lwip.100.n7.nabble.com/How-to-manually-set-static-IPv6-address-tp23974.html
Sent from the lwip-users mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]