[BusyBox] udhcpd, leased ip's
Bas M
bas__m at hotmail.com
Wed Jul 24 05:14:02 UTC 2002
Michael,
The lease file is written out as an binary file.
You should alter the write_leases() function in files.c to write out the
ip-addresses in string or number format. Beware that the function
read_leases() expects the lease file to be in binary format.
Regards,
Bas.
>-----Original Message-----
>From: Michael Hauser [mailto:hauser at decomsys.com]
>Sent: Tuesday, July 23, 2002 4:18 PM
>To: Busybox Mailing List
>Subject: [BusyBox] udhcpd, leased ip's
>Importance: High
>
>
>Hi @ all !
>
>I've got a question:
>
>How can I get the leased IP's from the deamon ?
>I have to know which IP's are already leased from the deamon for cllients
>There is the udhcpd.leases and i set the "auto_time"-variable which is
>responsible for the frequence of writing the "udhcpd.leases" but my lease
>file is always empty.
>Does anyone of you have an idea what i have to do to get the leased IP's in
>a kind of string or integer into a file ? The best solution would be to get
>the IP's in the same way i get the PID of the deamon (udhcpd.pid)
>
>Best regards !
>--
>Michael Hauser
>mailto:hauser at decomsys.com
>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://busybox.net/mailman/listinfo/busybox
>
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
More information about the busybox
mailing list