diff options
Diffstat (limited to 'usr.sbin/dhcpd/dhcpd.h')
-rw-r--r-- | usr.sbin/dhcpd/dhcpd.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/dhcpd.h b/usr.sbin/dhcpd/dhcpd.h index 98eb48511d3..be7e3f3a36f 100644 --- a/usr.sbin/dhcpd/dhcpd.h +++ b/usr.sbin/dhcpd/dhcpd.h @@ -98,11 +98,33 @@ extern int h_errno; #include "dhcp.h" #include "tree.h" -#include "hash.h" -#include "inet.h" #define LOCAL_PORT 68 +struct iaddr { + int len; + unsigned char iabuf [16]; +}; + +struct iaddrlist { + struct iaddrlist *next; + struct iaddr addr; +}; + +#define DEFAULT_HASH_SIZE 97 + +struct hash_bucket { + struct hash_bucket *next; + unsigned char *name; + int len; + unsigned char *value; +}; + +struct hash_table { + int hash_count; + struct hash_bucket *buckets [DEFAULT_HASH_SIZE]; +}; + struct option_data { int len; u_int8_t *data; |