summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2009-07-06 23:29:52 +0000
committerDavid Hankins <dhankins@isc.org>2009-07-06 23:29:52 +0000
commit33ea4622a865e0cc545c7d89d2b222e1198e9ac3 (patch)
treec5284ed5b090a669eed653156743f446ebcf78cf /includes
parent8ef5db715e202470cece3c62750aafe5a475594b (diff)
downloadisc-dhcp-33ea4622a865e0cc545c7d89d2b222e1198e9ac3.tar.gz
- Added a configuration function, 'gethostname()', which calls the system
function of the same name and presents the results as a data expression. This function can be used to incorporate the system level hostname of the system the DHCP software is operating on in responses or queries (such as including a failover partner's hostname in a dhcp message or binding scope, or having a DHCP client send any system hostname in the host-name or FQDN options by default). [ISC-Bugs #17351]
Diffstat (limited to 'includes')
-rw-r--r--includes/dhctoken.h3
-rw-r--r--includes/tree.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/includes/dhctoken.h b/includes/dhctoken.h
index 01ed1303..d47506a0 100644
--- a/includes/dhctoken.h
+++ b/includes/dhctoken.h
@@ -355,7 +355,8 @@ enum dhcp_token {
FIXED_PREFIX6 = 658,
ANYCAST_MAC = 659,
CONFLICT_DONE = 660,
- AUTO_PARTNER_DOWN = 661
+ AUTO_PARTNER_DOWN = 661,
+ GETHOSTNAME = 662
};
#define is_identifier(x) ((x) >= FIRST_TOKEN && \
diff --git a/includes/tree.h b/includes/tree.h
index e7bde430..9c37bcc5 100644
--- a/includes/tree.h
+++ b/includes/tree.h
@@ -197,7 +197,8 @@ enum expr_op {
expr_ucase,
expr_lcase,
expr_regex_match,
- expr_iregex_match
+ expr_iregex_match,
+ expr_gethostname
};
struct expression {