[Top][All Lists]

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

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

From: Philip Gladstone
Subject: Re: [lwip-users] How to manually set static IPv6 address?
Date: Thu, 05 Mar 2015 07:56:23 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 2/24/15 07:32, Mohsin wrote:

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,

I suspect that the patch http://savannah.nongnu.org/patch/?8359 will help -- it solves the same problem.


reply via email to

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