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

35888 Commits

Author SHA1 Message Date
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
Andrei Pavel
9d57fe9875
[#3025] add ability to wait sync in ProcessSpawn 2024-02-22 09:57:35 +02:00
Andrei Pavel
a7d471912e
[#3025] add db init on startup to other managers 2024-02-22 09:57:35 +02:00
Andrei Pavel
d2b738e987
[#3025] switch io service to DatabaseConnection's 2024-02-22 09:57:35 +02:00
Andrei Pavel
0046232406
[#3025] minor changes to kea-admin
- Reword 'Database version' to 'Schema version'.
- Remove a newline that was present only when running mysql operations
  and not for postgresql operations. It was more visible since now it
  appeared in the kea logs.
- Remove some extraneous exits. They weren't in the way of anything, but
  weren't doing anything either.
2024-02-22 09:57:35 +02:00
Andrei Pavel
253eadd878
[#3025] add ability to inherit env in ProcessSpawn 2024-02-22 09:57:35 +02:00
Andrei Pavel
4a5bd3c9e0
[#3025] automatic init of postgresql schema 2024-02-22 09:57:35 +02:00
Andrei Pavel
83594bd11f
[#3025] convert db access params to kea-admin 2024-02-22 09:57:35 +02:00
Andrei Pavel
8e2d02205c
[#3025] automatic init of mysql schema 2024-02-22 09:57:35 +02:00
Piotrek Zadroga
3e4b5f9485 [#3130] trim trailing slash 2024-02-21 16:20:05 +00:00
Razvan Becheriu
e94d19c989 [#3185] fixed access invalid iterator 2024-02-21 10:03:52 +00:00
Francis Dupont
ae5d15da89 [#2022] Fixed comment 2024-02-21 10:02:08 +01:00
Francis Dupont
ffcc3b983d [#2022] Checkpoint: began reorg 2024-02-21 09:53:01 +01:00
Thomas Markwalder
60cda8f3ee [#3231] Fixed some additional comments.
Minor nits in:

src/bin/dhcp4/tests/dhcp4_test_utils.h
src/bin/dhcp6/tests/dhcp6_test_utils.h
2024-02-20 13:15:45 -05:00
Thomas Markwalder
468d74bd0a [#3231] Refine conditional log in pkt_filter_bpf.cc
modified:   pkt_filter_bpf.cc
2024-02-20 11:38:29 -05:00
Thomas Markwalder
6fec7cf6da [#3231] Fixed build issue under MacOS Sonoma
Added conditional compilation to address MacOS adding
the macro BPF_TIMEVAL to define the structure used
in the bpf header as either "struct timeval" or
"struct timeval32" (64 bit vs 32 bit).  CMSG uses
timeval, BPF uses timeval32.

src/lib/dhcp/pkt_filter_bpf.cc
    PktFilterBPF::receive()
2024-02-20 11:38:29 -05:00
Thomas Markwalder
332fa26923 [#3231] Addressed review comments
Minor cleanups, added a ChangeLog entry
2024-02-20 11:38:29 -05:00
Thomas Markwalder
b977ad4fb2 [#3231] Log SOCKET RECEIVED TIME support
src/hooks/dhcp/perfmon/perfmon_callouts.cc
    dhcp4_srv_configured()
    dhcp6_srv_configured()
    - added to log socket received time support

src/hooks/dhcp/perfmon/perfmon_messages.mes
    PERFMON_DHCP4_SOCKET_RECEIVED_TIME_SUPPORT
    PERFMON_DHCP6_SOCKET_RECEIVED_TIME_SUPPORT
    - new messages
2024-02-20 11:37:49 -05:00
Thomas Markwalder
3c444cc607 [#3231] Add log of event stack to Perfmon callouts
src/hooks/dhcp/perfmon/perfmon_callouts.cc
    pkt4_send()
    pkt6_send()
        Added dump off packet event stack as a DEBUG log message

src/hooks/dhcp/perfmon/perfmon_messages.mes
    New messages:
    PERFMON_DHCP4_PKT_EVENTS
    PERFMON_DHCP6_PKT_EVENTS
2024-02-20 11:37:49 -05:00
Thomas Markwalder
ce0b886ccb [#3231] Core task 3 for perfmon
Add packet events and subnet callout argumments
to kea-dhcp4 and kea-dhcp6

src/bin/dhcp4/dhcp4_srv.*
    Dhcpv4Srv::runOne() - add mt_queued packet event to query in MT mode
    Dhcpv4Srv::processPacket() - add "process_started" event to query upon entry
    Dhcpv4Srv::processDhcp4Query() - pass selected subnet (if one) into processPacketPktSend()
    Dhcpv4Srv::sendResponseNoThrow() - add subnet parameter, pass it into processPacketPktSend9()
    Dhcpv4Srv::processPacketPktSend() - add subnet parameter, add "process_completed" event
    to query, add subnet to callout arguments

src/bin/dhcp4/tests/dhcp4_test_utils.cc
src/bin/dhcp4/tests/dhcp4_test_utils.h
src/bin/dhcp4/tests/hooks_unittest.cc
    Updates to verify packet events content add subnet4 callout argument

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::runOne() - add mt_queued packet event to query in MT mode
    Dhcpv6Srv::processPacket() - add "process_started" event to query upon entry
    Dhcpv6Srv::processDhcp6Query() - pass selected subnet (if one) into processPacketPktSend()
    Dhcpv6Srv::sendResponseNoThrow() - add subnet parameter, pass it into processPacketPktSend9()
    Dhcpv6Srv::processPacketPktSend() - add subnet parameter, add "process_completed" event
    to query, add subnet to callout arguments

src/bin/dhcp6/tests/dhcp6_test_utils.cc
src/bin/dhcp6/tests/dhcp6_test_utils.h
src/bin/dhcp6/tests/hooks_unittest.cc
    Updates to verify packet events content add subnet4 callout argument

src/bin/dhcp4/dhcp4_hooks.dox
    Updated pkt4_send arguments

src/bin/dhcp6/dhcp6_hooks.dox
    Updated pkt6_send arguments
2024-02-20 11:37:49 -05:00
Slawek Figiel
2e02b32a58 [#3207] Format the code 2024-02-20 09:34:22 +01:00
Slawek Figiel
e767fca448 [#3207] Change the member names 2024-02-20 09:34:22 +01:00
Slawek Figiel
27ad5f8d48 [#3207] Add some comments 2024-02-20 09:34:22 +01:00
Slawek Figiel
e51fc429d2 [#3207] Remove a blank line from Changelog 2024-02-20 09:34:22 +01:00
Slawek Figiel
f2ee9c9e8b [#3207] Change the letter case 2024-02-20 09:33:58 +01:00
Slawek Figiel
620ef880e0 [#3207] Trim whitespace 2024-02-20 09:33:58 +01:00
Slawek Figiel
514c6f4d6f [#3207] Update Changelog 2024-02-20 09:33:58 +01:00
Slawek Figiel
49e2b0019f [#3207] Replace boost radom with std 2024-02-20 09:33:35 +01:00
Slawek Figiel
cf888310fc [#3207] Remove old implementation 2024-02-20 09:33:35 +01:00
Slawek Figiel
47f77e7633 [#3207] Add a wrapper for boost rand generator 2024-02-20 09:33:35 +01:00
Slawek Figiel
1679c812d9 [#3207] Remove helper class 2024-02-20 09:33:35 +01:00
Slawek Figiel
50b1b752bf [#3207] Remove helper classes 2024-02-20 09:33:35 +01:00
Slawek Figiel
2aa867b602 [#3207] Remove weighted random generator 2024-02-20 09:33:35 +01:00
Andrei Pavel
fb95aed601
[#2022] fix User-Password example in ARM 2024-02-19 17:53:37 +02:00