Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
6bb9b924
Commit
6bb9b924
authored
Jan 24, 2017
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] spelling (including in some messages)
parent
6d4f6565
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
66 additions
and
66 deletions
+66
-66
src/bin/d2/d2_config.cc
src/bin/d2/d2_config.cc
+2
-2
src/bin/d2/d2_config.h
src/bin/d2/d2_config.h
+1
-1
src/bin/d2/d2_process.cc
src/bin/d2/d2_process.cc
+2
-2
src/bin/d2/d2_process.h
src/bin/d2/d2_process.h
+1
-1
src/bin/d2/d2_queue_mgr.cc
src/bin/d2/d2_queue_mgr.cc
+2
-2
src/bin/d2/d2_update_message.cc
src/bin/d2/d2_update_message.cc
+2
-2
src/bin/d2/dns_client.cc
src/bin/d2/dns_client.cc
+2
-2
src/bin/d2/dns_client.h
src/bin/d2/dns_client.h
+2
-2
src/bin/d2/nc_trans.h
src/bin/d2/nc_trans.h
+2
-2
src/bin/keactrl/keactrl.in
src/bin/keactrl/keactrl.in
+2
-2
src/bin/lfc/lfc_controller.cc
src/bin/lfc/lfc_controller.cc
+1
-1
src/bin/lfc/lfc_controller.h
src/bin/lfc/lfc_controller.h
+2
-2
src/bin/perfdhcp/command_options.cc
src/bin/perfdhcp/command_options.cc
+4
-4
src/bin/perfdhcp/perf_pkt6.h
src/bin/perfdhcp/perf_pkt6.h
+2
-2
src/bin/perfdhcp/test_control.h
src/bin/perfdhcp/test_control.h
+3
-3
src/hooks/dhcp/user_chk/pkt_send_co.cc
src/hooks/dhcp/user_chk/pkt_send_co.cc
+2
-2
src/hooks/dhcp/user_chk/user.cc
src/hooks/dhcp/user_chk/user.cc
+2
-2
src/hooks/dhcp/user_chk/user_file.h
src/hooks/dhcp/user_chk/user_file.h
+2
-2
src/hooks/dhcp/user_chk/user_registry.cc
src/hooks/dhcp/user_chk/user_registry.cc
+2
-2
src/lib/cc/command_interpreter.h
src/lib/cc/command_interpreter.h
+2
-2
src/lib/cc/data.cc
src/lib/cc/data.cc
+1
-1
src/lib/cc/data.h
src/lib/cc/data.h
+4
-4
src/lib/config/command_mgr.h
src/lib/config/command_mgr.h
+1
-1
src/lib/dns/labelsequence.cc
src/lib/dns/labelsequence.cc
+2
-2
src/lib/dns/rdatafields.cc
src/lib/dns/rdatafields.cc
+2
-2
src/lib/dns/rrset_collection_base.h
src/lib/dns/rrset_collection_base.h
+2
-2
src/lib/dns/serial.h
src/lib/dns/serial.h
+2
-2
src/lib/dns/tsig.h
src/lib/dns/tsig.h
+2
-2
src/lib/eval/eval_context.h
src/lib/eval/eval_context.h
+3
-3
src/lib/eval/parser.yy
src/lib/eval/parser.yy
+2
-2
src/lib/eval/token.h
src/lib/eval/token.h
+3
-3
src/lib/exceptions/exceptions.h
src/lib/exceptions/exceptions.h
+2
-2
No files found.
src/bin/d2/d2_config.cc
View file @
6bb9b924
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -130,7 +130,7 @@ operator<<(std::ostream& os, const D2Params& config) {
}
// *********************** TSIGKeyInfo *************************
// Note these values match corre
ps
onding values for Bind9's
// Note these values match corre
sp
onding values for Bind9's
// dnssec-keygen
const
char
*
TSIGKeyInfo
::
HMAC_MD5_STR
=
"HMAC-MD5"
;
const
char
*
TSIGKeyInfo
::
HMAC_SHA1_STR
=
"HMAC-SHA1"
;
...
...
src/bin/d2/d2_config.h
View file @
6bb9b924
...
...
@@ -538,7 +538,7 @@ public:
///
/// @param name is the domain name of the domain.
/// @param servers is the list of server(s) supporting this domain.
/// @param tsig_key_info pointer to the TSIGKeyInfo for the dom
m
ain's key
/// @param tsig_key_info pointer to the TSIGKeyInfo for the domain's key
/// It defaults to an empty pointer, signifying the domain has no key.
DdnsDomain
(
const
std
::
string
&
name
,
DnsServerInfoStoragePtr
servers
,
...
...
src/bin/d2/d2_process.cc
View file @
6bb9b924
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -243,7 +243,7 @@ D2Process::checkQueueStatus() {
:
"shutdown"
);
queue_mgr_
->
stopListening
();
}
catch
(
const
isc
::
Exception
&
ex
)
{
// It is very unlikey that we would experience an error
// It is very unlike
l
y that we would experience an error
// here, but theoretically possible.
LOG_ERROR
(
d2_logger
,
DHCP_DDNS_QUEUE_MGR_STOP_ERROR
)
.
arg
(
ex
.
what
());
...
...
src/bin/d2/d2_process.h
View file @
6bb9b924
...
...
@@ -66,7 +66,7 @@ public:
/// This is invoked by the controller after command line arguments but
/// PRIOR to configuration reception. The base class provides this method
/// as a place to perform any derivation-specific initialization steps
/// that are inapp
p
ropriate for the constructor but necessary prior to
/// that are inappropriate for the constructor but necessary prior to
/// launch. So far, no such steps have been identified for D2, so its
/// implementation is empty but required.
///
...
...
src/bin/d2/d2_queue_mgr.cc
View file @
6bb9b924
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -153,7 +153,7 @@ D2QueueMgr::stopListening(const State target_stop_state) {
<<
target_stop_state
);
}
// Remember the state we want to ach
ei
ve.
// Remember the state we want to ach
ie
ve.
target_stop_state_
=
target_stop_state
;
// Instruct the listener to stop. If the listener reports that it
...
...
src/bin/d2/d2_update_message.cc
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -128,7 +128,7 @@ D2UpdateMessage::fromWire(const void* received_data, size_t bytes_received,
isc
::
util
::
InputBuffer
received_data_buffer
(
received_data
,
bytes_received
);
message_
.
fromWire
(
received_data_buffer
);
// If tsig_contex is not NULL, then we need to verify the message.
// If tsig_contex
t
is not NULL, then we need to verify the message.
if
(
tsig_context
)
{
TSIGError
error
=
tsig_context
->
verify
(
message_
.
getTSIGRecord
(),
received_data
,
bytes_received
);
...
...
src/bin/d2/dns_client.cc
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -46,7 +46,7 @@ public:
// received. This allows a single DNSClientImpl instance to be used for
// multiple, sequential IOFetch calls. (@todo Trac# 3286 has been opened
// against dns::Message::fromWire. Should the behavior of fromWire change
// the behavior here with could be rexamined).
// the behavior here with could be re
e
xamined).
D2UpdateMessagePtr
&
response_
;
// A caller-supplied external callback which is invoked when DNS message
// exchange is complete or interrupted.
...
...
src/bin/d2/dns_client.h
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -85,7 +85,7 @@ public:
/// @brief Constructor.
///
/// @param response_placeholder Messge object pointer which will be updated
/// @param response_placeholder Mess
a
ge object pointer which will be updated
/// with dynamically allocated object holding the DNS server's response.
/// @param callback Pointer to an object implementing @c DNSClient::Callback
/// class. This object will be called when DNS message exchange completes or
...
...
src/bin/d2/nc_trans.h
View file @
6bb9b924
...
...
@@ -144,7 +144,7 @@ public:
static
const
int
NCT_DERIVED_EVENT_MIN
=
SM_DERIVED_EVENT_MIN
+
101
;
//@}
/// @brief Default time to assign to a single DNS u
dp
ate.
/// @brief Default time to assign to a single DNS u
pd
ate.
/// @todo This value will be made configurable in the very near future
/// under trac3268. For now we will define it to 100 milliseconds
/// so unit tests will run within a reasonable amount of time.
...
...
@@ -289,7 +289,7 @@ protected:
void
setDnsUpdateRequest
(
D2UpdateMessagePtr
&
request
);
/// @brief Destroys the current update request packet and resets
/// u
dp
ate attempts count.
/// u
pd
ate attempts count.
void
clearDnsUpdateRequest
();
/// @brief Sets the update status to the given status value.
...
...
src/bin/keactrl/keactrl.in
View file @
6bb9b924
#!/bin/sh
# Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2014-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -57,7 +57,7 @@ usage() {
}
### Functions managing Kea processes ###
# Contructs a server's PID file based on its binary name, the config file,
# Con
s
tructs a server's PID file based on its binary name, the config file,
# and the --localstatedir and returns the contents as $_pid. If the file
# does not exist, the value of $_pid is 0. If the file exists but cannot
# be read the function exists with a error message. Note the PID file name
...
...
src/bin/lfc/lfc_controller.cc
View file @
6bb9b924
...
...
@@ -311,7 +311,7 @@ LFCController::usage(const std::string& text) {
<<
" -f <file>: finish file"
<<
std
::
endl
<<
" -c <file>: configuration file"
<<
std
::
endl
<<
" -v: print version number and exit"
<<
std
::
endl
<<
" -V: print extended version infor
am
tion and exit"
<<
std
::
endl
<<
" -V: print extended version infor
ma
tion and exit"
<<
std
::
endl
<<
" -d: optional, verbose output "
<<
std
::
endl
<<
" -h: print this message "
<<
std
::
endl
<<
std
::
endl
;
...
...
src/bin/lfc/lfc_controller.h
View file @
6bb9b924
// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -154,7 +154,7 @@ public:
private:
/// Version of the DHCP protocol used, i.e. 4 or 6.
int
protocol_version_
;
/// When true output the result of parsing the com
am
nd line
/// When true output the result of parsing the com
ma
nd line
bool
verbose_
;
std
::
string
config_file_
;
///< The path to the config file
std
::
string
previous_file_
;
///< The path to the previous LFC file (if any)
...
...
src/bin/perfdhcp/command_options.cc
View file @
6bb9b924
// Copyright (C) 2012-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -230,7 +230,7 @@ CommandOptions::initialize(int argc, char** argv, bool print_cmd_line) {
// agent. In the future we should extend it to up to 32.
// See comment in https://github.com/isc-projects/kea/pull/22#issuecomment-243405600
v6_relay_encapsulation_level_
=
static_cast
<
uint8_t
>
(
positiveInteger
(
"-A<encap
u
sulation-level> must"
static_cast
<
uint8_t
>
(
positiveInteger
(
"-A<encapsulation-level> must"
" be a positive integer"
));
if
(
v6_relay_encapsulation_level_
!=
1
)
{
isc_throw
(
isc
::
InvalidParameter
,
"-A only supports 1 at the moment."
);
...
...
@@ -972,7 +972,7 @@ CommandOptions::printCommandLine() const {
void
CommandOptions
::
usage
()
const
{
std
::
cout
<<
"perfdhcp [-hv] [-4|-6] [-A<encap
u
sulation-level>] [-e<lease-type>]"
"perfdhcp [-hv] [-4|-6] [-A<encapsulation-level>] [-e<lease-type>]"
" [-r<rate>] [-f<renew-rate>]
\n
"
" [-F<release-rate>] [-t<report>] [-R<range>] [-b<base>]
\n
"
" [-n<num-request>] [-p<test-period>] [-d<drop-time>]
\n
"
...
...
@@ -1086,7 +1086,7 @@ CommandOptions::usage() const {
" the exchange rate (given by -r<rate>). Furthermore the sum of
\n
"
" this value and the renew-rate (given by -f<rate) must be equal
\n
"
" to or less than the exchange rate.
\n
"
"-A<encap
u
sulation-level>: Specifies that relayed traffic must be
\n
"
"-A<encapsulation-level>: Specifies that relayed traffic must be
\n
"
" generated. The argument specifies the level of encapsulation, i.e.
\n
"
" how many relay agents are simulated. Currently the only supported
\n
"
" <encapsulation-level> value is 1, which means that the generated
\n
"
...
...
src/bin/perfdhcp/perf_pkt6.h
View file @
6bb9b924
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -85,7 +85,7 @@ public:
/// \brief Handles limited binary packet parsing for packets with
/// custom offsets of options and transaction id
///
/// This metho
i
d handles the parsing of packets that have custom offsets
/// This method handles the parsing of packets that have custom offsets
/// of options or transaction ID. Use
/// \ref isc::dhcp::Pkt4::addOption to specify which options to parse.
/// Options should be of the \ref isc::perfdhcp::LocalizedOption
...
...
src/bin/perfdhcp/test_control.h
View file @
6bb9b924
// Copyright (C) 2012-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -660,7 +660,7 @@ protected:
/// being sent to the server. It collects first packets of each
/// type and keeps them around until test finishes. Then they
/// are printed to the user. If packet of specified type has
/// been already stored this function perf
ro
ms no operation.
/// been already stored this function perf
or
ms no operation.
/// This function does not perform sanity check if packet
/// pointer is valid. Make sure it is before calling it.
///
...
...
@@ -675,7 +675,7 @@ protected:
/// being sent to the server. It collects first packets of each
/// type and keeps them around until test finishes. Then they
/// are printed to the user. If packet of specified type has
/// been already stored this function perf
ro
ms no operation.
/// been already stored this function perf
or
ms no operation.
/// This function does not perform sanity check if packet
/// pointer is valid. Make sure it is before calling it.
///
...
...
src/hooks/dhcp/user_chk/pkt_send_co.cc
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -259,7 +259,7 @@ void add4Option(Pkt4Ptr& response, uint8_t opt_code, std::string& opt_value) {
/// - DOCSIS3_V6_CONFIG_FILE from user property "bootfile"
/// - DOCSIS3_V6_TFTP_SERVERS from user property "tftp_server"
///
/// @param response IPv5 reponse packet
/// @param response IPv5 re
s
ponse packet
/// @param user User from whom properties are sourced
void
add6Options
(
Pkt6Ptr
&
response
,
const
UserPtr
&
user
)
{
if
(
!
user
)
{
...
...
src/hooks/dhcp/user_chk/user.cc
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -38,7 +38,7 @@ UserId::UserId(UserIdType id_type, const std::string & id_str) :
// Input is expected to be 2-digits per bytes, no delimiters.
std
::
vector
<
uint8_t
>
addr_bytes
;
// Strip out colon delim
e
ters, decodeHex doesn't like them.
// Strip out colon delim
i
ters, decodeHex doesn't like them.
std
::
string
clean_id_str
=
id_str
;
std
::
string
::
iterator
end_pos
=
std
::
remove
(
clean_id_str
.
begin
(),
clean_id_str
.
end
(),
':'
);
...
...
src/hooks/dhcp/user_chk/user_file.h
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -43,7 +43,7 @@ public:
///
/// Each entry must have a valid entry for "type" and a valid entry or "id".
///
/// If an entry contains duplicate option names, that option will be assig
en
d
/// If an entry contains duplicate option names, that option will be assig
ne
d
/// the last value found. This is typical JSON behavior.
/// Currently, only string option values (i.e. enclosed in quotes) are
/// supported.
...
...
src/hooks/dhcp/user_chk/user_registry.cc
View file @
6bb9b924
// Copyright (C) 2013-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -85,7 +85,7 @@ void UserRegistry::refresh() {
addUser
(
user
);
}
}
catch
(
const
std
::
exception
&
ex
)
{
// Source was comprom
s
ised so restore registry from backup.
// Source was compromised so restore registry from backup.
users_
=
backup
;
// Close the source.
source_
->
close
();
...
...
src/lib/cc/command_interpreter.h
View file @
6bb9b924
// Copyright (C) 2009-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2009-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -73,7 +73,7 @@ isc::data::ConstElementPtr createAnswer(const int status_code,
/// @brief Creates a standard config/command level answer message
///
/// @param status_code The return code (0 for success)
/// @param status textual represenation of the status (used mostly for errors)
/// @param status textual represen
t
ation of the status (used mostly for errors)
/// @param arg The optional argument for the answer. This can be of
/// any Element type. May be NULL.
/// @return Standard command/config answer message
...
...
src/lib/cc/data.cc
View file @
6bb9b924
...
...
@@ -1078,7 +1078,7 @@ void Element::preprocess(std::istream& in, std::stringstream& out) {
line
=
""
;
}
// getline() removes end line charaters. Unfortunately, we need
// getline() removes end line chara
c
ters. Unfortunately, we need
// it for getting the line numbers right (in case we report an
// error.
out
<<
line
;
...
...
src/lib/cc/data.h
View file @
6bb9b924
// Copyright (C) 2010-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -78,7 +78,7 @@ public:
/// \endcode
///
/// the position of the element "bar" is: line_ = 2; pos_ = 9, because
/// begining of the value "123" is at offset 9 from the beginning of
/// begin
n
ing of the value "123" is at offset 9 from the beginning of
/// the second line, including whitespaces.
///
/// Note that the @c Position structure is used as an argument to @c Element
...
...
@@ -511,7 +511,7 @@ public:
//@{
/// Creates an Element from the wire format in the given
/// stringstream of the given length.
/// Since the wire format is JSON, this
e
is the same as
/// Since the wire format is JSON, this is the same as
/// fromJSON, and could be removed.
///
/// \param in The input stringstream.
...
...
@@ -520,7 +520,7 @@ public:
static
ElementPtr
fromWire
(
std
::
stringstream
&
in
,
int
length
);
/// Creates an Element from the wire format in the given string
/// Since the wire format is JSON, this
e
is the same as
/// Since the wire format is JSON, this is the same as
/// fromJSON, and could be removed.
///
/// \param s The input string
...
...
src/lib/config/command_mgr.h
View file @
6bb9b924
...
...
@@ -29,7 +29,7 @@ public:
/// @return the only existing instance of the manager
static
CommandMgr
&
instance
();
/// @brief Opens control socket with paramters specified in socket_info
/// @brief Opens control socket with param
e
ters specified in socket_info
///
/// Currently supported types are:
/// - unix (required parameters: socket-type: unix, socket-name:/unix/path)
...
...
src/lib/dns/labelsequence.cc
View file @
6bb9b924
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -19,7 +19,7 @@ namespace dns {
LabelSequence
::
LabelSequence
(
const
void
*
buf
)
{
#ifdef ENABLE_DEBUG
// In non-debug mode, derefencing the NULL pointer further below
// In non-debug mode, derefe
re
ncing the NULL pointer further below
// will lead to a crash, so disabling this check is not
// unsafe. Except for a programming mistake, this case should not
// happen.
...
...
src/lib/dns/rdatafields.cc
View file @
6bb9b924
// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -98,7 +98,7 @@ public:
extendData
();
return
(
fields_
);
}
// We use generic
t
write* methods, with the exception of writeName.
// We use generic write* methods, with the exception of writeName.
// So new data can arrive without us knowing it, this considers all new
// data to be just data and extends the fields to take it into account.
size_t
last_data_pos_
;
...
...
src/lib/dns/rrset_collection_base.h
View file @
6bb9b924
// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -108,7 +108,7 @@ protected:
/// used by the public iterator. Derived classes of
/// \c RRsetCollectionBase are supposed to implement this class and
/// the \c getBeginning() and \c getEnd() methods, so that the
/// public i
n
terator interface can be provided. This is a forward
/// public iterator interface can be provided. This is a forward
/// iterator only.
class
Iter
{
public:
...
...
src/lib/dns/serial.h
View file @
6bb9b924
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -58,7 +58,7 @@ public:
/// \brief Direct assignment from value
///
/// \param value the uint32_t value to assi
ng
/// \param value the uint32_t value to assi
gn
void
operator
=
(
uint32_t
value
)
{
value_
=
value
;
}
/// \brief Returns the uint32_t representation of this serial value
...
...
src/lib/dns/tsig.h
View file @
6bb9b924
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -414,7 +414,7 @@ public:
protected:
/// \brief Update internal HMAC state by more data.
///
/// This is used mostly internaly, when we need to verify a message without
/// This is used mostly internal
l
y, when we need to verify a message without
/// TSIG signature in the middle of signed TCP stream. However, it is also
/// used in tests, so it's protected instead of private, to allow tests
/// in.
...
...
src/lib/eval/eval_context.h
View file @
6bb9b924
// Copyright (C) 2015-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2015-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -22,7 +22,7 @@ YY_DECL;
namespace
isc
{
namespace
eval
{
/// @brief Evaluation error exception raised when trying to parse an
a
xceptions.
/// @brief Evaluation error exception raised when trying to parse an
e
xceptions.
class
EvalParseError
:
public
isc
::
Exception
{
public:
EvalParseError
(
const
char
*
file
,
size_t
line
,
const
char
*
what
)
:
...
...
@@ -153,7 +153,7 @@ public:
/// @brief Flag determining scanner debugging.
bool
trace_scanning_
;
/// @brief Flag determing parser debugging.
/// @brief Flag determin
in
g parser debugging.
bool
trace_parsing_
;
/// @brief Option universe: DHCPv4 or DHCPv6.
...
...
src/lib/eval/parser.yy
View file @
6bb9b924
/* Copyright (C) 2015-201
6
Internet Systems Consortium, Inc. ("ISC")
/* Copyright (C) 2015-201
7
Internet Systems Consortium, Inc. ("ISC")
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -35,7 +35,7 @@ using namespace isc::eval;
}
%define api.token.prefix {TOKEN_}
// Tokens in an order which makes sense and related to the inten
t
ed use.
// Tokens in an order which makes sense and related to the inten
d
ed use.
%token
END 0 "end of file"
LPAREN "("
...
...
src/lib/eval/token.h
View file @
6bb9b924
// Copyright (C) 2015-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2015-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -342,7 +342,7 @@ protected:
class
TokenRelay6Option
:
public
TokenOption
{
public:
/// @brief Constructor that takes a nesting level and an option
/// code as param
a
ters.
/// code as param
e
ters.
///
/// @param nest_level the nesting for which relay to examine.
/// @param option_code code of the option.
...
...
@@ -499,7 +499,7 @@ public:
/// @brief Gets a value of the specified packet.
///
/// The evaluation uses fields that are availabe in the packet. It does not
/// The evaluation uses fields that are availab
l
e in the packet. It does not
/// require any values to be present on the stack.
///
/// @throw EvalTypeError when called for a DHCPv4 packet
...
...
src/lib/exceptions/exceptions.h
View file @
6bb9b924
// Copyright (C) 2009-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2009-2015
,2017
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -64,7 +64,7 @@ public:
/// @return A C-style character string of the exception cause.
virtual
const
char
*
what
()
const
throw
();
/// \brief Returns a C-style charater string of the cause of exception.
/// \brief Returns a C-style chara
c
ter string of the cause of exception.
///
/// With verbose set to true, also returns file name and line numbers.
/// Note that we can't simply define a single what() method with parameters,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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