2043. [func] andrei
The status-get command now shows the status of the sockets being
- opened up for listening to DHCP requests and a list of errors for
- the sockets that were not created succesfully.
+ opened for receiving DHCP requests and a list of errors for the
+ sockets that were not created successfully.
(Gitlab #2434)
2042. [func] razvan
limiting. However, that use case is best achieved with rate limiting; it puts less computational
strain on Kea, since the action of dropping the request or sending a NAK is decided earlier.
-In terms of rate limiting, client classes are evalated at the ``pkt4_receive`` and the
+In terms of rate limiting, client classes are evaluated at the ``pkt4_receive`` and the
``pkt6_receive`` callout, respectively, so that rate limits are checked as early as possible in the
packet-processing cycle. Thus, only those classes which are assigned to the packet solely via an
independent test expression can be used. Classes that depend on host reservations or the special
assert_eq 0 "${EXIT_CODE}" "${query}: expected %d, returned %d"
assert_str_eq '' "${OUTPUT}" "${query}: expected output %s, returned %s"
- # SELECT should finish succesfully and the subnet counter should be 0.
+ # SELECT should finish successfully and the subnet counter should be 0.
query="SELECT leases FROM lease${v}_stat WHERE subnet_id = 1 AND state = 0 LIMIT 1"
run_command \
pgsql_execute "${query}"
assert_str_eq '0' "${OUTPUT}" "${query}: expected output %s, returned %s"
if test "${json_supported}" = 't'; then
- # SELECT should finish succesfully and the client class counter should be 0.
+ # SELECT should finish successfully and the client class counter should be 0.
query="SELECT leases FROM lease${v}_stat_by_client_class WHERE client_class = 'foo' LIMIT 1"
run_command \
pgsql_execute "${query}"
DHCPV6_DHCPV4_RESPONSE = 21,
/* RFC 7653 */
DHCPV6_ACTIVELEASEQUERY = 22,
- HCPV6_STARTTLS = 23,
+ DHCPV6_STARTTLS = 23,
/* RFC 8156 */
DHCPV6_BNDUPD = 24,
DHCPV6_BNDREPLY = 25,
/// @todo: Add SocketCollectionConstIter type
typedef std::list<SocketInfo> SocketCollection;
- /// @brief A type definition for a list of error messages
+ /// @brief Type definition for a list of error messages
using ErrorBuffer = std::vector<std::string>;
- /// @brief A smart pointer type for @ref ErrorBuffer
- using ErrorBufferPtr = std::shared_ptr<ErrorBuffer>;
-
/// @brief Iface constructor.
///
/// Creates Iface object that represents network interface.
/// See @c Iface manager description for details.
std::vector<uint8_t> read_buffer_;
- /// @brief List of errors that occured since the last attempt to open sockets
+ /// @brief List of errors that occurred since the last attempt to open sockets
///
/// This list needs to always have a consistent view of the errors. They should all belong to
/// the same session of socket opening i.e. the same call to openSockets[46]. This is currently
/// @param ex_type Exception to be thrown if error_handler is NULL.
/// @param handler Error handler function to be called or NULL to indicate
/// that exception should be thrown instead.
-/// @param iface Pointer to the interafce for which the error is logged. Can be null.
+/// @param iface Pointer to the interface for which the error is logged. Can be null.
/// @param stream stream object holding an error string.
#define IFACEMGR_ERROR(ex_type, handler, iface, stream) \
{ \
opt->addOption(sub1);
opt->addOption(sub2);
- // Prepare reference data: option + suoptions in wire format.
+ // Prepare reference data: option + suboptions in wire format.
uint8_t expected[] = {
TEST_OPT_CODE, 15, // option header
0x01, 0x02, // data, uint16_t value = 0x0102
% DHCPSRV_SUBNET4_SELECT_NO_USABLE_ADDRESS No subnet selected because no suitable address to use for subnet selection was found.
A debug message issued when the server was find a suitable address to use for
-susubnet selection.
+subnet selection.
% DHCPSRV_SUBNET4_SELECT_NO_RAI_OPTIONS No RAI options found to use for subnet selection.
A debug message issued by the server when the client query does not include RAI
// Iterate over the invalid scenarios.
for (auto scenario : invalid_scenarios) {
- // Cosntruct the lease and context.
+ // Construct the lease and context.
lease = leaseFactory(Lease::TYPE_V4);
ElementPtr ctx;
ASSERT_NO_THROW(ctx = Element::fromJSON(scenario.ctx_json_))
// Iterate over the scenarios.
for (auto scenario : valid_scenarios) {
- // Cosntruct the lease and context.
+ // Construct the lease and context.
lease = leaseFactory(Lease::TYPE_V4);
if (!scenario.ctx_json_.empty()) {
ElementPtr ctx;