aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:05:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:05:21 +0200
commited8982bfc0e9895fe707a5f6152cf184e06f2052 (patch)
treeff08bef8b550e5503cf54eb8f7fdd7e5f37875f5 /networking/udhcp/dhcpd.h
parent26918dd28ef6f2c6380ed23b384ddc8e98a8ad81 (diff)
downloadbusybox-ed8982bfc0e9895fe707a5f6152cf184e06f2052.tar.gz
udhcp: add a few TODOs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r--networking/udhcp/dhcpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index b233962b0..bb2febbba 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -78,6 +78,10 @@ struct server_config_t {
typedef uint32_t leasetime_t;
typedef int32_t signed_leasetime_t;
+//TODO: (1) rename to dyn_lease (that's what it is. we also have static_lease).
+//(2) lease_mac16 may be shortened to lease_mac[6], since e.g. ARP probing uses
+//only 6 first bytes anyway. We can check received dhcp packets
+//that their "chaddr"s have only 6 first bytes != 0, and complain otherwise.
struct dhcpOfferedAddr {
uint8_t lease_mac16[16];
/* "nip": IP in network order */