aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
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 {
78typedef uint32_t leasetime_t; 78typedef uint32_t leasetime_t;
79typedef int32_t signed_leasetime_t; 79typedef int32_t signed_leasetime_t;
80 80
81//TODO: (1) rename to dyn_lease (that's what it is. we also have static_lease).
82//(2) lease_mac16 may be shortened to lease_mac[6], since e.g. ARP probing uses
83//only 6 first bytes anyway. We can check received dhcp packets
84//that their "chaddr"s have only 6 first bytes != 0, and complain otherwise.
81struct dhcpOfferedAddr { 85struct dhcpOfferedAddr {
82 uint8_t lease_mac16[16]; 86 uint8_t lease_mac16[16];
83 /* "nip": IP in network order */ 87 /* "nip": IP in network order */