diff options
author | obrien <obrien@FreeBSD.org> | 1999-06-23 23:40:02 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-06-23 23:40:02 +0000 |
commit | bb7cda744509ca00fdfaacff74526af8928253b4 (patch) | |
tree | 1f762fde578b5005be25198c106c89beb9550ae2 /contrib/isc-dhcp/includes/dhcpd.h | |
parent | 76664fd3c5ed0bff5785e0d1beeab0742940552b (diff) | |
download | FreeBSD-src-bb7cda744509ca00fdfaacff74526af8928253b4.zip FreeBSD-src-bb7cda744509ca00fdfaacff74526af8928253b4.tar.gz |
Virgin import of ISC-DHCP v2.0
Diffstat (limited to 'contrib/isc-dhcp/includes/dhcpd.h')
-rw-r--r-- | contrib/isc-dhcp/includes/dhcpd.h | 22 |
1 files changed, 22 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)); |