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

(usagi-users 02781) Re: Adding IPv6 addrs with finite lifetime



I'm not sure if there is a way to insert an address into the kernel that has a defined preferred and valid lifetime. I think the DHCPv6 client would have to maintain a timer for any addresses it has been leased. That is the way the client implementation available at:

http://dhcpv6.sourceforge.net

does it. Once the timer expires it takes the appropriate action, such as trying to renew the address. I'm not aware of any interface from the kernel to a user-space daemon to signal that an address is going to expire, but I haven't looked into this too much so maybe I'm just not aware of it. By the way, the above-mentioned project also has a server implementation, and both are released under the BSD license in case you are interested.
I'm curious. Will your implementation be fully RFC 3315 compliant, or is it only going to implement a subset of the functionality? Are you implementing just a client, or are you also implementing a server and relay agent?


Brian

Tomasz Mrugalski wrote:

Hi there

I'm developing GPLed DHCPv6 for Linux systems. It's almost completed, but I came upon a problem I cannot solve. How do I add dynamicIPv6 address (with finite prefered-lifetime and valid-lifetime)?

I've tried to find it in ip-route2 code, with no luck. "ip addr" just prints available addresses. There is no way to add new ones. I know that kernels are supporing this feature. For example, I've set up a radvd and hosts have used dynamic addresses. It was a diffrent matter, however. Messages from radvd were received at kernel level and no user-space programs were involed in this.

Is there any way to add such dynamic addresses? Any reference or code would be greatly appreciated.

Greetings from Poland.