2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

332 Commits

Author SHA1 Message Date
Razvan Becheriu
fecc912765 [#2474] fixed unittests for different compilation flags 2022-07-22 22:05:50 +03:00
Razvan Becheriu
1481a78d24 [#2474] fixed comments 2022-07-22 22:05:50 +03:00
Razvan Becheriu
fd22d21102 [#2474] added unittests which load and validate example files 2022-07-22 22:05:50 +03:00
Francis Dupont
06be19c83e [#2249] Checkpoint: doc to finish 2022-03-14 20:20:37 +02:00
Andrei Pavel
fac6fa357c [#1917] spelling corrections 2021-06-17 13:09:05 +00:00
Andrei Pavel
c53e135833
[#1656] 1.9.4 release: update copyrights 2021-01-25 13:52:09 +02:00
Andrei Pavel
96f049b111
[#1656] 1.9.4 release: spelling check 2021-01-25 13:52:09 +02:00
Francis Dupont
65b7546e32 [#1418] Updated v6 tests and doc 2021-01-11 16:05:46 +01:00
Andrei Pavel
e96c6a2a40
[#1602] remove duplicate includes 2020-12-30 15:55:05 +02:00
Francis Dupont
7c5455e5a6 [#1449] Fixed v6 appending multiple option instances 2020-12-02 11:35:21 +01:00
Razvan Becheriu
49b073f12d [#1434] addressed comments
- replaced all occurences to old_cltt and old_valid_lft in unittests
- renamed syncInternalTimestamp to syncExistingLifetime and changed order
of parameters
- renamed updateInternalTimestamp to updateExistingLifetime
- updated doxygen
- added extra check for all occurences of deleteLease (either call
EXPECT or ASSERT), and only use cast to void if explicitly specified
- updated ChangeLog
- updated old_cltt and old_valid_lft on fromElementCommon and added
unittests
- throw exception with different message on memfile with persitence
disabled for easier debugging
2020-10-22 17:46:43 +03:00
Razvan Becheriu
783f664204 [#1434] fixed unittests 2020-10-22 17:45:55 +03:00
Francis Dupont
3a0d60a502 [#1265] Removed the random index for subnets 2020-07-27 15:34:15 +03:00
Francis Dupont
a0a0a9160a [#553] Checkpoint: convert to use interface indexes 2020-07-07 12:47:26 +02:00
Michal Nowikowski
78233068df [#1098] adjusted code for release
- update copyright dates
- prepare messages files
- added release entry in ChangeLog file
2020-01-27 19:50:37 +01:00
Razvan Becheriu
01eba32f6a [1040] separated delete functions 2020-01-10 17:41:35 +02:00
Francis Dupont
47e709fb7b [677-kea4-not-honouring-the-p-switch] Improved -p support 2019-10-24 21:40:08 +02:00
Marcin Siodelski
9a7a92f1e9 [#755,!503] Address outstanding review comments.
This checks that selected packet statistics is set to 0 before the test.
2019-09-06 12:49:09 +02:00
Franciszek Gorski
3e5d57870f [755-Kea-DHCP-servers-observations-should-be-reset] resolve threads 2019-09-06 11:34:54 +02:00
Franciszek Gorski
b56fa9d491 [755-Kea-DHCP-servers-observations-should-be-reset-to-some-initial-values-upon-restart-or-reconfiguration] add initialization of all statistisc during set up 2019-09-06 11:34:54 +02: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
Francis Dupont
414281d9d6 [295-min-max-lease-time-configuration-options] Removed extra spaces 2019-06-22 10:05:24 -04:00
Francis Dupont
8d0f10e6fd [295-min-max-lease-time-configuration-options] Finished DHCPv6 server unit tests 2019-06-22 10:05:23 -04:00
Francis Dupont
f8436c44e9 [295-min-max-lease-time-configuration-options] Checkpoint: added DHCPv6 server tests - reuseExpiredLease missing 2019-06-22 10:05:23 -04:00
Thomas Markwalder
590446377e [#365,!296] Relaxed sanity checks
T2 may now be specified as any value >= 0, T1 must be less than T2.
This allows both values to exceed the valid life time.
2019-04-26 11:19:33 -04:00
Thomas Markwalder
239bbbb295 [#365,!296] Changed to use preferred lease time
doc/guide/dhcp6-srv.xml
    Updated to reflect the use to preferred life time vs valid life time

src/bin/dhcp6/dhcp6_srv.*
    Updated to use preferred lease time for tee time calculation
    Dhcpv6Srv::setTeeTimes() - updated to allow values to less than or
    equal, rathe than the just less than

src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
src/bin/dhcp6/tests/hooks_unittest.cc
src/bin/dhcp6/tests/tee_times_unittest.cc
    updated unit tests accordingly
2019-04-26 11:19:33 -04:00
Thomas Markwalder
7751303e32 [#365,!296] kea-dhcp6 calculates tee times
Server calcultates T1 & T2 when enabled.  Does not
include parser support for calculate-tee-times,
t1-percent, or t2-percent

src/bin/dhcp6/dhcp6_srv.*
    Dhcpv6Srv::setTeeTimes() - new method to
    calcualte T1 and T2

    Dhcpv6Srv::assignIA_NA()
    Dhcpv6Srv::extendIA_NA()
    Dhcpv6Srv::assignIA_PD()
    Dhcpv6Srv::extendIA_NA() - modified to call setTeeTimes()

src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
    TEST_F(Dhcpv6SrvTest, calculateTeeTimers)  - new test

src/bin/dhcp6/tests/hooks_unittest.cc
    Removed overriding of Lease::t1_ and t2_ from tests
2019-04-26 10:45:03 -04:00
Tomek Mrugalski
950d060129 [#464,!238] v6 vendor options moved to separate file 2019-02-19 12:15:37 +01:00
Francis Dupont
c25bbf2616 [82-improve-kea-test-capabilities] Added remote port to dhcp4/dhcp6/perfdhcp 2019-01-18 17:50:10 +01:00
Marcin Siodelski
cee51915c5 [288,!158] Changed references from RFC3315 to RFC8415 in the src code. 2018-12-06 08:20:09 -05:00
Tomek Mrugalski
a4545bb9fe [5646] Dedicated checks for truncated client-id, server-id added 2018-06-11 14:27:21 +02:00
Marcin Siodelski
78ad010b57 [5458] Eliminated extraneous Pkt6Ptr arguments in calls to processX funcs. 2018-04-27 11:52:45 +02:00
Francis Dupont
04fb2e4289 [5458a] Code done, tests to do 2018-04-20 01:09:31 +02:00
Francis Dupont
2a6049947a [master] Finishing merge of trac5404 (port relay) 2018-04-09 14:32:48 +02:00
Francis Dupont
955441318a [5404] Addressed comments and updated I-D references 2018-04-04 16:44:56 +02:00
Thomas Markwalder
b791aaefdf [5551] Addressed review comments
Added commentary, updated sub-options unpacking,
    and added support for skip logic to kea-dhcp6.

src/lib/dhcp/option.h
    Added detail to SkipRemainingOptionsError commentary

src/lib/dhcp/libdhcp++.cc
    LibDHCP::unpackVendorOptions4()
    LibDHCP::unpackVendorOptions6()

src/lib/dhcp/tests/pkt4_unittest.cc
    TEST_F(Pkt4Test, unpackVendorMalformed) - updated for
    new exception type

    TEST_F(Pkt4Test, truncatedVendorLength) - removed
    extraneous byte streams

src/lib/dhcp/tests/pkt6_unittest.cc
    TEST_F(Pkt6Test, unpackVendorMalformed) - updated for
    new exception type

    TEST_F(Pkt6Test, truncatedVendorLength) - new test for
    truncated vendor options

src/lib/dhcp/tests/pkt_captures.h
src/lib/dhcp/tests/pkt_captures.cc
    isc::dhcp::Pkt6Ptr captureSolicitWithVIVSO()
    isc::dhcp::Pkt6Ptr captureSolicitWithTruncatedVIVSO() -
    new captured packets

src/bin/dhcp6/dhcp6_messages.mes
    DHCP6_PACKET_OPTIONS_SKIPPED - new log message

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::processPacket() - added explicit catch of
    SkipRemainingOptionsError to allow processing the packet

src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
    TEST_F(Dhcpv6SrvTest, truncatedVIVSO) - new test to verify
    server's ability to handle SkipRemainingOptionsError
2018-03-06 10:00:45 -05:00
Francis Dupont
7d520c0588 [5404] Implemented DHCPv6 port relay 2017-12-20 02:42:11 +01:00
Francis Dupont
4d759e30e1 [5443] Checkpoint: updated DHCPv6 (todo hook tests) 2017-12-16 00:45:06 +01:00
Tomek Mrugalski
28558468b2 [5350] User contexts implemented for subnets. 2017-09-04 13:57:23 +02:00
Francis Dupont
4c7bf159bc [5241] wording 2017-08-07 09:46:54 +02:00
Tomek Mrugalski
71d40d828e [5241] Minor changes after review. 2017-08-02 19:58:15 +02:00
Francis Dupont
59410c4970 [5241] Added PRL vs always-true requested unit tests 2017-07-30 17:31:23 +02:00
Francis Dupont
44792ac441 [5241] Changed "persistent" into "always-send" 2017-07-28 16:12:56 +02:00
Francis Dupont
4650a92248 [5241] Added the function in DHCPv4 and 6 servers 2017-07-07 20:10:25 +02:00
Wlodek Wencel
9e3ca83d07 [v_1_2_0] copy right dates updated 2017-04-12 15:47:26 +02:00
Francis Dupont
19f02b83f7 [5093] Put the right comparison according to its comment 2017-01-09 18:17:41 +01:00
Tomek Mrugalski
3cd100455b [master] Merge branch 'trac5039' (SimpleParser)
# Conflicts:
#	src/bin/dhcp4/Makefile.am
#	src/bin/dhcp4/json_config_parser.cc
#	src/bin/dhcp6/Makefile.am
#	src/bin/dhcp6/dhcp6.dox
#	src/bin/dhcp6/json_config_parser.cc
#	src/bin/dhcp6/tests/Makefile.am
2016-12-27 19:25:31 +01:00
Tomek Mrugalski
65d187c0e6 [5039] Changes after review:
- address_family_, default ctor removed from two parsers
 - copyright year updated
 - Element::getNonConst is now documented
 - user's guide is now clear about csv-format default value is now true
2016-12-22 18:43:21 +01:00
Tomek Mrugalski
f9abab4bd0 [5014_phase2] SimpleParser implemented, 4 parsers converted
- SimpleParser concept implemented
 - Converted 4 parsers (option data, option data list, option defintion,
   option definition list)
 - updated unit-tests
 - converted other parsers (HostReservationParser{4,6}, ClientClassDefParser)
   to use those new parsers
 - converted kea-dhcp{4,6} to use those new parsers

Conflicts:
	src/bin/dhcp6/json_config_parser.cc
	src/lib/dhcpsrv/parsers/dhcp_parsers.cc
2016-11-29 20:09:14 +01:00
Francis Dupont
4204443ad1 [5014_phase2] Use Dhcp6 (vs JSON) parser as much as possible in unit tests 2016-11-29 19:58:37 +01:00