diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 1999-06-23 23:40:02 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 1999-06-23 23:40:02 +0000 |
commit | f1b2a73d600a397664f7e0bb0759d114e4bd9338 (patch) | |
tree | 1f762fde578b5005be25198c106c89beb9550ae2 /contrib/isc-dhcp/includes | |
parent | f96b6240a8bcccf45bd5180f78bf9512c3339a18 (diff) | |
download | src-f1b2a73d600a397664f7e0bb0759d114e4bd9338.tar.gz src-f1b2a73d600a397664f7e0bb0759d114e4bd9338.zip |
Virgin import of ISC-DHCP v2.0
Notes
Notes:
svn path=/vendor/isc-dhcp/dist/; revision=48146
Diffstat (limited to 'contrib/isc-dhcp/includes')
-rw-r--r-- | contrib/isc-dhcp/includes/dhcpd.h | 22 | ||||
-rw-r--r-- | contrib/isc-dhcp/includes/version.h | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/contrib/isc-dhcp/includes/dhcpd.h b/contrib/isc-dhcp/includes/dhcpd.h index 958178ddbde4..56c001c0c539 100644 --- a/contrib/isc-dhcp/includes/dhcpd.h +++ b/contrib/isc-dhcp/includes/dhcpd.h @@ -106,6 +106,8 @@ struct packet { of local sender (maybe gateway). */ struct shared_network *shared_network; struct option_data options [256]; + int got_requested_address; /* True if client sent the + dhcp-requested-address option. */ }; struct hardware { @@ -163,6 +165,12 @@ struct lease_state { int max_message_size; u_int8_t *prl; int prl_len; + int got_requested_address; /* True if client sent the + dhcp-requested-address option. */ + int got_server_identifier; /* True if client sent the + dhcp-server-identifier option. */ + struct shared_network *shared_network; /* Shared network of interface + on which request arrived. */ u_int32_t xid; u_int16_t secs; @@ -921,6 +929,20 @@ ssize_t decode_udp_ip_header PROTO ((struct interface_info *, unsigned char *, int, struct sockaddr_in *, unsigned char *, int)); +/* ethernet.c */ +void assemble_ethernet_header PROTO ((struct interface_info *, unsigned char *, + int *, struct hardware *)); +ssize_t decode_ethernet_header PROTO ((struct interface_info *, + unsigned char *, + int, struct hardware *)); + +/* tr.c */ +void assemble_tr_header PROTO ((struct interface_info *, unsigned char *, + int *, struct hardware *)); +ssize_t decode_tr_header PROTO ((struct interface_info *, + unsigned char *, + int, struct hardware *)); + /* dhxpxlt.c */ void convert_statement PROTO ((FILE *)); void convert_host_statement PROTO ((FILE *, jrefproto)); diff --git a/contrib/isc-dhcp/includes/version.h b/contrib/isc-dhcp/includes/version.h new file mode 100644 index 000000000000..ff8348ca63a7 --- /dev/null +++ b/contrib/isc-dhcp/includes/version.h @@ -0,0 +1,3 @@ +/* Current version of ISC DHCP Distribution. */ + +#define DHCP_VERSION "2.0" |