2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-06 00:45:23 +00:00
Commit Graph

22978 Commits

Author SHA1 Message Date
Francis Dupont
60ad1417a5 [master] Merged trac4060a (Kea multi-threaded) 2015-11-11 13:50:07 +01:00
Thomas Markwalder
f3e7cffe3d [4095] Implemented new classes for storing client class definitions
src/lib/dhcpsrv/client_class_def.cc
src/lib/dhcpsrv/client_class_def.h
src/lib/dhcpsrv/tests/client_class_def_unittest.cc
    New files that define client class storage classes and tests

src/lib/dhcp/classify.h
    Amended commentary to reflect how these classes are now being used.

src/lib/dhcp/option.h
    Added typedefs:
        boost::shared_ptr<Option> OptionPtr;
        boost::shared_ptr<OptionCollection> OptionCollectionPtr;

src/lib/dhcpsrv/Makefile.am
    Added entries for new files

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

src/lib/eval/token.h b/src/lib/eval/token.h
    Added typedef:
        boost::shared_ptr<Expression> ExpressionPtr;
2015-11-10 15:40:00 -05:00
Thomas Markwalder
91a4978e30 [3601] Addressed review comments, added ability to downgrade
Several minor cleanup items based on review comments.  Implemented
support for downgrading files from newer schema versions:

doc/guide/admin.xml
    amended text on upgrading memfile to discuss downgrading

src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/lease_file_loader.h
    revamped log messages to accomodate downgrading

src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/memfile_lease_mgr.h
    added commentary to MemfileLeaseMgr ctor
    automatic conversion logic accomdates both upgrading and downgrading

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    replaced tooManyHeaderColumns test with downGrade test

src/lib/util/csv_file.h
src/lib/util/csv_file.cc
    added CSVRow::trim()

src/lib/util/tests/csv_file_unittest.cc
    added CSVRow.trim test

src/lib/util/tests/versioned_csv_file_unittest.cc
    added VersionedCSVFileTest.currentSchemaTest test
    replaced tooManyHeaderColumns test with downGrading test
    revamped tests to check  getInputSchemaState() and needsConversion()

src/lib/util/versioned_csv_file.h
    Updated commentary to describe downgrade support

src/lib/util/versioned_csv_file.cc
    enum InputSchemaState
    input_schema_state_
    input_header_count_
    getInputHeaderCount()
    getInputSchemaState()
    needsConversion()

    next(CSVRow& row) - now supports downgrading rows
    validateHeder() -  now throws if called when no schema has been defined,
    and supports downgrading rows
2015-11-10 09:20:44 -05:00
Marcin Siodelski
a36e16def8 [4106] Added IPC tests for invalid number of DHCPv4 query options. 2015-11-10 14:18:55 +01:00
Marcin Siodelski
b9d837a1f8 [4106] Improved IPC handler functions for DHCPv4 and DHCPv6 server. 2015-11-10 14:04:46 +01:00
Marcin Siodelski
12bb372134 [4106] Additional checks on packet received over the IPC in the test. 2015-11-10 10:30:19 +01:00
Marcin Siodelski
424dc6fb65 [4106] Added unit test for the DHCPv6 IPC endpoint. 2015-11-10 10:05:56 +01:00
Marcin Siodelski
7c29cafaaa [4106] Implemented test for the DHCPv4 endpoint of DHCPv4o6 IPC. 2015-11-09 17:32:08 +01:00
Marcin Siodelski
e1441462a9 [4106] Test IPC class moved to a common library. 2015-11-09 16:36:40 +01:00
Marcin Siodelski
17713f39c3 [4106] Throw exception from IPC for out of range port. 2015-11-09 15:15:04 +01:00
Marcin Siodelski
7c43a3ebcf [4106] Represent DHCPv4o6 endpoint with enum. 2015-11-09 15:07:02 +01:00
Marcin Siodelski
0ceff3ccad [4106] Improved documentation of the base IPC class. 2015-11-09 14:43:21 +01:00
Francis Dupont
4730bc6494 [4088fd] Added number unit tests 2015-11-09 13:49:05 +01:00
Marcin Siodelski
36d3119433 [4106] Allow for transmitting vendor option in the DHCPv4o6 message. 2015-11-09 13:46:25 +01:00
Stephen Morris
68f02accb4 [3259] Changes after review
1. Updated Kea guide to note that removing the hooks-libraries
   configuration element does not always have the expected effect.
2. Moved some documentation from the dhcp_parsers.cc file to the .h file.
3. Expanded checking of the contents of the hooks-libraries configuration
   element.
