want to format code automatically, you will need to have at least one of these
tools installed. Since by default, these tools look for the closest style file
located in one of the parent directories or, otherwise, in a default location,
-there are a a couple of helpful scripts i.e. `./tools/clang-format.sh` and
+there are a couple of helpful scripts i.e. `./tools/clang-format.sh` and
`./tools/uncrustify.sh` to assure you that the Kea-owned file is used. They
accept any number of customized parameters that would be passed to the
underlying tool followed by any number of files and/or directories. Passing
// There are dedicated examples for each backend. See Section 7.2.2 "Lease
// Storage" for details.
"lease-database": {
- // Memfile is the simplest and easiest backend to use. It's a in-memory
+ // Memfile is the simplest and easiest backend to use. It's an in-memory
"type": "memfile"
},
"code": 2,
"name": "vlanid",
// In case of suboption of option 125 space has to start with prefix "vendor-"
-// in this case it's "vendor-" + vendor id from option 60 send by client
+// in this case it's "vendor-" + vendor id from option 60 sent by client
// 339 is Siemens Industry Inc.
"space": "vendor-339",
"type": "uint32"
single-threaded HTTP client processing.
- ``http-dedicated-listener`` - enables or disables the creation of a
- dedicated, internal HTTP listener through which the server receive HA
+ dedicated, internal HTTP listener through which the server receives HA
messages from its peers. The internal listener replaces the role of
kea-ctrl-agent traffic, allowing peers to send their HA commands directly
to each other. The listener will listen on the peer's ``url``. When
DELETED_LEASES4_SIZE
If LEASES4_SIZE or DELETED_LEASES4_SIZE are non zero, then each lease
-will have it's own unique identifier as shown below. First index starts
+will have its own unique identifier as shown below. First index starts
at 0.
::
DELETED_LEASES6_SIZE
If LEASES6_SIZE or DELETED_LEASES6_SIZE are non zero, then each lease
-will have it's own unique identifier as shown below. First index starts
+will have its own unique identifier as shown below. First index starts
at 0.
::
Perfdhcp can now simulate traffic from multiple subnets by enabling option
-J and passing path to file that contains v4 or v6 addresses that will be
-used as relayin generated messages. That enable testing of vast numbers
+used as relay in generated messages. That enable testing of vast numbers
of Kea shared networks. While testing Kea v4 it should be started with
KEA_TEST_SEND_RESPONSES_TO_SOURCE environment variable to force Kea
to send generated messages to source address of incoming packet.
-- is initialized to 1.0, then upgraded to 2.0 etc. This may be somewhat
-- sub-optimal, but it ensues consistency with upgrade scripts. (It is much
-- easier to maintain init and upgrade scripts if they look the same).
--- Since initialization is done only once, it's performance is not an issue.
+-- Since initialization is done only once, its performance is not an issue.
-- This line starts database initialization to 1.0.
if (!isNull(control_socket_)) {
d2->set("control-socket", UserContext::toElement(control_socket_));
}
- // Set hooks-librairies
+ // Set hooks-libraries
d2->set("hooks-libraries", hooks_config_.toElement());
// Set DhcpDdns
ElementPtr result = Element::createMap();
/// @brief Represents a DNS domain that is may be updated dynamically.
/// This class specifies a DNS domain and the list of DNS servers that support
-/// it. It's primary use is to map a domain to the DNS server(s) responsible
+/// it. Its primary use is to map a domain to the DNS server(s) responsible
/// for it.
/// @todo Currently the name entry for a domain is just an std::string. It
/// may be worthwhile to change this to a dns::Name for purposes of better
% DHCP_DDNS_NO_ELIGIBLE_JOBS although there are queued requests, there are pending transactions for each, Queue count: %1 Transaction count: %2
This is a debug message issued when all of the queued requests represent clients
-for which there is a an update already in progress. This may occur under
+for which there is an update already in progress. This may occur under
normal operations but should be temporary situation.
% DHCP_DDNS_NO_FWD_MATCH_ERROR Request ID %1: the configured list of forward DDNS domains does not contain a match for: %2 The request has been discarded.
is the parsed JSON structure containing the response generated by
the command processing.
- - <b>Next step status</b>: Not applicable, it's value will be ignored.
+ - <b>Next step status</b>: Not applicable, its value will be ignored.
@section dhcpv4HooksOptionsAccess Accessing DHCPv4 Options within a Packet
When the server constructs a response message to a client it includes
CfgSubnets4Ptr subnets4 = CfgMgr::instance().getStagingCfg()->getCfgSubnets4();
- // Subnet 100 should use it's own explicit values.
+ // Subnet 100 should use its own explicit values.
ConstSubnet4Ptr subnet4 = subnets4->getBySubnetId(100);
ASSERT_TRUE(subnet4);
EXPECT_FALSE(subnet4->getCalculateTeeTimes());
// Let's just use one of the actual captured packets that we have.
Pkt4Ptr pkt = PktCaptures::captureRelayedDiscover();
- // We just need to tweak it a it, to pretend that it's type is as desired.
+ // We just need to tweak it a it, to pretend that its type is as desired.
// Note that when receiving a packet, its on-wire form is stored in data_
// field. Most methods (including setType()) operates on option objects
// (objects stored in options_ after unpack() is called). Finally, outgoing
///@brief Verify that NameChangeRequest holds valid values.
///
- /// Pulls the NCR from the top of the send queue and checks it's content
+ /// Pulls the NCR from the top of the send queue and checks its content
/// against a number of expected parameters.
///
/// @param type - expected NCR change type, CHG_ADD or CHG_REMOVE
ASSERT_TRUE(HooksManager::loadLibraries(libraries));
// Verify that they load functions created the LOAD_MARKER_FILE
- // and that it's contents are correct: "12" - the first library
+ // and that its contents are correct: "12" - the first library
// appends "1" to the file, the second appends "2"). Also
// check that the unload marker file does not yet exist.
EXPECT_TRUE(checkMarkerFile(LOAD_MARKER_FILE, "12"));
EXPECT_EQ("192.0.4.0", (*subnet)->get().first.toText());
EXPECT_EQ(24, (*subnet)->get().second);
- // ... and it's only pool.
+ // ... and its only pool.
const PoolCollection& pools3 = (*subnet)->getPools(Lease::TYPE_V4);
EXPECT_EQ("192.0.4.101", pools3.at(0)->getFirstAddress().toText());
EXPECT_EQ("192.0.4.150", pools3.at(0)->getLastAddress().toText());
is the parsed JSON structure containing the response generated by
the command processing.
- - <b>Next step status</b>: Not applicable, it's value will be ignored.
+ - <b>Next step status</b>: Not applicable, its value will be ignored.
@section dhcpv6HooksOptionsAccess Accessing DHCPv6 Options within a Packet
When the server constructs a response message to a client it includes
// Let's get a simple SOLICIT...
Pkt6Ptr pkt = PktCaptures::captureSimpleSolicit();
- // And pretend it's packet is only 3 bytes long.
+ // And pretend its packet is only 3 bytes long.
pkt->data_.resize(3);
// Check that the tested statistics is initially set to 0
ASSERT_TRUE(HooksManager::loadLibraries(libraries));
// Verify that they load functions created the LOAD_MARKER_FILE
- // and that it's contents are correct: "12" - the first library
+ // and that its contents are correct: "12" - the first library
// appends "1" to the file, the second appends "2"). Also
// check that the unload marker file does not yet exist.
EXPECT_TRUE(checkMarkerFile(LOAD_MARKER_FILE, "12"));
// "dhcp-socket-type": "udp"
},
- // Kea support control channel, which is a way to receive management
+ // Kea supports control channel, which is a way to receive management
// commands while the server is running. This is a Unix domain socket that
// receives commands formatted in JSON, e.g. config-set (which sets new
// configuration), config-reload (which tells Kea to reload its
// There are dedicated examples for each backend. See Section 7.2.2 "Lease
// Storage" for details.
"lease-database": {
- // Memfile is the simplest and easiest backend to use. It's a in-memory
+ // Memfile is the simplest and easiest backend to use. It's an in-memory
// C++ database that stores its state in CSV file.
"type": "memfile",
"lfc-interval": 3600
"interfaces": [ ]
},
- // Kea support control channel, which is a way to receive management commands
+ // Kea supports control channel, which is a way to receive management commands
// while the server is running. This is a Unix domain socket that receives
// commands formatted in JSON, e.g. config-set (which sets new configuration),
// config-reload (which tells Kea to reload its configuration from file),
// There are dedicated examples for each backend. See Section 8.2.2 "Lease
// Storage" for details.
"lease-database": {
+ // Memfile is the simplest and easiest backend to use. It's an in-memory
+ // C++ database that stores its state in CSV file.
"type": "memfile",
"lfc-interval": 3600
},
while (std::getline(infile, line)) {
cnt++;
stringstream tmp;
- tmp << "invalid address or wrong address version in line: "<< cnt;
+ tmp << "invalid address or wrong address version in line: " << cnt;
check(validateIP(line), tmp.str());
}
check(cnt == 0, "file with addresses is empty!");
EXPECT_TRUE(service->listener_->getThreadIOService()->stopped());
}
- // Exiting critical section should resume both cllent
+ // Exiting critical section should resume both client
// and listener.
// Client should be running.
// Pointer to the CA certificate store.
std::unique_ptr<Botan::Certificate_Store> store_;
- // Use the CA ceertificate store flag.
+ // Use the CA certificate store flag.
bool use_stores_;
// The certificate chain.
// the other peer timeout?
// Test what happens when handshake is forgotten.
-TEST(TLSTest, noHandshakeCloseonError) {
+TEST(TLSTest, noHandshakeCloseOnError) {
IOService service;
// Server part.
class MySqlHostExchange {
private:
- /// @brief Number of columns returned for SELECT queries send by this class.
+ /// @brief Number of columns returned for SELECT queries sent by this class.
static const size_t HOST_COLUMNS = 14;
public:
static const int DHCP4_SERVER_HOSTNAME_COL = 11;
static const int DHCP4_BOOT_FILE_NAME_COL = 12;
static const int AUTH_KEY_COL = 13;
- /// @brief Number of columns returned for SELECT queries send by this class.
+ /// @brief Number of columns returned for SELECT queries sent by this class.
static const size_t HOST_COLUMNS = 14;
public:
/// can succeed. The invalid hint should be ignored completely.
///
/// @param type Lease type
- /// @param hint hint (as send by a client)
+ /// @param hint hint (as sent by a client)
/// @param expected_pd_len (used in validation)
void allocBogusHint6(Lease::Type type, asiolink::IOAddress hint,
uint8_t expected_pd_len);
/// @brief Constructor
///
/// @param io_service IOService that will drive the pool's IO. If empty, it
- /// create it's own instance.
+ /// create its own instance.
/// @param pool_size Maximum number of threads in the pool. Currently the
/// number of threads is fixed at this value.
/// @param defer_start If true, creation of the threads is deferred until
/// This method is used to construct the set of valid events. Each class
/// within a StateModel derivation hierarchy uses this method to add any
/// events it defines to the set. Each derivation's implementation must
- /// also call it's superclass's implementation. This allows each class
+ /// also call its superclass's implementation. This allows each class
/// within the hierarchy to make contributions to the set of defined
/// events. Implementations use the method, defineEvent(), to add event
/// definitions. An example of the derivation's implementation follows:
/// event set is determined to be invalid this method should throw a
/// StateModelError. As with the defineEvents method, each class within
/// a StateModel derivation hierarchy must supply an implementation
- /// which calls it's superclass's implementation as well as verifying any
+ /// which calls its superclass's implementation as well as verifying any
/// events added by the derivation. Validating an event is accomplished
/// by simply attempting to fetch an event by its value from the event set.
/// An example of the derivation's implementation follows:
/// This method is used to construct the set of valid states. Each class
/// within a StateModel derivation hierarchy uses this method to add any
/// states it defines to the set. Each derivation's implementation must
- /// also call it's superclass's implementation. This allows each class
+ /// also call its superclass's implementation. This allows each class
/// within the hierarchy to make contributions to the set of defined
/// states. Implementations use the method, defineState(), to add state
/// definitions. An example of the derivation's implementation follows:
/// state set is determined to be invalid this method should throw a
/// StateModelError. As with the defineStates method, each class within
/// a StateModel derivation hierarchy must supply an implementation
- /// which calls it's superclass's implementation as well as verifying any
+ /// which calls its superclass's implementation as well as verifying any
/// states added by the derivation. Validating an state is accomplished
/// by simply attempting to fetch the state by its value from the state set.
/// An example of the derivation's implementation follows:
/// an exception is thrown.
///
/// \param hex_string Input string.
-/// \param sep character to use a a separator.
+/// \param sep character to use as a separator.
/// \param binary Vector receiving converted string into binary.
/// \throw isc::BadValue if the format of the input string is invalid.
void