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

35921 Commits

Author SHA1 Message Date
Andrei Pavel
6bfbdab033
[#3025] fix ProcessSpawn on BSD
- Always break after collecting exit status. Previously it broke the
  loop always on failure of waitpid which does happen after calling it
  subsequently, but there is no reason to wait until then.
- When waitpid returns -1 in sync mode, throw exception, except for
  EINTR which happens on signals (usually one time) prior to
  the child process exiting if sigaction is called without SA_RESTART
  which is the default on some systems.
- Only initialize the global IO signal set on the IO service in async
  mode. It makes no sense to do it in sync mode because there is no IO service.
- Swap pid and wpid names to conform to names in `man wait` on BSD.
- Add FAIL() on timer expiration.
- Don't call runOne() the third time in unit tests because it waits for
  the timer to expire.
2024-02-23 20:01:00 +02:00
Piotrek Zadroga
a91ebc6e7b [#3141] addressed review comments
- Mostly further corrections in ARM docs and in comments.
2024-02-23 17:14:41 +01:00
Piotrek Zadroga
a1c57f3f73 [#3141] addressed review comments
- refactored code of SvcParam config parser
- added new 2 UTs
- added some more comments in code
2024-02-23 17:14:41 +01:00
Piotrek Zadroga
58e0d08571 [#3141] addressed review comments
- Rephrased some text in ARM docs.
- Added new text to ARM docs.
2024-02-23 17:14:41 +01:00
Piotrek Zadroga
1a9816a515 [#3141] fix compilation error 2024-02-23 17:14:41 +01:00
Piotrek Zadroga
fd8c8d8dba [#3141] ChangeLog entry 2024-02-23 17:14:39 +01:00
Piotrek Zadroga
253d7b000b [#3141] ARM docs updated 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
34048888ca [#3141] delete excessive dnr.json examples 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
1cb50df248 [#3141] json examples update 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
4925255f45 [#3141] restore delimiter escaping 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
366d886f5a [#3141] provide RFC in comments 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
119c973761 [#3141] DNRv4 UTs edited 2024-02-23 17:14:06 +01:00
Piotrek Zadroga
dd77131622 [#3141] option definition UTs fix 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
cb0cc95f1a [#3141] DNRv6 UTs edited 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
f5b0a059cb [#3141] unpack SvcParams from hex data 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
83ccbf7075 [#3141] DNRv4 config parser 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
27f4241490 [#3141] pack SvcParams to buffer 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
e9c5070114 [#3141] unpack dohpath SvcParam 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
161134f0c4 [#3141] unpack port SvcParam 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
174664bff6 [#3141] unpack alpn SvcParam 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
8b991fe4d2 [#3141] config parser wip 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
565086fb27 [#3141] added ALPN-IDs 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
e1a3fc7817 [#3141] config parsers boilerplate 2024-02-23 17:14:05 +01:00
Piotrek Zadroga
5618d3b0b6 [#3141] make dnr options type internal 2024-02-23 17:14:05 +01:00
Tomek Mrugalski
c00314599c [#3141] List of Service Parametes (DNR) added 2024-02-23 17:14:05 +01:00
Tomek Mrugalski
796680bfd7 [#3141] Doc updated for v6 DNR option 2024-02-23 17:14:05 +01:00
Tomek Mrugalski
bf76f04bc6 [#3141] ARM updated
- Added DNR description
 - added to list of supported RFCs
 - Also removed one server limitation that's no longer valid
   (because we have ping-check). Not related, but small enough.
2024-02-23 17:14:05 +01:00
Thomas Markwalder
d5d4643378 [#3245] Minor UT change
modified:   src/hooks/dhcp/perfmon/tests/monitored_duration_unittests.cc
2024-02-23 12:08:04 +00:00
Thomas Markwalder
03f21bde7b [#3245] Wordiing fix
modified:   pkt_filter_lpf.cc
2024-02-23 12:08:04 +00:00
Razvan Becheriu
aa15c5af6e [#3245] addressed review 2024-02-23 12:08:04 +00:00
Thomas Markwalder
88bbd44e0d [#3245] Remove wrong doxygen use in UT
modified:   alarm_unittests.cc
modified:   monitored_duration_unittests.cc
2024-02-23 12:08:04 +00:00
Thomas Markwalder
5633edbc05 [#3245] Moved Alarm into own files
new file:   src/hooks/dhcp/perfmon/alarm.cc
new file:   src/hooks/dhcp/perfmon/alarm.h
new file:   src/hooks/dhcp/perfmon/tests/alarm_unittests.cc

modified:   src/hooks/dhcp/perfmon/Makefile.am
modified:   src/hooks/dhcp/perfmon/monitored_duration.cc
modified:   src/hooks/dhcp/perfmon/monitored_duration.h
modified:   src/hooks/dhcp/perfmon/tests/Makefile.am
modified:   src/hooks/dhcp/perfmon/tests/monitored_duration_unittests.cc
2024-02-23 12:08:04 +00:00
Thomas Markwalder
63bdeab6d2 [#3245] Fixed unused variable warning
src/lib/dhcp/pkt_filter_inet6.cc
    PktFilterInet6::openSocket() - added errmsg to exception text as originally intended
2024-02-23 12:08:04 +00:00
Thomas Markwalder
03454345e6 [#3245] Adds fundamental classes to perfmon
src/hooks/dhcp/perfmon/monitored_duration.cc
src/hooks/dhcp/perfmon/monitored_duration.h
    New files that add DurationDataInterval, DurationKey, Alarm, and MonitoredDuration classes

src/hooks/dhcp/perfmon/monitored_duration.h
	New file of unit tests for new classes

modified:   Makefile.am
modified:   tests/Makefile.am
2024-02-23 12:08:04 +00:00
Francis Dupont
03e76466b4 [#2022] Added a comment about yhe unparking race 2024-02-23 10:54:45 +01:00
Francis Dupont
8f254fbc06 [#2022] Added parking points 2024-02-23 10:54:45 +01:00
Francis Dupont
00128adbbe [#2022] Checkpoint: added methods 2024-02-23 10:54:45 +01:00
Andrei Pavel
0e8596b681
[#3025] fix missing include 2024-02-22 13:18:06 +02:00
Andrei Pavel
ffaf3913e5
[#3025] add ChangeLog entry 2024-02-22 10:06:33 +02:00
Andrei Pavel
8f64163863
[#3025] fix distcheck 2024-02-22 10:06:33 +02:00
Andrei Pavel
ee3c643346
[#3025] use admin-utils.sh based on location in upgrade scripts 2024-02-22 10:06:33 +02:00
Andrei Pavel
29510c9762
[#3025] address review comments 2024-02-22 10:06:32 +02:00
Andrei Pavel
af063a3c02
[#3025] appease shellcheck
. "${admin_utils}"
  ^--------------^ SC1090: Can't follow non-constant source. Use a directive to specify location.

    version=$(checked_mysql_version)
              ^-------------------^ SC2119: Use checked_mysql_version "$@" if function's $1 should mean script's $1.

... and others that spiraled afterwards
2024-02-22 10:06:32 +02:00
Andrei Pavel
014c7274c8
[#3025] simplify logic in ensureSchemaVersion
... and allow kea-admin path to be overridden in tests.
2024-02-22 10:06:32 +02:00
Andrei Pavel
336f65fd47
[#3025] re-enable ProcessSpawnTest.isRunningSync 2024-02-22 10:06:32 +02:00
Andrei Pavel
b905f39f35
[#3025] fix location detection in kea-admin 2024-02-22 10:06:32 +02:00
Andrei Pavel
5ff2e44234
[#3025] add isFile 2024-02-22 10:06:32 +02:00
Andrei Pavel
e0305a6b24
[#3025] document automatic db init 2024-02-22 10:06:32 +02:00
Andrei Pavel
96c218d693
[#3025] add unit tests 2024-02-22 09:57:35 +02:00
Andrei Pavel
a738927ce8
[#3025] sync kea-admin in db connection and fix interaction with retry 2024-02-22 09:57:35 +02:00