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

22338 Commits

Author SHA1 Message Date
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
751b714cfa [4088fd] Changed the syntax to unquote integers 2015-11-13 16:53:23 +01:00
Francis Dupont
f2021d663a [4088fd] Added protection against integer overflow trac4088fd_before_unquote 2015-11-13 16:16:23 +01:00
Thomas Markwalder
ceda1e2cd9 [4096] ClientClassDef now stores CfgOption not OptionCollection
The initial choice for storing options as an OptionCollection
in the ClientClassDef was incorrect.  They are now stored within
a CfgOption which is symmetrical with how they are stored globally
and in subnets.
2015-11-13 10:16:11 -05:00
Francis Dupont
01b370bd9d [4088fd] cleanup grammar (indent, no untyped) 2015-11-13 16:01:32 +01:00
Thomas Markwalder
645a757e70 [4117] Fixed ncr-protocol/ncr-format doc in admin guide
Descriptions of the two parameters, ncr-protocol and ncr-format
were swapped in three places (but hey, we were consistent!):

    doc/guide/ddns.xml
    doc/guide/dhcp4-srv.xml
    doc/guide/dhcp6-srv.xml
2015-11-12 11:05:10 -05:00
Stephen Morris
d719ccdf4c [master] ChangeLog for trac3259 trac4121_base 2015-11-12 12:50:53 +00:00
Stephen Morris
b2986b0b02 [master] Merge branch 'trac3259' 2015-11-12 12:48:30 +00:00
Francis Dupont
8d77665fab [master] Merge branch 'master' of ssh://git.kea.isc.org/git/kea 2015-11-11 22:55:38 +01:00
Francis Dupont
db57e8b01f [master] Trivial comment fix 2015-11-11 22:55:18 +01:00
Thomas Markwalder
797fada965 [master] Added ChangeLog entry 1046 for #3601 2015-11-11 15:24:43 -05:00
Thomas Markwalder
5810e81a21 [master] Removed periods from log messages
src/lib/dhcpsrv/dhcpsrv_messages.mes
2015-11-11 15:19:38 -05:00
Thomas Markwalder
ce4b0e42e8 [master] MemfileLeaseMgr now supports upgrading/downgrading lease files
Merged in branch 'trac3601'
2015-11-11 14:58:12 -05:00
Thomas Markwalder
71e6ef8777 [3601] More review comments
Minor log message and comment wording
2015-11-11 14:55:57 -05:00
Thomas Markwalder
ec133bf6ec [master] Added ChangeLog entry 1045 for #4095 trac4097_base 2015-11-11 11:23:44 -05:00
Francis Dupont
b233a68984 [4088fd] Removed unused File functions 2015-11-11 17:13:54 +01:00
Thomas Markwalder
1039a94245 [master] Added client class storgae classes to libdhcpsrv
Merged in #4095.
2015-11-11 11:05:28 -05:00
Francis Dupont
894bf2cf34 [master] Added a check on rcode avoiding unused errors 2015-11-11 17:02:12 +01:00
Francis Dupont
d80ac51e6f [4095] reindent 2015-11-11 16:21:04 +01:00
Francis Dupont
bb4d313b15 [4095] spelling & co 2015-11-11 16:11:15 +01:00
Francis Dupont
53754baaea [4095] spelling 2015-11-11 16:01:01 +01:00
Thomas Markwalder
2023588f8a [3601] Addressed additional review comments
doc/guide/admin.xml
src/lib/dhcpsrv/dhcpsrv_messages.mes
src/lib/dhcpsrv/lease_file_loader.h
    minor clean up, typos

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    removed unnecessary use of scoped_ptr

src/lib/util/csv_file.cc
    CSVRow::trim() - replaced use of std::vector<>::erase with resise

src/lib/util/versioned_csv_file.h
src/lib/util/versioned_csv_file.cc
    VersionedCSVFile::next() - reorganized to use input_schema_state_
    VersionedCSVFile::columnCountError() - new convenience method
    minor cleanups
2015-11-11 09:59:40 -05:00
Francis Dupont
6561e8f895 [master] Updated git hash (forgotten) 2015-11-11 15:56:56 +01:00
Francis Dupont
6ae4da980b [4088fd] Moved option code range check to the parser, freeing INTEGER tokens 2015-11-11 15:33:00 +01:00
Stephen Morris
a0fe616b62 [master] Merge remote-tracking branch 'github/master'
Merged in change made to GitHub for ticket trac4111.
2015-11-11 14:08:25 +00:00
Francis Dupont
4c130bd7c8 [master] Finished merge of trac4060a (Kea multi-threaded) 2015-11-11 13:52:55 +01:00
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
Francis Dupont
4730bc6494 [4088fd] Added number unit tests 2015-11-09 13:49:05 +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
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