How to send DHCPrelease?

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


>You should call state_init if the current lease has expired, and
>state_bound if it has not.   If you call state_init when you have a
>valid lease, any existing network connections will be abruptly
>terminated.

Roger that. :-)

>> 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.

>That's not what the protocol says you're supposed to do.   You're
>supposed to release the lease *before* you try to get a new one.
>If you release it afterwards, the release message is going to come
>from the wrong IP address, and the server should reject it.

Yes, I know this isn't the way the protocol says how to do it, but this is the way
I need it to be done... Since I'm thinking wireless, I want to preregister an address on the subnet the mobile terminal will roam to and use that address when I decide to associate with that access point. After that I can release my old address. Everything to minimize (hopefully
eliminate) the packet loss. 
So I want the server to allow selective release, check if that address is kept by the host making
the release and if that's the case, release it. OK?

	/ Lelle


More information about the dhcp-hackers mailing list