summaryrefslogtreecommitdiff
path: root/includes/tree.h
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2006-07-31 22:19:51 +0000
committerDavid Hankins <dhankins@isc.org>2006-07-31 22:19:51 +0000
commitb543fea9d425b507066d6d82e89a7787a0354eb1 (patch)
tree7e7e5184bb8466750ddaa9eec43d6b2ce42e9a57 /includes/tree.h
parentd5341d9b5f08f17d05dd00350a51d1c49f6393ff (diff)
downloadisc-dhcp-b543fea9d425b507066d6d82e89a7787a0354eb1.tar.gz
- A new common configuration executable statement, execute(), has been
added. This permits dhcpd or dhclient to execute a named external program with command line arguments specified from other configuration language. Thanks to a patch written by Mattias Ronnblom, gotten to us via Robin Breathe. [ISC-Bugs #13728]
Diffstat (limited to 'includes/tree.h')
-rw-r--r--includes/tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/tree.h b/includes/tree.h
index e70a6123..1a398822 100644
--- a/includes/tree.h
+++ b/includes/tree.h
@@ -153,6 +153,7 @@ enum expr_op {
expr_extract_int8,
expr_extract_int16,
expr_extract_int32,
+ expr_execute,
expr_encode_int8,
expr_encode_int16,
expr_encode_int32,
@@ -274,6 +275,11 @@ struct expression {
char *name;
struct expression *arglist;
} funcall;
+ struct {
+ char *command;
+ struct expression *arglist;
+ int argc;
+ } execute;
struct fundef *func;
} data;
int flags;