How to send DHCPrelease?

Lennart Hellström (ERA) Lennart.Hellstrom at era.ericsson.se
Wed Aug 25 14:01:17 UTC 1999


>> 1.  Controller. By including a new file descriptor in the set that is examined in dispatch() I
>>      should be able to, from another process, write commands on the fifo belonging to that >>fd.
>>      The controller will be called when such a command is received and should do the
>>      appropriate actions:

>If you wait until the end of the week, you'll be able to use the
>object management API in 3.1 to do this.   I don't have immediate
>plans to implement anything for the client myself, but you could use
>the existing framework rather than rolling your own.

Ok, sounds good. Is this what the object management API is intended to do, or is the main
purpose for it something else?

>> 2.  Address renewal. Try to renew the current leases by calling state_init().

>You might want to call state_bound() instead.   State_init will
>deconfigure your interface and start over...

Actually, I really want to do the renewal from scratch, like a reboot/reinit where the client
tries to get the addresses from living leases, and if that fails it should send discover instead.
That is more like the state_init(), isn't it?

>> 3.  Subnet selection option. I haven't started thinking about this implementation yet so >>please 
>>      share your ideas :-)

>From the client side or the server side?

To make it work, I'll have to do it on both sides... 

>> 4.  Release specified address. The client have to be able to release one of it's old >>addresses.
>>      If I can get hold of the client_lease corresponding to the given IP-address, would it
>>      require some modifications to the make_release() and send_release() functions, or >>could 
>>      I use something like the client_reinit (state) you sent me last week?

>You'd want to do the make_release/send_release call followed by
>state_init (or exit).

Why would I need to call state_init? The release for the old address is sent *after* that the client has asked for and received a new address on another subnet.

	/ The as always grateful Lelle


More information about the dhcp-hackers mailing list