diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2009-09-03 11:56:50 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2009-09-03 11:56:50 +0000 |
commit | 7cc9eb902b01b4c94c6be5f94c7016c74798a565 (patch) | |
tree | 19f75d0c86cb7d38d2dd343cf60faab30f2a791d /usr.sbin/dhcrelay/dhcpd.h | |
parent | 72065703e8247a211550c6430814ff3553b7a7ec (diff) |
Add support for "DHCP-over-IPsec" by implementing RFC 3046 (DHCP Relay
Agent Information Option) and RFC 3456 (DHCP Configuration of IPsec
Tunnel Mode). This allows to configure various IPsec clients
dynamically via DHCP; dhcrelay needs to listen on enc0 and forward
requests to a DHCP server that supports RFC 3046, like I recently did
for dhcpd(8).
ok krw@
Diffstat (limited to 'usr.sbin/dhcrelay/dhcpd.h')
-rw-r--r-- | usr.sbin/dhcrelay/dhcpd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/dhcrelay/dhcpd.h b/usr.sbin/dhcrelay/dhcpd.h index 332dfb33a14..c1d6917460b 100644 --- a/usr.sbin/dhcrelay/dhcpd.h +++ b/usr.sbin/dhcrelay/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.11 2007/01/04 19:12:41 stevesk Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.12 2009/09/03 11:56:49 reyk Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -150,7 +150,8 @@ ssize_t receive_packet(struct interface_info *, unsigned char *, size_t, /* dispatch.c */ extern void (*bootp_packet_handler)(struct interface_info *, - struct dhcp_packet *, int, unsigned int, struct iaddr, struct hardware *); + struct dhcp_packet *, int, unsigned int, struct iaddr, + struct hardware *); void discover_interfaces(struct interface_info *); void dispatch(void); void got_one(struct protocol *); @@ -170,6 +171,7 @@ ssize_t decode_udp_ip_header(struct interface_info *, unsigned char *, /* dhcrelay.c */ extern u_int16_t server_port; extern u_int16_t client_port; +extern int server_fd; /* crap */ extern time_t cur_time; |