summaryrefslogtreecommitdiff
path: root/includes/dhcpd.h
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2015-07-13 12:06:50 -0700
committerShawn Routhier <sar@isc.org>2015-07-13 12:06:50 -0700
commit45c332f037bf54134df5335ba9c888aea0c24d4d (patch)
tree6e71fbf81a321dd3be279d233b33f5f7fd9a2095 /includes/dhcpd.h
parent3496e9bc0e899e6120b8d4a2a7258fb30b4cf1f1 (diff)
downloadisc-dhcp-45c332f037bf54134df5335ba9c888aea0c24d4d.tar.gz
[master] Add code to parse a vendor option as directed by the user.
Add code to parse a vendor option. It is structured as an action in the config language. When the statement is executed it attempts to find a vendor option in the packet and a vendor option space specified by the admin for use with that packet. It then calls the proper parse routine to do the parsing.
Diffstat (limited to 'includes/dhcpd.h')
-rw-r--r--includes/dhcpd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index 378459b9..916e18eb 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -2016,6 +2016,13 @@ int add_option(struct option_state *options,
void *data,
unsigned int data_len);
+void parse_vendor_option(struct packet *packet,
+ struct lease *lease,
+ struct client_state *client_state,
+ struct option_state *in_options,
+ struct option_state *out_options,
+ struct binding_scope **scope);
+
/* dhcpd.c */
extern struct timeval cur_tv;
#define cur_time cur_tv.tv_sec