2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

22653 Commits

Author SHA1 Message Date
Francis Dupont
e58c97a735 [4203] Removed the unreachable exit 2015-11-19 00:05:08 +01:00
Thomas Markwalder
02f6c505d1 [4096] Merge branch 'master' into trac4096
Eval library now supports actual parsing.  Need to use it
    in class definition's ExpressionParser.
2015-11-18 15:10:13 -05:00
Thomas Markwalder
668ec9e68f [4096] Addressed review comments
src/bin/dhcp4/tests/config_parser_unittest.cc
src/bin/dhcp6/tests/config_parser_unittest.cc
src/lib/dhcpsrv/client_class_def.h
    Fixed spellings and spacing.

src/lib/dhcpsrv/Makefile.am
src/lib/dhcpsrv/tests/Makefile.am
    Move eval lib up in the link order
2015-11-18 15:04:55 -05:00
Francis Dupont
5bb87b1ef4 [4096] speliing 2015-11-18 17:29:36 +01:00
Francis Dupont
5a456a9009 [4096] spaces & spelling 2015-11-18 16:48:03 +01:00
Francis Dupont
5e3af86871 [4096] Added a space for readability 2015-11-18 16:32:15 +01:00
Tomek Mrugalski
8528c46fe3 [3990] User's guide now explains how Decline support works. 2015-11-18 16:31:20 +01:00
Francis Dupont
92aff79502 [4096] Added a space for readability 2015-11-18 16:30:50 +01:00
Francis Dupont
dd9843b528 [4096] spelling 2015-11-18 16:15:44 +01:00
Marcin Siodelski
965e203220 [3874] Described configuration of the server identifier in the User Guide. 2015-11-18 14:18:46 +01:00
Thomas Markwalder
ab2bcf4e9b [master] Added Changelog entry 1050 for #4117. trac4203_base 2015-11-18 07:27:27 -05:00
Thomas Markwalder
034c1c95b5 [master] Swapped ncr-protocol and ncr-format descriptions in Kea Admin Guide
Merged in branch 'trac4117'
2015-11-18 07:09:43 -05:00
Francis Dupont
fa1e32d952 [master] Finished merge of trac4094 (class evaluator) 2015-11-18 09:52:21 +01:00
Marcin Siodelski
2a47967c6f [3874] Fixed string type in open() functions. 2015-11-17 22:07:00 +01:00
Thomas Markwalder
b260200e6f [4096] Move libeval up in lib/Makefile.am
Now that libdhcpsrv depends on libeval, eval must be built first.
2015-11-17 14:33:50 -05:00
Marcin Siodelski
45d78a3d84 [3874] Use generated server identifier in the server. 2015-11-17 20:31:51 +01:00
Marcin Siodelski
93a91c8a9f [3874] Reuse existing DUID if not explicitly specified. 2015-11-17 20:31:51 +01:00
Marcin Siodelski
e5cdb3410b [3874] Use DUID configuration parser in the global configuration. 2015-11-17 20:31:51 +01:00
Marcin Siodelski
9179255412 [3874] Create DUID using the specified configuration. 2015-11-17 20:31:51 +01:00
Marcin Siodelski
a2329d1743 [3874] Added DUID configuration parser. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
fe5f2029df [3874] Added storage class for DUID configuration. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
6172b66dea [3874] Added example configuration for setting up DUID. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
9fac2d5301 [3874] Added DUID configuration to the DHCPv6 server spec. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
3c5e3548bd [3874] Use DUIDFactory class in the DHCPV6 server code. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
8f09433904 [3874] Implemented generation of DUID-EN and DUID-LL. 2015-11-17 20:31:50 +01:00
Marcin Siodelski
d8470a1407 [3874] Added DUID factory class in libdhcp++. 2015-11-17 20:31:50 +01:00
Thomas Markwalder
db990992e4 [4096] kea-dhcp6 now parses client class definitions list
src/bin/dhcp6/json_config_parser.cc
        - createGlobalDhcp6ConfigParser() - creates ClientClassDefListParser
        for "client-classes" element
        - configureDhcp6Server() - runs the ClientClassDefListParser against
        the "client-classes" element

    src/bin/dhcp6/tests/config_parser_unittest.cc
        Added new tests for parsing client class definitions:
        TEST_F(Dhcp6ParserTest, clientClassDictionary)
        TEST_F(Dhcp6ParserTest, invalidClientClassDictionary)

    src/bin/dhcp6/dhcp6.spec
        Added global "client-classes" element
2015-11-17 13:46:02 -05:00
Thomas Markwalder
a419556f01 [4096] kea-dhcp4 now parses client class definitions list
src/bin/dhcp4/json_config_parser.cc
    - createGlobalDhcp4ConfigParser() - creates ClientClassDefListParser
    for "client-classes" element
    - configureDhcp4Server() - runs the ClientClassDefListParser against
    the "client-classes" element