2015-11-09 12:41:52 +00:00
Francis Dupont
b25f8ac286 [4088fd] Added more new unit tests 2015-11-09 13:19:14 +01:00
Francis Dupont
7e64f067b3 [4088fd] Added hexstring parsing unit tests 2015-11-09 13:03:13 +01:00
Marcin Siodelski
7097e81abe [4106] Added a set of tests for sending message over IPC. 2015-11-09 11:30:54 +01:00
Francis Dupont
29282dfa0f [4088fd] Assume the parser produces only well typed expressions trac4088fd_fulltyped 2015-11-06 14:08:09 +01:00
Francis Dupont
2760bbdf57 [4088fd] Split the syntax into untyped/typed trac4088fd_typed 2015-11-06 13:38:09 +01:00
Francis Dupont
65b1dd3dae [4088fd] Added some parser unit tests trac4088fd_untyped 2015-11-06 11:05:22 +01:00
Francis Dupont
92e9995c0e [4088fd] Fixed error handling trac4088fd_error 2015-11-06 09:29:44 +01:00
Francis Dupont
b15ab911e8 [4088fd] Added substring parsing 2015-11-06 07:49:54 +01:00
Francis Dupont
f09f3ea39c [4088fd] Fixed most of C++ problems trac4088fd_cpp 2015-11-06 07:29:41 +01:00
Francis Dupont
f18bc3cdb1 [4088fd] Renamed file to file_ 2015-11-06 04:00:23 +01:00
Francis Dupont
4c9be73b01 [4088fd] Regenerated flex/bison trac4088fd_option 2015-11-06 03:32:26 +01:00
Francis Dupont
c047539477 [4088fd] Moved option from scanner to parser 2015-11-06 03:31:53 +01:00
Francis Dupont
e9cca43872 [4088fd] Regenerated flex/bison trac4088fd_hexstring 2015-11-06 03:08:40 +01:00
Francis Dupont
18906ef111 [4088fd] Added hexstring support 2015-11-06 03:05:49 +01:00
Francis Dupont
6ad2a68b32 [4088fd] Regenerated flex/bison trac4088fd_namespace 2015-11-06 02:39:56 +01:00
Francis Dupont
67be085c5b [4088fd] Added new eval_context_decl.h include 2015-11-06 02:39:30 +01:00
Francis Dupont
7812831f01 [4088fd] [4088fd] Fixed namespace 2015-11-06 02:33:22 +01:00
Francis Dupont
f468584b23 [4088fd] [4088fd] Updated lexer.cc to flex 2.5.39 2015-11-06 02:27:11 +01:00
Francis Dupont
11bc4b3cfc [4088] Finished merge of trac4091 from master trac4088fd_base 2015-11-06 01:45:20 +01:00
Francis Dupont
88788b9f79 [master] Updated git hash trac4115_base 2015-11-05 23:40:42 +01:00
Francis Dupont
406153af95 [master] Finished merge of trac4091 (hex strings) 2015-11-05 23:37:26 +01:00
Francis Dupont
b9898e9e1d [master] Merged trac4091 (hex strings) 2015-11-05 23:35:24 +01:00
Francis Dupont
5c780bdd6e [4091] Changed to require at least one hexdigit 2015-11-05 23:32:15 +01:00
Francis Dupont
b957d9abfc [4088] spelling 2015-11-05 23:12:01 +01:00
Stephen Morris
c0173ba7b7 [4088] Miscellaneous edits to the developer documentation 2015-11-05 17:47:58 +00:00
Francis Dupont
d6178bcf6e [4088] Trivial fix to make it compile 2015-11-05 06:03:03 +01:00
Francis Dupont
7a4fd5ace0 [4088] Some trivial fixes 2015-11-05 05:46:24 +01:00
Francis Dupont
e15edffe3e [4094] Addressed comments (comments, complex test) 2015-11-05 03:32:00 +01:00
Francis Dupont
a496523c86 [4091] Addressed comments (0x prefix, deciding in constructor) 2015-11-05 02:39:28 +01:00
Francis Dupont
85a118414f [4091] Better odd check 2015-11-05 01:58:13 +01:00
Francis Dupont
e20f7d8334 [4091] Missed changes 2015-11-04 23:41:05 +01:00
Tomek Mrugalski
994efcca51 [4088] Exceptions added. 2015-11-05 00:43:56 +09:00
Tomek Mrugalski
e2896aa6b3 [4088] General smallish improvements in evaluation code 2015-11-05 00:34:12 +09:00
Tomek Mrugalski
06446ad17b [4088] Unnecessary makefile rule removed. 2015-11-04 23:29:08 +09:00
Tomek Mrugalski
b4c11fc8e8 [4088] Developer's guide written 2015-11-04 23:27:48 +09:00