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

32 Commits

Author SHA1 Message Date
Razvan Becheriu
c056162c99 [#2827] reverted src/share/api and updated script 2023-05-11 11:31:16 +03:00
Razvan Becheriu
96a63eb754 [#2786] fixed linker error 2023-05-10 16:29:02 +03:00
Razvan Becheriu
fa5492d4b7 [#2786] 255 bytes client_id and 130 bytes duid 2023-05-09 14:26:04 +03: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
Andrei Pavel
083dfcb218 Added #include <config.h> to all .cc files. 2016-12-14 16:15:52 +02:00
Thomas Markwalder
43ad2f493b [5058] - Addressed review comments
Fixed typos and added decline lease checks for DHCPv6

src/lib/dhcp/duid.h
src/lib/dhcp/duid.cc
src/lib/dhcp/tests/duid_unittest.cc
    - Replaced DUID::generateEmpty() with DUID::EMPTY() which returns
    a constant reference to a static DUID instance.  This facilitates
    comparisions.
    - Updated TEST(DuidTest,empty) accordingly

src/lib/dhcpsrv/csv_lease_file6.cc
    CSVLeaseFile6::next() - added test to permit the Empty DUID
    only if state is STATE_DECLINED.

src/lib/dhcpsrv/lease.cc
    Lease6::decline() - modified to use DUID::EMPTY().

src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
    Fixed Typos

src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
    TEST_F(CSVLeaseFile6Test, declinedLeaseTest) - new test to
    verify proper handling of declined leases
2016-11-01 11:00:29 -04:00
Wlodek Wencel
099dbc0931 [v1_1_0] Copyright dates update 2016-08-28 22:38:24 +02:00
Marcin Siodelski
7d93d78cda [4301] DUID and HWAddr classes use strutil to convert text to binary. 2016-04-06 15:00:12 +02:00
Marcin Siodelski
fe9dd86d20 [4236] Replaced license text in all files containing it. 2015-12-16 13:37:29 +01:00
Tomek Mrugalski
f96d8c9dd9 [3982] Changes after review
- Lease6::decline() implemented
 - DUID::generateEmpty() implemented
 - Unit-tests for Decline (not include address, not include IA_NA)
   implemented
 - several comments updated
 - logging corrected and reworded
2015-09-21 14:52:26 +02:00
Francis Dupont
d8e8164538 [3899] Merged strings 2015-06-23 19:50:03 +02:00
Francis Dupont
81e8899af2 [3899] Removed extra space in error message 2015-06-13 16:55:22 +02:00
Marcin Siodelski
33f53f5e23 [3560] Addressed review comments. 2014-10-17 15:49:18 +02:00
Marcin Siodelski
a3530098c8 [3560] Implemented rest of the functions in the Host class.
Also, added documentation to the Host class.
2014-10-10 20:42:18 +02:00
Marcin Siodelski
d78c00959f [3360] Addressed review comments. 2014-04-02 15:51:03 +02:00
Marcin Siodelski
21a15e9e50 [3360] Implemented the CSV lease file parser for DHCPv4. 2014-03-24 14:32:10 +01:00
Marcin Siodelski
fbae37a0d6 [3360] Implemented CSV parser for DHCPv6 leases. 2014-03-24 07:44:55 +01:00
Marcin Siodelski
338d7d58b4 [2940] Implemented Lease6::getDuidVector function and remove key extractors 2013-11-15 14:41:00 +01:00
Marcin Siodelski
3328fb3879 [2940] Addressed review comments. 2013-11-15 13:45:56 +01:00
Tomek Mrugalski
4972675716 [master] Merge branch 'trac2723' (too short/null DUIDs handing)
Conflicts:
	ChangeLog
	src/lib/dhcpsrv/mysql_lease_mgr.cc
2013-03-28 16:17:47 +01:00
Tomek Mrugalski
b312e9ab66 [2723] The code now gracefully refuses too short DUIDs and client-ids 2013-02-27 12:13:04 +01:00
Marcin Siodelski
86ac11a23c [2701] Added missing const to the function returning DUID. 2013-02-14 14:35:08 +01:00
Marcin Siodelski
e0c71421f1 [2701] Added missing const in the function getting client_id. 2013-02-13 18:20:44 +01:00
Stephen Morris
be90b92cbe [2524] Add ClientId::toText() functionality 2012-12-14 22:17:19 +00:00
Stephen Morris
d135a0e1f8 [2404] Minor changes to make files conform to programming style 2012-11-20 12:45:01 +00:00
Stephen Morris
3ba0299ad2 [2475] Put #include directives in correct order
Also fix some issues from the review.
2012-11-16 14:15:45 +00:00
Tomek Mrugalski
50c262d640 [2414] All outstanding changes after review. 2012-11-02 19:55:55 +01:00
Tomek Mrugalski
bd3faa6a3d [2414] DUID toText() implemented. 2012-10-30 18:22:50 +01:00
Tomek Mrugalski
a1983f4368 [2140] DUID no longer returns unsafe references, tests updated. 2012-10-10 19:28:09 +02:00
Tomek Mrugalski
01eb4277b9 [2140] ClientId class implemented and tested. 2012-09-12 20:39:07 +02:00
Tomek Mrugalski
5ff43d80fb [2140] DUID is now a separate class in separate files 2012-09-12 17:09:40 +02:00