[BusyBox] udhcpd leases

Frank R Callaghan f.callaghan at ieee.org
Fri Aug 15 16:50:44 UTC 2003


More Information:

I just re-installed udhcp 0.9.8 for kicks and
it works perfectly ! (same config file) I must assume that
something has got broken with the busybox_pre2 integration :(
Can someone please confirm/Deny this ?

TIA,
    Frank.


On Thursday 14 August 2003 03:55 pm, Frank R Callaghan wrote:
> Also I've sent the client a SIGUSR2 checked with ifconfig that the
> addr was lost, then sent the server SIGUSR1 to write out the leases and
> the lease is still there ! but the value is smaller:=
> <--------- while lease active --------->
> # kill -SIGUSR1 50
> # dumpleases -f /etc/udhcpd/udhcpd.leases
> Mac Address       IP-Address      Expires in
> 00:d0:69:12:34:56 192.168.1.208   -1179695041 seconds
> # dumpleases -a -f /etc/udhcpd/udhcpd.leases
> Mac Address       IP-Address      Expires at
> 00:d0:69:12:34:56 192.168.1.208   Sun Aug 14 02:55:59 1932
>
> Am I the only one seeing this problem ?
> is there any other infomation I need to supply ?
>
> TIA,
>     Frank.
>
> <--------- after lease should be released ---->
> # kill -SIGUSR1 50
> # dumpleases -a -f /etc/udhcpd/udhcpd.leases
> Mac Address       IP-Address      Expires at
> 00:d0:69:12:34:56 192.168.1.208   Sun Oct 15 16:47:59 1995
>
> > > > I have tried it both ways and the lease time is just one
> > > > big negative #of sec or a date like 1928 !
> > > > changing the setting in the server does change the # but
> > > > it still a big -ve #
> > >
> > > I'm not sure what you mean, or where you changed it. Also, the
> > > configuration file for udhcpd only tells the server how to read and
> > > write leases files, it doesn't change the format. So if you switch
> > > formats, you probably have to delete your config file. (need more
> > > information)
> >
> > Thanks for the reply Russ, sorry for the vagueness.
> >
> >
> > # If remaining is true (default), udhcpd will store the time
> > # remaining for each lease in the udhcpd leases file. This is
> > # for embedded systems that cannot keep time between reboots.
> > # If you set remaining to no, the absolute time that the lease
> > # expires at will be stored in the dhcpd.leases file.
> >
> > remaining       no              #default: yes
> >
> > produces:
> > # dumpleases -f /etc/udhcpd/udhcpd.leases
> > Mac Address       IP-Address      Expires in
> > 00:d0:69:12:34:56 192.168.1.208   -682604737 seconds
> >
> > # dumpleases -a -f /etc/udhcpd/udhcpd.leases
> > Mac Address       IP-Address      Expires at
> > 00:d0:69:12:34:56 192.168.1.208   Sat May 15 11:34:23 1948
> >
> >
> > With:
> > remaining       yes              #default: yes
> >
> > produces:
> > #  kill -SIGUSR1 143
> > # dumpleases -f /etc/udhcpd/udhcpd.leases
> > Mac Address       IP-Address      Expires in
> > 00:d0:69:12:34:56 192.168.1.208   -1822734273 seconds
> >
> > # dumpleases -a -f /etc/udhcpd/udhcpd.leases
> > Mac Address       IP-Address      Expires at
> > 00:d0:69:12:34:56 192.168.1.208   Fri Mar 29 12:55:27 1912
> > # date
> > Thu Aug 14 06:32:11 UTC 2003
>





More information about the busybox mailing list