Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
15a1411f
Commit
15a1411f
authored
Aug 03, 2017
by
Francis Dupont
Browse files
[5272] spelling
parent
40aa40fa
Changes
7
Hide whitespace changes
Inline
Side-by-side
src/hooks/dhcp/lease_cmds/lease_cmds.cc
View file @
15a1411f
...
...
@@ -87,14 +87,14 @@ public:
}
/// @brief specifies parameter types (true = query by address, false =
/// query by i
n
detifier-type,identifier)
/// query by ide
n
tifier-type,identifier)
Type
query_type
;
Lease
::
Type
lease_type
;
uint32_t
iaid
;
/// @brief Default con
t
structor.
/// @brief Default constructor.
Parameters
()
:
addr
(
"::"
),
query_type
(
TYPE_ADDR
),
lease_type
(
Lease
::
TYPE_NA
),
iaid
(
0
)
{
}
...
...
@@ -119,7 +119,7 @@ private:
/// @throw Unexpected if CommandMgr is not available (should not happen)
void
registerCommands
();
/// @brief Dergisters commands:
/// @brief Der
e
gisters commands:
///
/// Deregisters:
/// - lease4-add
...
...
@@ -154,7 +154,7 @@ private:
/// "valid-lft": 3600,
/// "expire": 12345678,
/// "subnet-id": 1,
/// "f
d
qn-fwd": true,
/// "fq
d
n-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
...
...
@@ -384,7 +384,7 @@ LeaseCmdsImpl::getParameters(const ConstElementPtr& params) {
// We support several sets of parameters for leaseX-get/lease-del:
// lease-get(type, address)
// lease-get(type, subnet-id, int
er
ifier-type, identifier)
// lease-get(type, subnet-id, i
de
ntifier-type, identifier)
if
(
params
->
contains
(
"type"
))
{
string
t
=
params
->
get
(
"type"
)
->
stringValue
();
...
...
src/hooks/dhcp/lease_cmds/lease_cmds.h
View file @
15a1411f
...
...
@@ -18,13 +18,13 @@ class LeaseCmdsImpl;
/// @brief A wrapper class that provides convenient initialization to the library.
///
/// This is a wrapper class that simply registers extra commands when
/// instantiated and deregisters them when the instance is destryed.
/// instantiated and deregisters them when the instance is destr
o
yed.
///
/// For an actual implementation, see @ref LeaseCmdsImpl class in lease_cmds.cc file.
class
LeaseCmds
{
public:
/// @brief Initalizes additional host commands.
/// @brief Init
i
alizes additional host commands.
///
/// First, it ensures that either alternate host data source or CfgHosts
/// (configuration storage) are available. Then it checks that CommandMgr
...
...
src/hooks/dhcp/lease_cmds/lease_parser.cc
View file @
15a1411f
...
...
@@ -83,7 +83,7 @@ Lease4Parser::parse(ConstSrvConfigPtr& cfg,
/// timestamp is specified explicitly, we will use that. Note there are no
/// checks whether this is in the past. There may be valid cases when user
/// wants to insert expired leases, e.g. when migrating from one DHCP server
/// to another and wants to migrate the database as is, without disarding
/// to another and wants to migrate the database as is, without dis
c
arding
/// any leases.
time_t
cltt
;
if
(
lease_info
->
contains
(
"expire"
))
{
...
...
@@ -210,7 +210,7 @@ Lease6Parser::parse(ConstSrvConfigPtr& cfg,
/// no checks whether this is in the past. There may be valid cases when
/// user wants to insert expired leases, e.g. when migrating from one
/// DHCP server to another and wants to migrate the database as is, without
/// disarding any leases.
/// dis
c
arding any leases.
time_t
cltt
;
if
(
lease_info
->
contains
(
"expire"
))
{
int64_t
tmp
=
getUint32
(
lease_info
,
"expire"
);
...
...
src/hooks/dhcp/lease_cmds/lease_parser.h
View file @
15a1411f
...
...
@@ -39,7 +39,7 @@ protected:
/// "cltt": 12345678,
/// "expire": 1499282530,
/// "subnet-id": 1,
/// "f
d
qn-fwd": true,
/// "fq
d
n-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
...
...
@@ -74,7 +74,7 @@ public:
/// "valid-lft": 3600,
/// "expire": 1499282530,
/// "subnet-id": 1,
/// "f
d
qn-fwd": true,
/// "fq
d
n-fwd": true,
/// "fqdn-rev": true,
/// "hostname": "myhost.example.org",
/// "state": 0
...
...
src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc
View file @
15a1411f
...
...
@@ -46,7 +46,7 @@ public:
libraries_
.
push_back
(
make_pair
(
lib
,
params
));
}
/// @brief Load all specified libr
i
aries.
/// @brief Load all specified libraries.
///
/// The libraries are stored in libraries
void
loadLibs
()
{
...
...
@@ -745,7 +745,7 @@ TEST_F(LeaseCmdsTest, Lease6AddBadParams) {
exp_rsp
=
"The address 3000::3 does not belong to subnet 2001:db8::/48, subnet-id=66"
;
testCommand
(
txt
,
CONTROL_RESULT_ERROR
,
exp_rsp
);
// v4? You're a time travel
l
er from early 80s or what?
// v4? You're a time traveler from early 80s or what?
txt
=
"{
\n
"
"
\"
command
\"
:
\"
lease6-add
\"
,
\n
"
...
...
src/lib/dhcpsrv/cfg_subnets4.h
View file @
15a1411f
...
...
@@ -99,7 +99,7 @@ public:
/// @brief Returns subnet with specified subnet-id value
///
/// Warning: this method uses full scan. Its use is not recommeded for
/// Warning: this method uses full scan. Its use is not recomme
n
ded for
/// packet processing.
///
/// @return Subnet (or NULL)
...
...
src/lib/dhcpsrv/cfg_subnets6.h
View file @
15a1411f
...
...
@@ -89,7 +89,7 @@ public:
/// @brief Returns subnet with specified subnet-id value
///
/// Warning: this method uses full scan. Its use is not recommeded for
/// Warning: this method uses full scan. Its use is not recomme
n
ded for
/// packet processing.
///
/// @return Subnet (or NULL)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment