2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00
Commit Graph

29511 Commits

Author SHA1 Message Date
Thomas Markwalder
5caea854fd [#805,!5-p] kea-dhcp6 now supports max-row-errors parameter
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_parser.yy
    Added max-row-errors

src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
    TEST_F(LeaseFileLoaderTest, maxRowErrors6) - new unit test
    to verify max-row-errors operation
2019-08-16 17:51:01 -04:00
Thomas Markwalder
331888d203 [#805,!5-p] Memfile and kea-dhcp4 now suppor max-row-errors parameter
src/bin/dhcp4/dhcp4_lexer.ll
src/bin/dhcp4/dhcp4_parser.yy
    Added max-row-errors

src/lib/database/database_connection.*
src/lib/database/dbaccess_parser.*
    Added max-row-errors

src/lib/database/tests/dbaccess_parser_unittest.cc
    New tests for max-row-errors

src/lib/dhcpsrv/lease_file_loader.h
    Changed logic value of 0 means unlimited

src/lib/dhcpsrv/memfile_lease_mgr.cc
    Memfile_LeaseMgr::loadLeasesFromFiles() - now uses
    connection parmater value for max-row-errors or 0
    if not specified

src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
    TEST_F(LeaseFileLoaderTest, maxRowErrors4) - new unit test
    to verify max-row-errors operation

src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
   TEST_F(MemfileLeaseMgrTest, constructor) - added tests for
   max-row-errors
2019-08-16 17:49:49 -04:00
Thomas Markwalder
1878553ab4 [#730,!2-p] Addressed review comments
Minor cleanup

ChangeLog
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/dhcp4_srv.cc
src/lib/dns/tests/name_unittest.cc
2019-08-16 16:52:25 -04:00
Thomas Markwalder
d1395c7a9a [#730,!2-p] Updated ChangeLog entry 2019-08-16 16:47:11 -04:00
Thomas Markwalder
0aa183b55c [#730,!2-p] Minor edit in ChangeLog entry 2019-08-16 16:45:12 -04:00
Thomas Markwalder
5e8600f0ae [#730,!2] Reworded ChangeLog entry 2019-08-16 16:45:12 -04:00
Thomas Markwalder
cbe4de7511 [#730,!2] Addressed review comment
src/lib/exceptions/isc_assert.h - clarified commentary
2019-08-16 16:45:12 -04:00
Thomas Markwalder
27fbe6f4bd [#730,!2] Addressed review comments
ChangeLog - added an entry

src/bin/dhcp4/tests/fqdn_unittest.cc
    TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) - added
    commentary

src/lib/exceptions/isc_assert.h
    commentary changes

src/lib/exceptions/tests/exceptions_unittest.cc
    TEST(IscThrowAssert, checkMessage) - replace use of explicit line number
2019-08-16 16:45:12 -04:00
Thomas Markwalder
9260b6d915 [#730,!2] Corrected assertion failure on malformed hostname from kea-dhcp4
src/lib/exceptions/isc_assert.h
    New file that defines isc_assert_throw()

src/lib/exceptions/Makefile.am
    added isc_asssert.h

src/lib/exceptions/tests/exceptions_unittest.cc
    TEST(IscThrowAssert, checkMessage) - new test

src/lib/dns/labelsequence.cc
src/lib/dns/name.cc
    Replaced assert() calls with isc_throw_assert() calls

src/lib/dns/tests/name_unittest.cc
    TEST_F(NameTest, unexpectedParseError) - new unit test
    for hostname option content based on fuzz test failure

src/lib/dhcp_ddns/ncr_msg.cc
    Removed unnecessary include of dns/name.h

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::processHostnameOption() - added try catch
    around OptionDataTypeUtil::getLabelCount() call

src/bin/dhcp4/dhcp4_messages.*
    added new log message DHCP4_CLIENT_HOSTNAME_MALFORMED

src/bin/dhcp4/tests/fqdn_unittest.cc
    TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) -
    renamed test and augmented it to include the packet of death
    produced by fuzz testing.
2019-08-16 16:43:10 -04:00
Thomas Markwalder
7fe5b82ae5 [#722,!1-p] Updated ChangeLog 2019-08-16 16:13:22 -04:00
Thomas Markwalder
bb1a64b894 [#722,!1] Addressed review comments
revamped Dhpc6srv::sanityCheckDuid() per review comments on
   1.4.0 version.
2019-08-16 16:12:00 -04:00
Thomas Markwalder
9812d23276 [#722,!2] Added ChangeLog Entry 2019-08-16 16:11:22 -04:00
Thomas Markwalder
b082880ca6 [#722,!1] Addressed review comments
Added test to ensure DUID size constant(s) are RFC compliant
2019-08-16 16:08:12 -04:00
Thomas Markwalder
afa16f63ea [#722,!1] Addressed review comments
src/lib/dhcp/duid.cc - improved log message
2019-08-16 16:08:12 -04:00
Thomas Markwalder
20b6386b52 [#722] kea-dhcp6 sanity checking of inbound DUID options improved
src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::sanityCheckDUID() - modified to attempt to construct
    a DUID instance as final sanity check

src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
    TEST_F(Dhcpv6SrvTest, sanityCheckClientId)
    TEST_F(Dhcpv6SrvTest, sanityCheckServerId) - revamped tests
    to check against max and max + 1

src/bin/dhcp6/tests/dhcp6_test_utils.h
    A little refactoring to ease option creation

src/lib/dhcp/duid.cc
    DUID::DUID(const std::vector<uint8_t>& duid)
    DUID::DUID(const uint8_t* data, size_t len) - updated
    error log to show actual sizes
2019-08-16 16:08:12 -04:00
Marcin Siodelski
cae7b2c906 [#841,!490] Added ChangeLog for #841. 2019-08-16 21:41:40 +02:00
Marcin Siodelski
55e902e1d6 [#841,!490] Corrected library version number for dhcp_ddns. 2019-08-16 15:39:13 -04:00
Marcin Siodelski
38217c2250 [#841,!490] Corrected libdhcpsrv library version number. 2019-08-16 15:39:13 -04:00
Marcin Siodelski
bfe96c36c9 [#841,!490] Bumped up libraries version numbers. 2019-08-16 15:39:13 -04:00
Tomek Mrugalski
2e88e25549 [#810,!471] AUTHORS, ChangeLog updated 2019-08-16 20:01:09 +02:00
Tomek Mrugalski
f1ae84186b [#810,!471] Changed title levels in hooks-*.rst files
- mostly --- to ~~~
2019-08-16 19:58:41 +02:00
Tomek Mrugalski
e90577743e [#810,!471] Compilation fixes in the API files 2019-08-16 19:11:03 +02:00
Suzanne Goldlust
ab2517b72c Edited header underlines to try to get all the hooks libraries at the same TOC level in the docs 2019-08-16 19:11:03 +02:00
Suzanne Goldlust
6b749afadd Fix JSON errors 2019-08-16 19:11:03 +02:00
Suzanne Goldlust
2891e28344 A few more text/formatting edits 2019-08-16 19:11:03 +02:00
Suzanne Goldlust
cb4a21545f Fix grammar, typos, a few JSON errors 2019-08-16 19:11:03 +02:00
Razvan Becheriu
581948124b [#810, !471] reverted changes added by mistake 2019-08-16 19:11:03 +02:00
Razvan Becheriu
fceb85995e [#810, !471] fixed sphinx docs 2019-08-16 19:11:03 +02:00
Razvan Becheriu
32d3953704 [#810, !471] fixed sphinx docs 2019-08-16 19:11:03 +02:00
Razvan Becheriu
71ec70431f [#810, !471] fixed sphinx docs 2019-08-16 19:11:03 +02:00
Suzanne Goldlust
295f81cb1f Fix JSON syntax errors, miscellaneous typos and grammatical errors in API docs 2019-08-16 19:11:03 +02:00
Razvan Becheriu
8ffc32fbb2 [#810, !471] fixed sphinx docs 2019-08-16 19:11:03 +02:00
Tomek Mrugalski
2703677d8a [#659,!387] ChangeLog updated. 2019-08-16 18:34:13 +02:00
Marcin Siodelski
1f2cae397b [#659,!387] Addressed two review comments.
- Return after finding the first pool.
- Corrected excluded prefix length stored in the db.
2019-08-16 17:47:34 +02:00
Marcin Siodelski
a4de989fdb [#659,!387] Update doc: excluded prefix is support for CB. 2019-08-16 17:47:34 +02:00
Marcin Siodelski
818100a6cc [#659,!387] Changed "fields" to "columns" in the MySQL creation script.
As a result of review.
2019-08-16 17:47:34 +02:00
Francis Dupont
ca939b3c01 [659-how-configure-client-class-for-pools-in-db] Reported dhcp[46] guide updates 2019-08-16 17:47:34 +02:00
Francis Dupont
32bcae557c [659-how-configure-client-class-for-pools-in-db] Addressed not doc comments 2019-08-16 17:47:34 +02:00
Francis Dupont
71f68b0273 [659-how-configure-client-class-for-pools-in-db] Post-rebase fixes 2019-08-16 17:47:34 +02:00
Francis Dupont
46c5692543 [659-how-configure-client-class-for-pools-in-db] Made getPool methods handle server selector 2019-08-16 17:47:34 +02:00
Francis Dupont
3cf37cd8b4 [659-how-configure-client-class-for-pools-in-db] Added tests 2019-08-16 17:47:34 +02:00
Francis Dupont
c0be63572b [659-how-configure-client-class-for-pools-in-db] Checkpoint: code done, todo new unit tests 2019-08-16 17:47:34 +02:00
Tomek Mrugalski
cf2967fb8f [#837,!487] all-keys-{current,stable} renamed 2019-08-16 11:01:28 -04:00
Michal Nowikowski
ee9fe18ee1 sphinx docs: increased recursion level limit 2019-08-16 14:28:40 +02:00
Wlodek Wencel
d8ddef751e [#654] extended perfdhcp output when no packets received 2019-08-16 12:04:29 +02:00
Tomek Mrugalski
3aa4c82fde [#625,!485] Fixed detection of log4plus in non-standard location 2019-08-15 16:27:36 -04:00
Tomek Mrugalski
eea19ad17c [#625,!485] Fixed conditional intialization detection for log4cplus 2019-08-15 16:27:36 -04:00
Tomek Mrugalski
3abda71b1d [#625,!485] Conditional explicit initialization done. 2019-08-15 16:27:36 -04:00
Tomek Mrugalski
bb9d894b69 [#625,!485] Explicit log4cplus initialization by @tcely
Imported from commit apline linux PR#8011:
  https://github.com/alpinelinux/aports/pull/8011
2019-08-15 16:27:36 -04:00
Tomek Mrugalski
7729a3300b [#496,!483] ChangeLog updated. 2019-08-15 21:21:56 +02:00