diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-14 01:09:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-14 01:09:53 +0000 |
commit | f13d7f71d21867a72b76986161f6923c4c43c547 (patch) | |
tree | 3e63b56607698c294f6964e1635846637a814158 /usr.sbin/dhcpd/dhcpd.h | |
parent | 7dab92fbe82bf08342de760d50705fc6e69ed4c6 (diff) |
fold in 10liners and clean up other .hs a bit
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; |