summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2015-05-21 13:38:11 -0700
committerShawn Routhier <sar@isc.org>2015-05-21 13:38:11 -0700
commitdcf37207b650b258cb38260465bcc2e91881a1a1 (patch)
tree888314f1c5975598572b20868890ff96217e3786 /common
parent3a6a84cbb3410ebc5c3dbed086e0f4c017016486 (diff)
downloadisc-dhcp-dcf37207b650b258cb38260465bcc2e91881a1a1.tar.gz
[v4_1_esv] Allow the ADD token to be used as a hex string in IPv6 address
Allow the ADD token to be used as a hex string in IPv6 address
Diffstat (limited to 'common')
-rw-r--r--common/parse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/parse.c b/common/parse.c
index 1407cdb0..50c363b7 100644
--- a/common/parse.c
+++ b/common/parse.c
@@ -384,10 +384,11 @@ parse_ip6_addr(struct parse *cfile, struct iaddr *addr) {
*/
v6_len = 0;
for (;;) {
- if ((((token == NAME) || (token == NUMBER_OR_NAME)) &&
+ if ((((token == NAME) || (token == NUMBER_OR_NAME)) &&
is_hex_string(val)) ||
- (token == NUMBER) ||
- (token == DOT) ||
+ (token == NUMBER) ||
+ (token == TOKEN_ADD) ||
+ (token == DOT) ||
(token == COLON)) {
next_raw_token(&val, NULL, cfile);