Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
169b164a
Commit
169b164a
authored
Jul 02, 2014
by
Marcin Siodelski
Browse files
[3414] References to b10-dhcp* modified to reference kea-dhcp*.
parent
73e2d385
Changes
28
Hide whitespace changes
Inline
Side-by-side
src/bin/d2/bundy_d2_controller.cc
View file @
169b164a
...
...
@@ -26,7 +26,7 @@ namespace d2 {
const
char
*
D2Controller
::
d2_app_name_
=
"DHCP-DDNS"
;
/// @brief Defines the executable name. This is passed into the base class
const
char
*
D2Controller
::
d2_bin_name_
=
"
b10
-dhcp-ddns"
;
const
char
*
D2Controller
::
d2_bin_name_
=
"
kea
-dhcp-ddns"
;
DControllerBasePtr
&
D2Controller
::
instance
()
{
...
...
src/bin/d2/d2_controller.cc
View file @
169b164a
...
...
@@ -26,7 +26,7 @@ namespace d2 {
const
char
*
D2Controller
::
d2_app_name_
=
"DhcpDdns"
;
/// @brief Defines the executable name. This is passed into the base class
const
char
*
D2Controller
::
d2_bin_name_
=
"
b10
-dhcp-ddns"
;
const
char
*
D2Controller
::
d2_bin_name_
=
"
kea
-dhcp-ddns"
;
DControllerBasePtr
&
D2Controller
::
instance
()
{
...
...
src/bin/d2/dhcp-ddns.spec
View file @
169b164a
...
...
@@ -205,7 +205,7 @@
"commands": [
{
"command_name": "shutdown",
"command_description": "Shuts down
b10
-dhcp-ddns module server.",
"command_description": "Shuts down
kea
-dhcp-ddns module server.",
"command_args": [
{
"item_name": "type",
...
...
src/bin/d2/kea-dhcp-ddns.xml
View file @
169b164a
...
...
@@ -30,7 +30,7 @@
</refmeta>
<refnamediv>
<refname>
b10
-dhcp-ddns
</refname>
<refname>
kea
-dhcp-ddns
</refname>
<refpurpose>
DHCP-DDNS process in Kea
</refpurpose>
</refnamediv>
...
...
src/bin/d2/main.cc
View file @
169b164a
...
...
@@ -25,7 +25,7 @@ using namespace isc::d2;
using
namespace
std
;
/// This file contains entry point (main() function) for standard DHCP-DDNS
/// process,
b10
-dhcp-ddns, component for BIND10 framework. It fetches
/// process,
kea
-dhcp-ddns, component for BIND10 framework. It fetches
/// the D2Controller singleton instance and invokes its launch method.
/// The exit value of the program will be EXIT_SUCCESS if there were no
/// errors, EXIT_FAILURE otherwise.
...
...
src/bin/dhcp4/dhcp4.dox
View file @
169b164a
...
...
@@ -16,7 +16,7 @@
@page dhcp4 DHCPv4 Server Component
BIND10 offers DHCPv4 server implementation. It is implemented as
b10
-dhcp4 component. Its primary code is located in
kea
-dhcp4 component. Its primary code is located in
isc::dhcp::Dhcpv4Srv class. It uses \ref libdhcp extensively,
especially isc::dhcp::Pkt4, isc::dhcp::Option and
isc::dhcp::IfaceMgr classes. Currently this code offers skeleton
...
...
@@ -99,19 +99,19 @@ client. In this case the server will return one of the DHCPv4 Client FQDN or
Host Name %Option in its response with the name which was selected for the
client to indicate that this name will be used to perform DNS update.
The
b10
-dhcp-ddns process is responsible for the actual communication with the
DNS, i.e. to send DNS update messages. The
b10
-dhcp4 module is responsible for
The
kea
-dhcp-ddns process is responsible for the actual communication with the
DNS, i.e. to send DNS update messages. The
kea
-dhcp4 module is responsible for
generating @ref isc::dhcp_ddns::NameChangeRequest and sending it to
the
b10
-dhcp-ddns module. The @ref isc::dhcp_ddns::NameChangeRequest object
the
kea
-dhcp-ddns module. The @ref isc::dhcp_ddns::NameChangeRequest object
represents changes to the DNS bindings, related to acquisition, renewal or
release of the DHCP lease. The
b10
-dhcp4 module implements the simple FIFO queue
release of the DHCP lease. The
kea
-dhcp4 module implements the simple FIFO queue
of the NameChangeRequest objects. The module logic, which processes the incoming
DHCPv4 Client FQDN and Host Name Options puts these requests into the FIFO queue.
@todo Currently the FIFO queue is not processed after the NameChangeRequests are
generated and added to it. In the future implementation steps it is planned to
create a code which will check if there are any outstanding requests in the queue
and send them to the
b10
-dhcp-ddns module when server is idle waiting for DHCP
and send them to the
kea
-dhcp-ddns module when server is idle waiting for DHCP
messages.
When client gets an address from the server, a DHCPv4 server may generate 0, 1
...
...
@@ -121,10 +121,10 @@ update for any other reason.
Server may generate 1 NameChangeRequest in a case when client acquired a new
lease or it releases an existing lease. In the former case, the NameChangeRequest
type is CHG_ADD, which indicates that the
b10
-dhcp-ddns module should add a new
type is CHG_ADD, which indicates that the
kea
-dhcp-ddns module should add a new
DNS binding for the client, and it is assumed that there is no DNS binding for
this client already. In the latter case, the NameChangeRequest type is CHG_REMOVE
to indicate to the
b10
-dhcp-ddns module that an existing DNS binding should be
to indicate to the
kea
-dhcp-ddns module that an existing DNS binding should be
removed from the DNS. The binding consists of the forward and reverse mapping.
The server may only remove the mapping which it had added. Therefore, the lease
database holds the information which updates (no update, reverse only update,
...
...
src/bin/dhcp4/dhcp4.spec
View file @
169b164a
...
...
@@ -346,28 +346,28 @@
"item_type": "string",
"item_optional": true,
"item_default": "127.0.0.1",
"item_description" : "IP address of
b10
-dhcp-ddns (IPv4 or IPv6)"
"item_description" : "IP address of
kea
-dhcp-ddns (IPv4 or IPv6)"
},
{
"item_name": "server-port",
"item_type": "integer",
"item_optional": true,
"item_default": 53001,
"item_description" : "port number of
b10
-dhcp-ddns"
"item_description" : "port number of
kea
-dhcp-ddns"
},
{
"item_name": "sender-ip",
"item_type": "string",
"item_optional": true,
"item_default": "",
"item_description" : "IP address from which to send to
b10
-dhcp-ddns (IPv4 or IPv6)"
"item_description" : "IP address from which to send to
kea
-dhcp-ddns (IPv4 or IPv6)"
},
{
"item_name": "sender-port",
"item_type": "integer",
"item_optional": true,
"item_default": 0,
"item_description" : "port number from which to send to
b10
-dhcp-ddns"
"item_description" : "port number from which to send to
kea
-dhcp-ddns"
},
{
"item_name": "max-queue-size",
...
...
@@ -381,7 +381,7 @@
"item_type": "string",
"item_optional": true,
"item_default": "UDP",
"item_description" : "Socket protocol to use with
b10
-dhcp-ddns"
"item_description" : "Socket protocol to use with
kea
-dhcp-ddns"
},
{
"item_name": "ncr-format",
...
...
src/bin/dhcp4/dhcp4_log.cc
View file @
169b164a
// Copyright (C) 2012
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012
, 2014
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -12,7 +12,7 @@
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
/// Defines the logger used by the top-level component of
b10
-dhcp4.
/// Defines the logger used by the top-level component of
kea
-dhcp4.
#include <dhcp4/dhcp4_log.h>
...
...
src/bin/dhcp4/dhcp4_log.h
View file @
169b164a
// Copyright (C) 2012
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012
, 2014
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -50,7 +50,7 @@ const int DBG_DHCP4_DETAIL = DBGLVL_TRACE_DETAIL;
// This level is used to log the contents of packets received and sent.
const
int
DBG_DHCP4_DETAIL_DATA
=
DBGLVL_TRACE_DETAIL_DATA
;
/// Define the logger for the "dhcp4" module part of
b10
-dhcp4. We could define
/// Define the logger for the "dhcp4" module part of
kea
-dhcp4. We could define
/// a logger in each file, but we would want to define a common name to avoid
/// spelling mistakes, so it is just one small step from there to define a
/// module-common logger.
...
...
src/bin/dhcp4/dhcp4_messages.mes
View file @
169b164a
...
...
@@ -77,7 +77,7 @@ change is committed by the administrator.
A debug message indicating that the DHCPv4 server has received an
updated configuration from the BIND 10 configuration system.
% DHCP4_DDNS_REQUEST_SEND_FAILED failed sending a request to
b10
-dhcp-ddns, error: %1, ncr: %2
% DHCP4_DDNS_REQUEST_SEND_FAILED failed sending a request to
kea
-dhcp-ddns, error: %1, ncr: %2
This error message indicates that DHCP4 server attempted to send a DDNS
update reqeust to the DHCP-DDNS server. This is most likely a configuration or
networking error.
...
...
@@ -177,7 +177,7 @@ failure.
% DHCP4_NCR_CREATION_FAILED failed to generate name change requests for DNS: %1
This message indicates that server was unable to generate NameChangeRequests
which should be sent to the
b10
-dhcp_ddns module to create
which should be sent to the
kea
-dhcp_ddns module to create
new DNS records for the lease being acquired or to update existing records
for the renewed lease. The reason for the failure is printed in the logged
message.
...
...
src/bin/dhcp4/dhcp4_srv.cc
View file @
169b164a
...
...
@@ -1916,7 +1916,7 @@ Dhcpv4Srv::d2ClientErrorHandler(const
dhcp_ddns
::
NameChangeRequestPtr
&
ncr
)
{
LOG_ERROR
(
dhcp4_logger
,
DHCP4_DDNS_REQUEST_SEND_FAILED
).
arg
(
result
).
arg
((
ncr
?
ncr
->
toText
()
:
" NULL "
));
// We cannot communicate with
b10
-dhcp-ddns, suspend futher updates.
// We cannot communicate with
kea
-dhcp-ddns, suspend futher updates.
/// @todo We may wish to revisit this, but for now we will simpy turn
/// them off.
CfgMgr
::
instance
().
getD2ClientMgr
().
suspendUpdates
();
...
...
src/bin/dhcp4/dhcp4_srv.h
View file @
169b164a
...
...
@@ -174,7 +174,7 @@ public:
/// @brief Implements the error handler for DHCP_DDNS IO errors
///
/// Invoked when a NameChangeRequest send to
b10
-dhcp-ddns completes with
/// Invoked when a NameChangeRequest send to
kea
-dhcp-ddns completes with
/// a failed status. These are communications errors, not data related
/// failures.
///
...
...
@@ -490,7 +490,7 @@ protected:
/// This creates the @c isc::dhcp_ddns::NameChangeRequest; emits a
/// the debug message which indicates whether the request being added is
/// to remove DNS entry or add a new entry; and then sends the request
/// to the D2ClientMgr for transmission to
b10
-dhcp-ddns.
/// to the D2ClientMgr for transmission to
kea
-dhcp-ddns.
///
/// @param chg_type A type of the NameChangeRequest (ADD or REMOVE).
/// @param lease A lease for which the NameChangeRequest is created and
...
...
src/bin/dhcp4/main.cc
View file @
169b164a
// Copyright (C) 2011-2012
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2012
, 2014
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -37,7 +37,7 @@ using namespace std;
namespace
{
const
char
*
const
DHCP4_NAME
=
"
b10
-dhcp4"
;
const
char
*
const
DHCP4_NAME
=
"
kea
-dhcp4"
;
const
char
*
const
DHCP4_LOGGER_NAME
=
"kea"
;
...
...
src/bin/dhcp6/dhcp6.dox
View file @
169b164a
...
...
@@ -16,7 +16,7 @@
@page dhcp6 DHCPv6 Server Component
BIND10 offers DHCPv6 server implementation. It is implemented as
b10
-dhcp6 component. Its primary code is located in
kea
-dhcp6 component. Its primary code is located in
isc::dhcp::Dhcpv6Srv class. It uses \ref libdhcp extensively,
especially lib::dhcp::Pkt6, isc::dhcp::Option and
isc::dhcp::IfaceMgr classes. Currently this code offers skeleton
...
...
@@ -38,7 +38,7 @@
@section dhcpv6ConfigParser Configuration Parser in DHCPv6
b10
-dhcp6 component uses BIND10 cfgmgr for commands and configuration. During
kea
-dhcp6 component uses BIND10 cfgmgr for commands and configuration. During
initial configuration (See \ref
isc::dhcp::ControlledDhcpv6Srv::establishSession()), the configuration handler
callback is installed (see isc::dhcp::ControlledDhcpv6Srv::dhcp6ConfigHandler().
...
...
@@ -104,10 +104,10 @@ DNS update to the client and that the server performs the reverse update only. C
version of the DHCPv6 server does not support delegation of the forward update
to the client. The implementation of this feature is planned for the future releases.
The
b10
-dhcp-ddns process is responsible for the actual communication with the DNS
server, i.e. to send DNS Update messages. The
b10
-dhcp6 module is responsible
The
kea
-dhcp-ddns process is responsible for the actual communication with the DNS
server, i.e. to send DNS Update messages. The
kea
-dhcp6 module is responsible
for generating so called @ref isc::dhcp_ddns::NameChangeRequest and sending it to the
b10
-dhcp-ddns module. The @ref isc::dhcp_ddns::NameChangeRequest object represents changes to the
kea
-dhcp-ddns module. The @ref isc::dhcp_ddns::NameChangeRequest object represents changes to the
DNS bindings, related to acquisition, renewal or release of the lease. The bind10-dhcp6
module implements the simple FIFO queue of the NameChangeRequest objects. The module
logic, which processes the incoming DHCPv6 Client FQDN Options puts these requests
...
...
@@ -116,7 +116,7 @@ into the FIFO queue.
@todo Currently the FIFO queue is not processed after the NameChangeRequests are
generated and added to it. In the future implementation steps it is planned to create
a code which will check if there are any outstanding requests in the queue and
send them to the
b10
-dhcp-ddns module when server is idle waiting for DHCP messages.
send them to the
kea
-dhcp-ddns module when server is idle waiting for DHCP messages.
In the simplest case, when client gets one address from the server, a DHCPv6 server
may generate 0, 1 or 2 NameChangeRequests during single message processing.
...
...
@@ -125,10 +125,10 @@ Server generates no NameChangeRequests if it is not configured to update DNS
Server may generate 1 NameChangeRequest in a situation when a client acquires a
new lease or it releases an existing lease. In the former case, the NameChangeRequest
type is CHG_ADD, which indicates that the
b10
-dhcp-ddns module should add a new DNS
type is CHG_ADD, which indicates that the
kea
-dhcp-ddns module should add a new DNS
binding for the client, and it is assumed that there is no DNS binding for this
client already. In the latter case, the NameChangeRequest type is CHG_REMOVE to
indicate to the
b10
-dhcp-ddns module that the existing DNS binding should be removed
indicate to the
kea
-dhcp-ddns module that the existing DNS binding should be removed
from the DNS. The binding consists of the forward and reverse mapping.
A server may only remove the mapping which it had added. Therefore, the lease database
holds an information which updates (no update, reverse only update, forward only update,
...
...
src/bin/dhcp6/dhcp6.spec
View file @
169b164a
...
...
@@ -383,28 +383,28 @@
"item_type": "string",
"item_optional": true,
"item_default": "127.0.0.1",
"item_description" : "IP address of
b10
-dhcp-ddns (IPv4 or IPv6)"
"item_description" : "IP address of
kea
-dhcp-ddns (IPv4 or IPv6)"
},
{
"item_name": "server-port",
"item_type": "integer",
"item_optional": true,
"item_default": 53001,
"item_description" : "port number of
b10
-dhcp-ddns"
"item_description" : "port number of
kea
-dhcp-ddns"
},
{
"item_name": "sender-ip",
"item_type": "string",
"item_optional": true,
"item_default": "",
"item_description" : "IP address from which to send to
b10
-dhcp-ddns (IPv4 or IPv6)"
"item_description" : "IP address from which to send to
kea
-dhcp-ddns (IPv4 or IPv6)"
},
{
"item_name": "sender-port",
"item_type": "integer",
"item_optional": true,
"item_default": 0,
"item_description" : "port number from which to send to
b10
-dhcp-ddns"
"item_description" : "port number from which to send to
kea
-dhcp-ddns"
},
{
"item_name": "max-queue-size",
...
...
@@ -418,7 +418,7 @@
"item_type": "string",
"item_optional": true,
"item_default": "UDP",
"item_description" : "Socket protocol to use with
b10
-dhcp-ddns"
"item_description" : "Socket protocol to use with
kea
-dhcp-ddns"
},
{
"item_name": "ncr-format",
...
...
src/bin/dhcp6/dhcp6_log.cc
View file @
169b164a
// Copyright (C) 2012
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012
, 2014
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
src/bin/dhcp6/dhcp6_log.h
View file @
169b164a
// Copyright (C) 2012
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2012
, 2014
Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
...
...
@@ -25,7 +25,7 @@ namespace dhcp {
/// \brief DHCP6 Logging
///
/// Defines the levels used to output debug messages in the non-library part of
/// the
b10
-dhcp6 program. Higher numbers equate to more verbose (and detailed)
/// the
kea
-dhcp6 program. Higher numbers equate to more verbose (and detailed)
/// output.
// Debug levels used to log information during startup and shutdown.
...
...
@@ -50,7 +50,7 @@ const int DBG_DHCP6_DETAIL = DBGLVL_TRACE_DETAIL;
// This level is used to log the contents of packets received and sent.
const
int
DBG_DHCP6_DETAIL_DATA
=
DBGLVL_TRACE_DETAIL_DATA
;
/// Define the logger for the "dhcp6" module part of
b10
-dhcp6. We could define
/// Define the logger for the "dhcp6" module part of
kea
-dhcp6. We could define
/// a logger in each file, but we would want to define a common name to avoid
/// spelling mistakes, so it is just one small step from there to define a
/// module-common logger.
...
...
src/bin/dhcp6/dhcp6_messages.mes
View file @
169b164a
...
...
@@ -105,7 +105,7 @@ that the DNS Update has been performed for it, but the FQDN held in the lease
database has invalid format and can't be transformed to the canonical on-wire
format.
% DHCP6_DDNS_REQUEST_SEND_FAILED failed sending a request to
b10
-dhcp-ddns, error: %1, ncr: %2
% DHCP6_DDNS_REQUEST_SEND_FAILED failed sending a request to
kea
-dhcp-ddns, error: %1, ncr: %2
This error message indicates that IPv6 DHCP server failed to send a DDNS
update reqeust to the DHCP-DDNS server. This is most likely a configuration or
networking error.
...
...
src/bin/dhcp6/dhcp6_srv.h
View file @
169b164a
...
...
@@ -130,7 +130,7 @@ public:
/// @brief Implements the error handler for DHCP_DDNS IO errors
///
/// Invoked when a NameChangeRequest send to
b10
-dhcp-ddns completes with
/// Invoked when a NameChangeRequest send to
kea
-dhcp-ddns completes with
/// a failed status. These are communications errors, not data related
/// failures.
///
...
...
@@ -673,7 +673,7 @@ protected:
volatile
bool
shutdown_
;
/// Holds a list of @c isc::dhcp_ddns::NameChangeRequest objects, which
/// are waiting for sending to
b10
-dhcp-ddns module.
/// are waiting for sending to
kea
-dhcp-ddns module.
std
::
queue
<
isc
::
dhcp_ddns
::
NameChangeRequest
>
name_change_reqs_
;
};
...
...
src/bin/keactrl/keactrl.conf.in
View file @
169b164a
...
...
@@ -12,7 +12,7 @@ kea_config_file=@sysconfdir@/@PACKAGE@/kea.conf
exec_prefix=@exec_prefix@
dhcp4_srv=@libexecdir@/@PACKAGE@/kea-dhcp4
dhcp6_srv=@libexecdir@/@PACKAGE@/kea-dhcp6
dhcp_ddns_srv=@libexecdir@/@PACKAGE@/
b10
-dhcp-ddns
dhcp_ddns_srv=@libexecdir@/@PACKAGE@/
kea
-dhcp-ddns
# Start DHCPv4 server?
dhcp4=yes
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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