diff options
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 67cb78ce7..4f6b73e34 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h @@ -89,7 +89,7 @@ struct dyn_lease { * (dhcp packet has chaddr[16], not [6]) */ uint8_t lease_mac[6]; - uint8_t hostname[20]; + char hostname[20]; uint8_t pad[2]; /* total size is a multiply of 4 */ } PACKED; @@ -98,7 +98,8 @@ extern struct dyn_lease *g_leases; struct dyn_lease *add_lease( const uint8_t *chaddr, uint32_t yiaddr, - leasetime_t leasetime, uint8_t *hostname + leasetime_t leasetime, + const char *hostname, int hostname_len ) FAST_FUNC; int is_expired_lease(struct dyn_lease *lease) FAST_FUNC; struct dyn_lease *find_lease_by_mac(const uint8_t *mac) FAST_FUNC; |