udhcpd host name issue
Mahavir Jain
mahavir.coep at gmail.com
Mon Mar 30 05:50:35 UTC 2009
Hello,
I have dhcp server configured in busybox 1.13.3. , but for me it is
very difficult identify clients based on
dumpleases -f udhcpd.lease file . This file gives me idea of connected
clients with mac address & assigned lease.
But i could see that it is very easy to get host name of client in
bootp protocol with DHCP_HOST_NAME macro in busybox.
Following patch (attached) does trick for me , which gives me good
idea about clients.
Though not sure it works for me.
As previously suggested by vda that dumpleases -a option is broken &
following patch is needed.
Why yet this is not included in busybox stable 1.13.3. ...?
dumpleases -a option
is supposed to show "absolute" expiration time, but is broken.
Add these lines in networking/udhcp/dumpleases.c:
} else /* -a */
+{
+ expires += time(NULL);
fputs(ctime(&expires), stdout);
+}
to fix it.
Appreciate your kind feedback & suggestions.
Thanks
max
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review.patch
Type: text/x-patch
Size: 6113 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090330/3d459b72/attachment.bin>
More information about the busybox
mailing list