/// @brief Returns whether or not forward updates are enabled.
///
- /// This method currently uses the presence or absence of Foward DDNS
+ /// This method currently uses the presence or absence of Forward DDNS
/// Domains to determine if forward updates are enabled or disabled.
/// @todo This could be expanded to include the check of a configurable
/// boolean value.
if (rcode != 0) {
LOG_FATAL(dctl_logger, DCTL_CONFIG_FILE_LOAD_FAIL)
.arg(app_name_).arg(comment->stringValue());
- isc_throw (ProcessInitError, "Could Not load configration file: "
+ isc_throw (ProcessInitError, "Could Not load configuration file: "
<< comment->stringValue());
}
// Not really a failure, but this condition is worth noting. In reality
// it should be pretty hard to cause this.
LOG_WARN(dctl_logger, DCTL_NOT_RUNNING).arg(app_name_);
- return (isc::config::createAnswer(0, "Process has not been initialzed."));
+ return (isc::config::createAnswer(0, "Process has not been initialized."));
}
void
// Call sendUpdate() to initiate the async send. Note it also sets
// next event to NOP_EVT.
- sendUpdate("Foward Add");
+ sendUpdate("Forward Add");
break;
case IO_COMPLETED_EVT: {
A warning message issued when IfaceMgr fails to open and bind a socket. The reason
for the failure is appended as an argument of the log message.
-% DHCP4_PACKET_DROP_0001 failed to parse packet from %1 to %2, received over interace %3, reason: %4
+% DHCP4_PACKET_DROP_0001 failed to parse packet from %1 to %2, received over interface %3, reason: %4
The DHCPv4 server has received a packet that it is unable to
interpret. The reason why the packet is invalid is included in the message.
"-L<local-port>: Specify the local port to use\n"
" (the value 0 means to use the default).\n"
"-M<mac-list-file>: A text file containing a list of MAC addresses,\n"
- " one per line. If provided, a MAC address will be choosen randomly\n"
+ " one per line. If provided, a MAC address will be chosen randomly\n"
" from this list for every new exchange. In the DHCPv6 case, MAC\n"
" addresses are used to generate DUID-LLs. This parameter must not be\n"
" used in conjunction with the -b parameter.\n"
<listitem>
<para>
A text file containing a list of MAC addresses,
- one per line. If provided, a MAC address will be choosen randomly
+ one per line. If provided, a MAC address will be chosen randomly
from this list for every new exchange. In the DHCPv6 case, MAC
addresses are used to generate DUID-LLs. This parameter must not be
used in conjunction with the -b parameter.
iface->flag_running_ = true;
// Note that we claim that this is not a loopback. iface_mgr tries to open a
- // socket on all interaces that are up, running and not loopback. As this is
+ // socket on all interfaces that are up, running and not loopback. As this is
// the only interface we were able to detect, let's pretend this is a normal
// interface.
iface->flag_loopback_ = false;
/// stack then executes the eval and checks the results.
///
/// @param test_string The string to operate on
- /// @param test_start The postion to start when getting a substring
+ /// @param test_start The position to start when getting a substring
/// @param test_length The length of the substring to get
/// @param result_string The expected result of the eval
/// @param should_throw The eval will throw
EXPECT_TRUE(checkFile());
}
-// Test that we get nothing if the starting postion is out of the string
+// Test that we get nothing if the starting position is out of the string
TEST_F(TokenTest, substringStartingPosition) {
// Off the front
verifySubstringEval("foobar", "-7", "1", "");
start_pos = boost::lexical_cast<int>(start_str);
} catch (const boost::bad_lexical_cast&) {
isc_throw(EvalTypeError, "the parameter '" << start_str
- << "' for the starting postion of the substring "
+ << "' for the starting position of the substring "
<< "couldn't be converted to an integer.");
}
try {
}
const int string_length = string_str.length();
- // If the starting postion is outside of the string push an
+ // If the starting position is outside of the string push an
// empty string and leave
if ((start_pos < -string_length) || (start_pos >= string_length)) {
values.push("");
}
// Adjust the values to be something for substr. We first figure out
- // the starting postion, then update it and the length to get the
+ // the starting position, then update it and the length to get the
// characters before or after it depending on the sign of length
if (start_pos < 0) {
start_pos = string_length + start_pos;
/// str is the string to extract a substring from. If it is empty, an empty
/// string is pushed onto the value stack.
///
- /// start is the postion from which the code starts extracting the substring.
+ /// start is the position from which the code starts extracting the substring.
/// 0 is the first character and a negative number starts from the end, with
/// -1 being the last character. If the starting point is outside of the
/// original string an empty string is pushed onto the value stack.