mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 07:25:18 +00:00
[#2434] fix typos
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
2043. [func] andrei
|
2043. [func] andrei
|
||||||
The status-get command now shows the status of the sockets being
|
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
|
opened for receiving DHCP requests and a list of errors for the
|
||||||
the sockets that were not created succesfully.
|
sockets that were not created successfully.
|
||||||
(Gitlab #2434)
|
(Gitlab #2434)
|
||||||
|
|
||||||
2042. [func] razvan
|
2042. [func] razvan
|
||||||
|
@@ -176,7 +176,7 @@ around it, or the hook library configuration. The same applies to the value of `
|
|||||||
limiting. However, that use case is best achieved with rate limiting; it puts less computational
|
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.
|
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
|
``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
|
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
|
independent test expression can be used. Classes that depend on host reservations or the special
|
||||||
|
@@ -742,7 +742,7 @@ pgsql_upgrade_12_to_13_test() {
|
|||||||
assert_eq 0 "${EXIT_CODE}" "${query}: expected %d, returned %d"
|
assert_eq 0 "${EXIT_CODE}" "${query}: expected %d, returned %d"
|
||||||
assert_str_eq '' "${OUTPUT}" "${query}: expected output %s, returned %s"
|
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"
|
query="SELECT leases FROM lease${v}_stat WHERE subnet_id = 1 AND state = 0 LIMIT 1"
|
||||||
run_command \
|
run_command \
|
||||||
pgsql_execute "${query}"
|
pgsql_execute "${query}"
|
||||||
@@ -750,7 +750,7 @@ pgsql_upgrade_12_to_13_test() {
|
|||||||
assert_str_eq '0' "${OUTPUT}" "${query}: expected output %s, returned %s"
|
assert_str_eq '0' "${OUTPUT}" "${query}: expected output %s, returned %s"
|
||||||
|
|
||||||
if test "${json_supported}" = 't'; then
|
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"
|
query="SELECT leases FROM lease${v}_stat_by_client_class WHERE client_class = 'foo' LIMIT 1"
|
||||||
run_command \
|
run_command \
|
||||||
pgsql_execute "${query}"
|
pgsql_execute "${query}"
|
||||||
|
@@ -229,7 +229,7 @@ enum DHCPv6MessageType {
|
|||||||
DHCPV6_DHCPV4_RESPONSE = 21,
|
DHCPV6_DHCPV4_RESPONSE = 21,
|
||||||
/* RFC 7653 */
|
/* RFC 7653 */
|
||||||
DHCPV6_ACTIVELEASEQUERY = 22,
|
DHCPV6_ACTIVELEASEQUERY = 22,
|
||||||
HCPV6_STARTTLS = 23,
|
DHCPV6_STARTTLS = 23,
|
||||||
/* RFC 8156 */
|
/* RFC 8156 */
|
||||||
DHCPV6_BNDUPD = 24,
|
DHCPV6_BNDUPD = 24,
|
||||||
DHCPV6_BNDREPLY = 25,
|
DHCPV6_BNDREPLY = 25,
|
||||||
|
@@ -138,12 +138,9 @@ public:
|
|||||||
/// @todo: Add SocketCollectionConstIter type
|
/// @todo: Add SocketCollectionConstIter type
|
||||||
typedef std::list<SocketInfo> SocketCollection;
|
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>;
|
using ErrorBuffer = std::vector<std::string>;
|
||||||
|
|
||||||
/// @brief A smart pointer type for @ref ErrorBuffer
|
|
||||||
using ErrorBufferPtr = std::shared_ptr<ErrorBuffer>;
|
|
||||||
|
|
||||||
/// @brief Iface constructor.
|
/// @brief Iface constructor.
|
||||||
///
|
///
|
||||||
/// Creates Iface object that represents network interface.
|
/// Creates Iface object that represents network interface.
|
||||||
@@ -477,7 +474,7 @@ private:
|
|||||||
/// See @c Iface manager description for details.
|
/// See @c Iface manager description for details.
|
||||||
std::vector<uint8_t> read_buffer_;
|
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
|
/// 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
|
/// the same session of socket opening i.e. the same call to openSockets[46]. This is currently
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
/// @param ex_type Exception to be thrown if error_handler is NULL.
|
/// @param ex_type Exception to be thrown if error_handler is NULL.
|
||||||
/// @param handler Error handler function to be called or NULL to indicate
|
/// @param handler Error handler function to be called or NULL to indicate
|
||||||
/// that exception should be thrown instead.
|
/// 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.
|
/// @param stream stream object holding an error string.
|
||||||
#define IFACEMGR_ERROR(ex_type, handler, iface, stream) \
|
#define IFACEMGR_ERROR(ex_type, handler, iface, stream) \
|
||||||
{ \
|
{ \
|
||||||
|
@@ -384,7 +384,7 @@ TEST_F(OptionIntTest, packSuboptions4) {
|
|||||||
opt->addOption(sub1);
|
opt->addOption(sub1);
|
||||||
opt->addOption(sub2);
|
opt->addOption(sub2);
|
||||||
|
|
||||||
// Prepare reference data: option + suoptions in wire format.
|
// Prepare reference data: option + suboptions in wire format.
|
||||||
uint8_t expected[] = {
|
uint8_t expected[] = {
|
||||||
TEST_OPT_CODE, 15, // option header
|
TEST_OPT_CODE, 15, // option header
|
||||||
0x01, 0x02, // data, uint16_t value = 0x0102
|
0x01, 0x02, // data, uint16_t value = 0x0102
|
||||||
|
@@ -1113,7 +1113,7 @@ the specified relay address.
|
|||||||
|
|
||||||
% DHCPSRV_SUBNET4_SELECT_NO_USABLE_ADDRESS No subnet selected because no suitable address to use for subnet selection was found.
|
% 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
|
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.
|
% 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
|
A debug message issued by the server when the client query does not include RAI
|
||||||
|
@@ -504,7 +504,7 @@ TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) {
|
|||||||
|
|
||||||
// Iterate over the invalid scenarios.
|
// Iterate over the invalid scenarios.
|
||||||
for (auto scenario : invalid_scenarios) {
|
for (auto scenario : invalid_scenarios) {
|
||||||
// Cosntruct the lease and context.
|
// Construct the lease and context.
|
||||||
lease = leaseFactory(Lease::TYPE_V4);
|
lease = leaseFactory(Lease::TYPE_V4);
|
||||||
ElementPtr ctx;
|
ElementPtr ctx;
|
||||||
ASSERT_NO_THROW(ctx = Element::fromJSON(scenario.ctx_json_))
|
ASSERT_NO_THROW(ctx = Element::fromJSON(scenario.ctx_json_))
|
||||||
@@ -547,7 +547,7 @@ TEST_F(ClassLeaseCounterTest, getLeaseClientClassesTest) {
|
|||||||
|
|
||||||
// Iterate over the scenarios.
|
// Iterate over the scenarios.
|
||||||
for (auto scenario : valid_scenarios) {
|
for (auto scenario : valid_scenarios) {
|
||||||
// Cosntruct the lease and context.
|
// Construct the lease and context.
|
||||||
lease = leaseFactory(Lease::TYPE_V4);
|
lease = leaseFactory(Lease::TYPE_V4);
|
||||||
if (!scenario.ctx_json_.empty()) {
|
if (!scenario.ctx_json_.empty()) {
|
||||||
ElementPtr ctx;
|
ElementPtr ctx;
|
||||||
|
Reference in New Issue
Block a user