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
Andrei Pavel
47cdf70020
[ #2022 ] fix non-matching quotes and indentation
2024-02-19 17:53:37 +02:00
Francis Dupont
c3b45dca07
[ #2022 ] Added max-pending-requests doc
2024-02-19 17:49:45 +02:00
Francis Dupont
96fcd7b382
[ #2022 ] Checkpoint: last version of parking code
2024-02-19 17:49:45 +02:00
Thomas Markwalder
a1f225f56c
[ #3242 ] Fixed copyright date
2024-02-16 17:51:25 +00:00
Thomas Markwalder
14d348b507
[ #3242 ] Addressed comments, added ChangeLog entry
...
Minor cosmetic fixes.
2024-02-16 17:51:25 +00:00
Thomas Markwalder
d251bf776c
[ #3209 ] Fixed .gitattributes file
...
modified: src/hooks/dhcp/perfmon/.gitattributes
2024-02-16 17:51:25 +00:00
Thomas Markwalder
7202da7530
[ #3242 ] Added bare-bones perfmon hook library
...
New files:
arm/hooks-perfmon.rst
src/hooks/dhcp/perfmon/.gitattributes
src/hooks/dhcp/perfmon/.gitignore
src/hooks/dhcp/perfmon/Makefile.am
src/hooks/dhcp/perfmon/libloadtests/.gitignore
src/hooks/dhcp/perfmon/libloadtests/Makefile.am
src/hooks/dhcp/perfmon/libloadtests/load_unload_unittests.cc
src/hooks/dhcp/perfmon/libloadtests/run_unittests.cc
src/hooks/dhcp/perfmon/perfmon.dox
src/hooks/dhcp/perfmon/perfmon_callouts.cc
src/hooks/dhcp/perfmon/perfmon_log.cc
src/hooks/dhcp/perfmon/perfmon_log.h
src/hooks/dhcp/perfmon/perfmon_messages.cc
src/hooks/dhcp/perfmon/perfmon_messages.h
src/hooks/dhcp/perfmon/perfmon_messages.mes
src/hooks/dhcp/perfmon/tests/.gitignore
src/hooks/dhcp/perfmon/tests/Makefile.am
src/hooks/dhcp/perfmon/tests/run_unittests.cc
src/hooks/dhcp/perfmon/version.cc
Modified:
configure.ac
arm/hooks-perfmon.rst
arm/hooks.rst
arm/logging.rst
arm/rst_arm_sources.mk
conf.py
src/hooks/dhcp/Makefile.am
2024-02-16 17:51:25 +00:00
Razvan Becheriu
1a0f209cfd
[ #3230 ] addressed review
2024-02-16 18:30:14 +02:00
Thomas Markwalder
c54c5729a7
[ #3230 ] Added UT to BPF filter
...
modified: tests/pkt_filter_bpf_unittest.cc
2024-02-16 10:01:31 -05:00
Thomas Markwalder
9524af1de7
[ #3230 ] Added UTs for isSocketReceiveTimeSupported
...
src/lib/dhcp/tests/pkt_filter_inet6_unittest.cc
src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
Added test for isSocketReceivedTimeSupported)
2024-02-16 09:51:43 -05:00
Thomas Markwalder
e235c2149c
[ #3230 ] Move isSocketReceivedSuppported()
...
Move isSocketReceivedSuppported() impls out of headers and into
cc files so we're sure SO_TIMESTAMP is known.
2024-02-16 09:29:25 -05:00
Thomas Markwalder
ff951201b4
[ #3230 ] Addressed review comments
...
src/lib/dhcp/iface_mgr.*
IfaceMgr::isSocketReceviedTimeSupported() - new function
src/lib/dhcp/pkt_filter.*
PktFilter::isSocketReceviedTimeSupported() - new pure virtual function
src/lib/dhcp/pkt_filter6.cc
src/lib/dhcp/pkt_filter_bpf.h
src/lib/dhcp/pkt_filter_inet.h
src/lib/dhcp/pkt_filter_inet6.h
src/lib/dhcp/pkt_filter_lpf.h
Added implementation of isSocketReceivedTimeSupported()
src/lib/dhcp/pkt_filter_lpf.cc
Removed WITH_CMSG and refactored receive() to be a single function
with conditional codde based on SO_TIMESTAMP
Updated UTs accordingly
2024-02-16 08:10:38 -05:00
Razvan Becheriu
f28b162ad4
[ #3230 ] addressed review
2024-02-15 19:57:19 +02:00
Thomas Markwalder
a4703a85dd
[ #3230 ] Initial commit
...
Adds dhcp::PktEvent, modifies packet filters and tests
src/lib/dhcp/pkt.*
Add PktEvent class, add stack and methods to Pkt
src/lib/dhcp/pkt_filter_bpf.cc
PktFilterBPF::receive() - fetch timestamp from bpfhdr,
add SOCKET_RECEIVED and BUFFER_READ events
PktFilterBPF::send() - add RESPONSE_SENT event
src/lib/dhcp/pkt_filter_inet.cc
PktFilterInet::openSocket() - enable SO_TIMESTAMP socket option
PktFilterInet::receive() - fetch SO_TIMESTAMP via CMSG,
add SOCKET_RECEIVED and BUFFER_READ events
PktFilterInet::send() - add RESPONSE_SENT event
src/lib/dhcp/pkt_filter_inet6.cc
PktFilterInet6::openSocket() - enable SO_TIMESTAMP socket option
PktFilterInet6::receive() - fetch SO_TIMESTAMP via CMSG,
add SOCKET_RECEIVED and BUFFER_READ events
PktFilterInet::send() - add RESPONSE_SENT event
src/lib/dhcp/pkt_filter_lpf.cc
PktFilterLPF::openSocket() - enable SO_TIMESTAMP socket option
PktFilterLPF::receive() - added conditonal compilation version based
on WITH_CMSG macro that fetches SO_TIMESTAMP and add SOCKET_RECEIVED
and BUFFER_READ events
PktFilterLPF::send() - add RESPONSE_SENT event
src/lib/dhcp/tests/pkt4_unittest.cc
TEST_F(Pkt4Test, PktEvents) - new test
src/lib/dhcp/tests/pkt6_unittest.cc
TEST_F(Pkt6Test, PktEvents) - new test
src/lib/dhcp/tests/pkt_filter6_test_utils.cc
src/lib/dhcp/tests/pkt_filter6_test_utils.h
src/lib/dhcp/tests/pkt_filter_inet6_unittest.cc
src/lib/dhcp/tests/pkt_filter_inet_unittest.cc
src/lib/dhcp/tests/pkt_filter_test_utils.cc
src/lib/dhcp/tests/pkt_filter_test_utils.h
Updated tests to check PktEvent stack contents
src/lib/dhcp/tests/pkt_filter_bpf_unittest.cc
src/lib/dhcp/tests/pkt_filter_lpf_unittest.cc
Updated tests to check PktEvent stack contents,
Changed DISABLED_ tests to use SKIP_IF(notRoot)
2024-02-15 08:13:44 +02:00
Thomas Markwalder
ef1f878f52
[ #3209 ] Further review comments
...
modified: encode/encode.cc
2024-02-07 13:58:47 +00:00
Thomas Markwalder
73c493ca84
[ #3209 ] Addressed review comments
...
Minor clean up, added commentary
2024-02-07 13:58:47 +00:00
Razvan Becheriu
94ac8f4c45
[ #3209 ] addressed review
2024-02-07 13:58:47 +00:00