summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/includes
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-06-23 23:40:02 +0000
committerobrien <obrien@FreeBSD.org>1999-06-23 23:40:02 +0000
commitbb7cda744509ca00fdfaacff74526af8928253b4 (patch)
tree1f762fde578b5005be25198c106c89beb9550ae2 /contrib/isc-dhcp/includes
parent76664fd3c5ed0bff5785e0d1beeab0742940552b (diff)
downloadFreeBSD-src-bb7cda744509ca00fdfaacff74526af8928253b4.zip
FreeBSD-src-bb7cda744509ca00fdfaacff74526af8928253b4.tar.gz
Virgin import of ISC-DHCP v2.0
Diffstat (limited to 'contrib/isc-dhcp/includes')
-rw-r--r--contrib/isc-dhcp/includes/dhcpd.h22
-rw-r--r--contrib/isc-dhcp/includes/version.h3
2 files changed, 25 insertions, 0 deletions
diff --git a/contrib/isc-dhcp/includes/dhcpd.h b/contrib/isc-dhcp/includes/dhcpd.h
index 958178d..56c001c 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 0000000..ff8348c
--- /dev/null
+++ b/contrib/isc-dhcp/includes/version.h
@@ -0,0 +1,3 @@
+/* Current version of ISC DHCP Distribution. */
+
+#define DHCP_VERSION "2.0"
OpenPOWER on IntegriCloud