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

35921 Commits

Author SHA1 Message Date
Thomas Markwalder
51d67d63a4 [#3209] Updated copyrights 2024-02-07 13:58:47 +00:00
Thomas Markwalder
06fc63c9f5 [#3209] Remove internal bool vectors
src/lib/util/encode/encode.cc
    BaseNEncoder::encode()
    BaseNEncoder::decode() - eliminate use of bool vectors
    as "bit streams"
2024-02-07 13:58:47 +00:00
Thomas Markwalder
6949dd94a3 [#3209] Created new BaseNEncoder class
src/lib/util/encode/encode.h
src/lib/util/encode/encode.cc
    Reworked into new BaseNEncoder class and derivatives

src/lib/util/tests/Makefile.am
    Removed obsolete test files
    added new file encode_unittest.cc

new file:   src/lib/util/tests/encode_unittest.cc
deleted:    src/lib/util/tests/base32hex_unittest.cc
deleted:    src/lib/util/tests/base64_unittest.cc
deleted:    src/lib/util/tests/hex_unittest.cc
2024-02-07 13:58:47 +00:00
Thomas Markwalder
b75e0f4c50 [#3209] Initial commit
Rewrote encoding/decoding.

src/lib/util/Makefile.am
    Removed old files, added encode.cc, encode.h

src/lib/util/encode/encode.*
    New implemenentation encoding and decoding not based
    on boost.
2024-02-07 13:58:47 +00:00
Francis Dupont
02e7cb272b [#2022] Added PARK status handle 2024-02-05 08:57:37 +01:00
Francis Dupont
89a34eef90 [#2022] Finished RADIUS v6 server code 2024-02-05 08:57:37 +01:00
Francis Dupont
3b9cecff5f [#2022] Reorganized v6 code 2024-02-05 08:57:36 +01:00
Wlodek Wencel
6626e68696 [#3240] version in configure.ac changed to 2.5.6-git 2024-01-31 12:34:04 +01:00
Wlodek Wencel
c330651b75 [#3237] release changes Kea-2.5.5 2024-01-29 13:23:00 +01:00
Wlodek Wencel
783bc34daf [#3237] release changes 2024-01-29 13:11:19 +01:00
Wlodek Wencel
416a072394 [#3237] release changes 2024-01-29 10:17:26 +01:00
Andrei Pavel
a146a119a9
[#2788] add RAII struct for exhausting options 2024-01-26 19:47:41 +02:00
Andrei Pavel
c3507ebf21
[#2788] reset optarg
optarg is not reset in musl's getopt and it leaks values to other flags.
Reset it for all systems because it cannot hurt. If you remove the
optarg reset, you should see the bug in action on alpine systems in
DstubControllerTest.commandLineArgs when parsing argv2:
```
[ RUN      ] DStubControllerTest.commandLineArgs
d_controller_unittests.cc:102: Failure
Expected equality of these values:
  std::string(ex.what())
    Which is: "unsupported option: -b cfgName"
  "unsupported option: -b"
[  FAILED  ] DStubControllerTest.commandLineArgs (14 ms)
```
2024-01-26 19:47:41 +02:00
Andrei Pavel
697e9fad40
[#2788] exhaust options before throwing error
Prior to this change, if parseArgs() was called twice during the same
program lifetime and it stumbled on an unsupported option and throwed an
exception on the first call, the previous set of arguments lived on to
be parsed by the second call. This is a situation that likely arises
only in unit tests, but let us fix it properly to at least silence the unit
test failure on alpine, which was happening because of different
implementation of getopt from musl, and which motivated looking into how
getopt behaves. To make the bug evident even in a non-alpine environment, add an
EXPECT_THROW_MSG in DStubControllerTest.commandLineArgs when parsing argv3, and
see that it outputs "unsupported option: [s]" instead of
"extraneous command line information".
2024-01-26 19:47:41 +02:00
Andrei Pavel
f6bf9f925b
[#2788] make all commandLineArgs tests more strict 2024-01-26 19:47:41 +02:00
Razvan Becheriu
a264e33224 [#3235] bump up library versions for 2.5.5 release 2024-01-26 14:59:07 +02:00
Razvan Becheriu
72340c0684 [#1790] updated list of CB parameters 2024-01-26 14:37:02 +02:00
Razvan Becheriu
4df43596e1 [#1790] added ChangeLog entry 2024-01-26 14:25:58 +02:00
Razvan Becheriu
063be34a9d [#1790] added parameters to ARM 2024-01-26 14:19:54 +02:00
Razvan Becheriu
7d3fb3d81c [#1790] addressed review comments 2024-01-26 14:19:54 +02:00
Razvan Becheriu
48a4661d36 [#1790] added UTs 2024-01-26 14:19:54 +02:00
Razvan Becheriu
e6d1fd5179 [#1790] add tool to parse CB parameters 2024-01-26 14:19:54 +02:00
Razvan Becheriu
a48e9ee568 [#1790] add support for top level maps in global CB parameters 2024-01-26 14:19:54 +02:00
Andrei Pavel
4d04d9169b
[#3198] add ChangeLog entry 2024-01-26 12:48:18 +02:00
Andrei Pavel
84bd162648
[#3198] add tests for empty yang option data 2024-01-26 12:48:18 +02:00
Andrei Pavel
b37853da57
[#3198] add expectEqWithDiff to testutils 2024-01-26 12:48:18 +02:00
Andrei Pavel
3f7e8d65e0
[#3198] fix reinstall.sh for YANG modules 2024-01-26 12:48:18 +02:00
Andrei Pavel
b10991e563
[#3198] change --edit to --import in docs
to avoid ambiguities caused by the merge operation in sysrepocfg --edit
2024-01-26 12:48:18 +02:00
Andrei Pavel
d87a3e0f05
[#3198] ignore errors when regenerating hashes
The script complains about hashes missing, but that is only temporary until they
are regenerated. A second call to check-hashes.sh will now properly check them
at the end.
2024-01-26 12:48:18 +02:00
Andrei Pavel
2f0dd250cc
[#3198] bump up revisions for YANG modules 2024-01-26 12:48:18 +02:00
Andrei Pavel
11de31d8ba
[#3198] make data a key for option-data in code
- Add ability to set list element that only has keys in Translator::setItem.
- Explicitly set list elements in case they contain only keys which can
  be more common now that data is a key since it is likely one can have
  entries that only have code, space, and data.
- Handle no data as empty data when setting, and empty data as no data
  when getting. This avoids the need to add an empty "data" element to
  all options that lack it in all-options.json so that the unit tests
  pass. But this goes to show that data-less entries may be encountered
  in production as well, so more importantly this caters to that
  scenario.
- Adjust data in kea4/all-options.json to not contain singlequotes.
  There was only one occurrence of it. This is a limitation related
  to unit testing only. Opened issue 3216 about it.
- Add missing tests that are not strictly related to the data key, but
  they are related to option data:
  - TranslatorOptionDataListTestv6.getEmpty
  - TranslatorOptionDataListTestv4.get
  - TranslatorOptionDataListTestv6.setEmpty
  - TranslatorOptionDataListTestv4.set
- Add unit tests:
  - TranslatorOptionDataListTestv4.optionsSameCodeAndSpace
  - TranslatorOptionDataListTestv6.optionsSameCodeAndSpace
- Add snippet that tests setting of list element with keys only in
  TranslatorTest.setItem.
2024-01-26 12:48:18 +02:00
Andrei Pavel
5202cd149b
[#3198] add data as key for option-data in YANG modules
Setting mandatory for keys is redundant as mentioned in RFC 7950 section
7.8.2: Any "mandatory" statements in the key leafs are ignored.

So they were removed. This now makes it consistent with how data is
declared in option-data as well.
2024-01-26 12:46:36 +02:00
Andrei Pavel
223dc3aad3
[#3229] hammer.py prepare-system --just-configure 2024-01-26 11:02:14 +02:00
Andrei Pavel
fe4fdcc8d9
[#3123] add documentation for the peer-updates flag in radius 2024-01-25 10:14:03 +02:00
Razvan Becheriu
1b4d7b0293 [#3119] use range based for loop or BOOST_FOREACH 2024-01-22 17:49:59 +02:00
Razvan Becheriu
72f330320b [#3119] replace const auto with auto const 2024-01-22 17:33:26 +02:00
Razvan Becheriu
54dd674d0d [#3119] use auto const& whenever possible 2024-01-22 17:33:26 +02:00
Francis Dupont
1eb9c75f3f [#3119] Fixed some coverity reported defects 2024-01-22 17:33:26 +02:00
Piotrek Zadroga
78acb9cec0 [#3119] static cast time_t to uint32 2024-01-22 17:33:26 +02:00
Piotrek Zadroga
ff39af2b08 [#3119] correct auto in for-loops 2024-01-22 17:33:26 +02:00
Francis Dupont
107be4be7a [#3149] Rewrote getLeases6ByLink 2024-01-17 11:16:47 +01:00
Francis Dupont
5d23ed25f5 [#3149] Addressed comments 2024-01-17 11:06:16 +01:00
Francis Dupont
d84201cb87 [#3149] Added testGetLeases6SubnetIdPaged 2024-01-17 11:06:16 +01:00
Francis Dupont
511e9c43a4 [#3149] Moved to getLeases6 overload 2024-01-17 11:06:16 +01:00
Francis Dupont
7c84c8e880 [#3149] Simplified getLinks 2024-01-17 11:06:16 +01:00
Francis Dupont
032a8ad465 [#3149] Rewrote getLeases6ByLink 2024-01-17 11:06:16 +01:00
Francis Dupont
d73fc1466d [#3149] Fixed mysql admin tests 2024-01-17 09:48:36 +01:00
Francis Dupont
853961f402 [#3149] Removed old version tests 2024-01-17 09:48:36 +01:00
Francis Dupont
acb7102937 [#3149] Moved admin tests to last versions 2024-01-17 09:48:36 +01:00
Francis Dupont
02a49c0e7d [#3149] Added a new index 2024-01-17 09:48:36 +01:00