diff options
author | Razvan Becheriu <razvan@isc.org> | 2022-09-12 08:08:47 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2022-10-24 19:49:34 +0200 |
commit | 033cc7bd7c2152da5a5d0de31d0b8526553c262e (patch) | |
tree | ddd0e6b483c980273d6edf4a6b66de479d69958f /src/bin/dhcp6/dhcp6_lexer.ll | |
parent | [#2604] Fixed whitespace in several files (diff) | |
download | kea-033cc7bd7c2152da5a5d0de31d0b8526553c262e.tar.xz kea-033cc7bd7c2152da5a5d0de31d0b8526553c262e.zip |
[#248] added template classes
Diffstat (limited to 'src/bin/dhcp6/dhcp6_lexer.ll')
-rw-r--r-- | src/bin/dhcp6/dhcp6_lexer.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll index 4476de9709..e9577eec15 100644 --- a/src/bin/dhcp6/dhcp6_lexer.ll +++ b/src/bin/dhcp6/dhcp6_lexer.ll @@ -1611,6 +1611,15 @@ ControlCharacterFill [^"\\]|\\["\\/bfnrtu] } } +\"template-class\" { + switch(driver.ctx_) { + case isc::dhcp::Parser6Context::CLIENT_CLASSES: + return isc::dhcp::Dhcp6Parser::make_TEMPLATE_CLASS(driver.loc_); + default: + return isc::dhcp::Dhcp6Parser::make_STRING("template-class", driver.loc_); + } +} + \"only-if-required\" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::CLIENT_CLASSES: |