src/bin/dhcp4/tests/config_parser_unittest.cc
    Added new tests for parsing client class definitions:
    TEST_F(Dhcp4ParserTest, clientClassDictionary)
    TEST_F(Dhcp4ParserTest, invalidClientClassDictionary)

src/bin/dhcp4/dhcp4.spec
    Added global "client-classes" element
2015-11-17 13:28:40 -05:00
Thomas Markwalder
559c0a696a [4096] Added client class dictionary to SrvConfig
src/lib/dhcpsrv/parsers/client_class_def_parser.cc
    ClientClassDefListParser::commit() - pushes the newly built local
    dictionary to CfgMgr staging

src/lib/dhcpsrv/srv_config.h
src/lib/dhcpsrv/srv_config.cc
    Added client class dictionary member to SrvConfig

src/lib/dhcpsrv/tests/client_class_def_parser_unittest.cc
    TEST_F(ClientClassDefListParserTest, simpleValidList) - now
    verifies that ClientClassDefListParser::commit() pushes its
    local dictionary to CfgMgr staging.

src/lib/dhcpsrv/tests/srv_config_unittest.cc
    Added support to test new client class dictionary member
2015-11-17 10:53:05 -05:00
Thomas Markwalder
87ed3316ec [4096] Added copy constructors and equality tools to client class storage
In anticipation adding client class storage to SrvConfig:

src/lib/dhcpsrv/client_class_def.h
src/lib/dhcpsrv/client_class_def.cc
    added copy contructor, equals() method, ==, != operators
    To ClientClassDef and ClientClassDictionary

src/lib/dhcpsrv/tests/client_class_def_unittest.cc
    Added copyAndEquality tests for ClientClassDef and
    ClientClassDictionary
2015-11-17 09:07:54 -05:00
Francis Dupont
c4557eef26 [master] Updated git hash 2015-11-17 14:41:25 +01:00
Francis Dupont
18321bf85f [master] Finished merge of trac4125 (parser build) 2015-11-17 14:40:45 +01:00
Francis Dupont
f4bf83b15c [master] Merge trac4125 (parser build) 2015-11-17 14:30:35 +01:00
Thomas Markwalder
dd80413a61 [4096] Added parsers for client class definitions
New Files:
    parsers/client_class_def_parser.cc
    parsers/client_class_def_parser.h
    tests/client_class_def_parser_unittest.cc

src/lib/dhcpsrv/parsers/Makefile.am
    Added entries for new files
    Added EXTRA_DIST entries for several files that were missing.

src/lib/dhcpsrv/parsers/dhcp_parsers.h
    Added typedef for OptionDataListParserPtr

src/lib/dhcpsrv/tests/Makefile.am
    Added entries for new unitest file

src/lib/dhcpsrv/tests/client_class_def_unittest.cc
    Fixed broken unit test TEST(ClientClassDef, cfgOptionBasics)
2015-11-16 13:29:38 -05:00
Francis Dupont
809dc82912 [4125] Updated *.hh timestamps 2015-11-15 06:54:06 +01:00
Francis Dupont
2c39600ea5 [4125] Fixed variable init (BTW a false positive as ctx.error throws) 2015-11-14 21:54:29 +01:00
Francis Dupont
14e1063618 [4125] Made the parser target dependent on --enable-generate-parser 2015-11-14 20:17:01 +01:00
Francis Dupont
eca58144d4 [4201] Second attempt with a better fix 2015-11-14 19:35:40 +01:00
Francis Dupont
1e9e05b085 [master] Added *.hh files as sources 2015-11-14 19:18:38 +01:00
Francis Dupont
f3791f1bb3 [4201] Fixed DISTCHECK_CRYPTO_CONFIGURE_FLAG for Botan 2015-11-14 18:40:06 +01:00
Francis Dupont
e1e91c6c05 [master] Restored *.hh timestamps trac4201_base 2015-11-14 15:28:01 +01:00
Francis Dupont
bca9b3cf72 [master] Changed *.hh timestamps 2015-11-14 15:27:30 +01:00
Francis Dupont
e2ec18f60b [master] Minor fix to configure.ac 2015-11-14 15:23:00 +01:00
Francis Dupont
ac04c52815 [master] Updated git hash 2015-11-14 15:10:58 +01:00
Francis Dupont
ac9eb312bf [master] Finished merge of trac4088 (client classification expression parser) 2015-11-14 15:09:06 +01:00
Francis Dupont
7058a4085d [master] Merged trac4088 (client classification expression parser) 2015-11-14 15:06:22 +01:00
Francis Dupont
ac00ace4dd [4088] Merged trac4088fd private branch 2015-11-14 15:03:35 +01:00
Francis Dupont
81ab4ec703 [4088fd] Added a generated date comment to avoid the "no commit because unchanged" #4125 issue 2015-11-14 08:39:27 +01:00
Francis Dupont
8197502648 [4094] Changed EvalNotBoolError to shared EvalTypeError 2015-11-13 23:21:13 +01:00
Francis Dupont
ef5973b564 [4121] Cloned LibDHCP::packOptions and improved the v4 version 2015-11-13 22:02:04 +01:00