Razvan Becheriu
cc104b47a8
[ #3315 ] addressed review comments
2024-04-22 22:59:07 +03:00
Razvan Becheriu
4398fb6c4a
[ #3315 ] use internal IOService for hooks
2024-04-22 22:59:07 +03:00
Razvan Becheriu
2cb3999f62
[ #3281 ] addressed review comments
2024-04-04 10:10:50 +03:00
Razvan Becheriu
3127326ff8
[ #3281 ] stop service just in case it was still running
2024-04-04 08:26:51 +03:00
Razvan Becheriu
94fa86e3c0
[ #3281 ] use shared_from_this
2024-04-04 08:26:51 +03:00
Andrei Pavel
260ad292e8
[ #3210 ] refactor string utilities
...
- Rename util/strutil.h to util/str.h to escape redundancy.
- Simplify trim function.
- Remove unused functions.
- Get rid of the regex conditional compilation that helped Kea build
with ancient compilers. Lack of proper regex functionality now results
in failure in configure.ac.
2024-03-21 18:30:04 +02:00
Andrei Pavel
8491e56aa8
[ #3262 ] check parking limit on subnet select
2024-03-18 11:33:11 +02:00
Andrei Pavel
d20d640e2c
[ #3262 ] on completion callback for subnet select
2024-03-18 11:33:11 +02:00
Razvan Becheriu
133ccdfb15
[ #3190 ] fixed ASAN warnings
2024-03-05 07:50:05 +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
Francis Dupont
ffcc3b983d
[ #2022 ] Checkpoint: began reorg
2024-02-21 09:53:01 +01: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
Wlodek Wencel
416a072394
[ #3237 ] release changes
2024-01-29 10:17:26 +01: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
Razvan Becheriu
9ecab51d37
[ #3112 ] renamed run_one and get_io_service to camelCase
2023-12-11 09:52:05 +02:00
Thomas Markwalder
f08a02278d
[ #3110 ] HA decline updates working
...
Updates are working, need clean up and UTs in HA.
src/bin/dhcp4/dhcp4_hooks.dox
Updated hooks dev guide
src/bin/dhcp4/dhcp4_srv.cc
Added callout lease4_server_decline
Dhcpv4Srv::serverDecline() - added lease4_server_decline hook point
src/bin/dhcp4/tests/hooks_unittest.cc
TEST_F(HooksDhcpv4SrvTest, lease4OfferDiscoverDecline) - new test
src/hooks/dhcp/high_availability/ha_callouts.cc
lease4_server_decline() - new callout function
src/hooks/dhcp/high_availability/ha_impl.*
HAImpl::lease4ServerDecline() - new callout handler
src/hooks/dhcp/high_availability/ha_messages.mes
HA_LEASE4_SERVER_DECLINE_FAILED - new log
src/hooks/dhcp/high_availability/ha_service.*
HAService::asyncSendLeaseUpdate() - new function for a single lease update
HAService::asyncSendLeaseUpdates() - check parking lot null
2023-12-01 10:08:24 -05:00
Razvan Becheriu
118d3316cd
[ #3084 ] fixed compilation
2023-11-22 11:06:46 +02:00
Razvan Becheriu
be7d21bba1
[ #3084 ] fixed doxygen and comments
2023-11-21 12:08:56 +00:00
Thomas Markwalder
0df2dec814
[ #3084 ] More review comments
...
src/bin/dhcp4/dhcp4_messages.h b/src/bin/dhcp4/dhcp4_messages.*
New messages
DHCP4_SERVER_INITIATED_DECLINE_UPDATE_FAILED
DHCP4_SERVER_INITIATED_DECLINE_ADD_FAILED
DHCP4_SERVER_INITIATED_DECLINE_RESOURCE_BUSY
src/bin/dhcp4/dhcp4_srv.*
Dhcpv4Srv::sendResponseNoThrow() - restored argument passing by ref
Dhcpv4Srv::serverDecline() - use ResourceHandle, try add if update fails
2023-11-21 12:08:56 +00:00
Thomas Markwalder
d710862e95
[ #3084 ] Addressed minor review comments
...
Fixed minor issues.
modified:
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp4/dhcp4_srv.h
2023-11-21 12:08:56 +00:00
Thomas Markwalder
4a576566b0
[ #3084 ] Fixed missing log argument
...
modified: dhcp4_srv.cc
2023-11-21 12:08:56 +00:00
Thomas Markwalder
e6bc2227a2
[ #3084 ] Remove unneeded response reset
...
src/bin/dhcp4/dhcp4_srv.cc
2023-11-21 12:08:56 +00:00
Thomas Markwalder
1a7e140015
[ #3084 ] Clean up
2023-11-21 12:08:56 +00:00
Thomas Markwalder
52a7191294
[ #3084 ] Fix arguments going out of scope
...
Arguments passed to sendResponseNoThrow() via std::bind
can go out of scope before the invocation occurs.
Changed to pass-by-value.
src/bin/dhcp4/dhcp4_srv.*
Dhcpv4Srv::sendResponseNoThrow() - changed arguments to
pass by value instead of reference.
2023-11-21 12:08:56 +00:00
Thomas Markwalder
e662234173
[ #3084 ] Use callout argument instead of status
...
src/bin/dhcp4/dhcp4_messages.mes
DHCP4_HOOK_LEASE4_OFFER_ARGUMENT_MISSING - new message
src/bin/dhcp4/dhcp4_srv.cc
Dhcpv4Srv::processDhcp4Query() - look for offer-address-in-use
argument in lease4_offer unpark lambda
2023-11-21 12:08:56 +00:00
Thomas Markwalder
2d998a28be
[ #3084 ] Fixed log placeholder error
...
modified:
dhcp4_messages.cc
dhcp4_messages.mes
dhcp4_srv.cc
2023-11-21 12:08:56 +00:00
Thomas Markwalder
b806911af7
[ #3084 ] Minor clean ups
...
src/bin/dhcp4/dhcp4_srv.cc
2023-11-21 12:08:56 +00:00
Thomas Markwalder
fabba7011c
[ #3084 ] Server declines leases after ping-check
...
kea-dhcp4 declines leases in the lease store
Needs additional UTs
src/bin/dhcp4/dhcp4_messages.mes
New messages:
DHCP4_SERVER_INITIATED_DECLINE_FAILED
DHCP4_SERVER_INITIATED_DECLINE
src/bin/dhcp4/dhcp4_srv.*
Dhcpv4Srv::serverDecline()
Dhcpv4Srv::serverDeclineNoThrow() - new functions to render a lease declined
after ping-check in-use outcome
Dhcpv4Srv::processDhcp4Query() - modified unpark lambda to invoke
serverDecline() following lease-offer completion if status is DROP
2023-11-21 12:08:56 +00:00
Razvan Becheriu
b30b89c49f
[ #2918 ] added message for requested address on DHCPREQUEST
2023-10-06 16:06:34 +03:00
Razvan Becheriu
c4cde200a5
[ #2918 ] added message for requested address on DHCPDISCOVER
2023-10-06 16:06:34 +03:00
Piotrek Zadroga
6d9ec21a51
[ #3038 ] update lease4_offer callout arguments
2023-09-18 19:19:45 +02:00
Piotrek Zadroga
77ee34f35e
[ #3038 ] return ptr to client ctx in processDiscover()
2023-09-18 19:19:45 +02:00
Piotrek Zadroga
cedbb74549
[ #3038 ] set arguments for lease4_offer callout
2023-09-18 19:19:45 +02:00
Piotrek Zadroga
ed86417d89
[ #3038 ] init of new hook point lease4_offer
2023-09-18 19:19:45 +02:00
Razvan Becheriu
709876a844
[ #3009 ] distinct log messages for first and second client classification
2023-09-04 16:53:55 +03:00
Francis Dupont
6a84fc106d
[ #2854 ] Added DHCPx_QUERY_LABEL
2023-08-22 21:10:30 +02:00
Francis Dupont
8deb3ba5b9
[ #2908 ] Fixed class assigned logs
2023-08-01 17:58:41 +02:00
Piotrek Zadroga
bff27696ec
[ #2865 ] Tweaking some pkt DROP prints
2023-06-07 17:38:24 +02:00
Piotrek Zadroga
b6e6eaa0e3
[ #2865 ] Reformat prints
2023-06-07 08:40:21 +00:00
Piotrek Zadroga
3a78154b82
[ #2865 ] Simplify hwaddr in pkt4 prints
2023-06-07 08:40:21 +00:00
Piotrek Zadroga
2d762695a7
[ #2865 ] Add hwaddr to pkt4 prints
2023-06-07 08:40:21 +00:00
Razvan Becheriu
a9e717aaca
[ #145 ] addressed review comments
2023-05-26 18:40:53 +03:00
Razvan Becheriu
630732e486
[ #145 ] create stats per pool
2023-05-26 18:40:52 +03:00
Marcin Siodelski
7235cbff7e
[ #2858 ] Client in INIT-REBOOT state without subnet
...
Corrected a server's behavior for the clients in the INIT-REBOOT state
when there are no subnets configured or when the subnet selection fails.
An authoritative server sends DHCPNAK in this case. A not authoritative
client ignores the requests.
2023-05-24 08:04:00 +02:00
Razvan Becheriu
fa5492d4b7
[ #2786 ] 255 bytes client_id and 130 bytes duid
2023-05-09 14:26:04 +03:00
Andrei Pavel
df49587577
[ #2797 ] add lease reuse statistics
...
v4 reuses leases both on fake allocation and on real allocation, while
v6 only reuses leases on real allocation. This is a discrepancy that is
also exposed in the statistics, and may seem confusing. However, this
seems like the candidate for a new issue.
2023-05-03 22:26:09 +03:00