|
@@ -1,4 +1,4 @@
|
|
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
|
|
+// Copyright (C) 2012-2016 Internet Systems Consortium, Inc. ("ISC")
|
|
//
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// 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
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -26,6 +26,8 @@ This library contains several crucial elements for the operation of the DHCP ser
|
|
- isc::dhcp::HostMgr - manager for static reservations (a.k.a. host reservations).
|
|
- isc::dhcp::HostMgr - manager for static reservations (a.k.a. host reservations).
|
|
- isc::dhcp::D2ClientMgr - DHCP-DDNS (D2) client manager which is responsible for
|
|
- isc::dhcp::D2ClientMgr - DHCP-DDNS (D2) client manager which is responsible for
|
|
the communication between the DHCP server and the D2 component.
|
|
the communication between the DHCP server and the D2 component.
|
|
|
|
+- isc::dhcp::Dhcp4o6IpcBase - common part (base class) of DHCPv4-over-DHCPv6
|
|
|
|
+ inter server communication (aka IPC).
|
|
|
|
|
|
@section leasemgr Lease Manager
|
|
@section leasemgr Lease Manager
|
|
|
|
|
|
@@ -67,7 +69,7 @@ the \ref isc::dhcp::CfgMgr::getStagingCfg is called again a fresh/default
|
|
|
|
|
|
The Configuration Manager stores previous configurations, i.e. configurations
|
|
The Configuration Manager stores previous configurations, i.e. configurations
|
|
which occurred prior to the most current configuration. This is currently
|
|
which occurred prior to the most current configuration. This is currently
|
|
-unused (except for unit tests) by the deamons, but in the future this
|
|
|
|
|
|
+unused (except for unit tests) by the daemons, but in the future this
|
|
mechanism can be used to trigger a rollover of the server configuration
|
|
mechanism can be used to trigger a rollover of the server configuration
|
|
to a last good configuration that the administrator prefers.
|
|
to a last good configuration that the administrator prefers.
|
|
|
|
|
|
@@ -92,7 +94,7 @@ database. This object must implement the \ref isc::dhcp::BaseHostDataSource
|
|
interface and its implementation is specific to the type of storage
|
|
interface and its implementation is specific to the type of storage
|
|
holding the reservations. For example, the host data source managing
|
|
holding the reservations. For example, the host data source managing
|
|
host reservations in the MySQL database is required to establish
|
|
host reservations in the MySQL database is required to establish
|
|
-connection to the MySQL databse and issue specific queries. Once
|
|
|
|
|
|
+connection to the MySQL database and issue specific queries. Once
|
|
implemented, the \ref isc::dhcp::HostMgr::create method must be updated
|
|
implemented, the \ref isc::dhcp::HostMgr::create method must be updated
|
|
to create an instance of this datasource. Note, that this instance is
|
|
to create an instance of this datasource. Note, that this instance is
|
|
created as "alternate host data source" as opposed to the primary data
|
|
created as "alternate host data source" as opposed to the primary data
|
|
@@ -113,7 +115,7 @@ documentation.
|
|
@section optionsConfig Options Configuration Information
|
|
@section optionsConfig Options Configuration Information
|
|
|
|
|
|
The \ref isc::dhcp::CfgOption object holds a collection of options being
|
|
The \ref isc::dhcp::CfgOption object holds a collection of options being
|
|
-sent to the client. Since each subnet comes with a distnict set of
|
|
|
|
|
|
+sent to the client. Since each subnet comes with a distinct set of
|
|
options, every \ref isc::dhcp::Subnet object holds its own copy of the
|
|
options, every \ref isc::dhcp::Subnet object holds its own copy of the
|
|
\ref isc::dhcp::CfgOption object with specific options.
|
|
\ref isc::dhcp::CfgOption object with specific options.
|
|
|
|
|
|
@@ -137,7 +139,7 @@ that there may be cases when the server administrator doesn't specify
|
|
any subnet configuration and only wants global options to be used.
|
|
any subnet configuration and only wants global options to be used.
|
|
This is the case, when the DHCP server is used for stateless
|
|
This is the case, when the DHCP server is used for stateless
|
|
configuration, i.e. client's are not allocated an address or prefix,
|
|
configuration, i.e. client's are not allocated an address or prefix,
|
|
-and only stateless configruation is handed out.
|
|
|
|
|
|
+and only stateless configuration is handed out.
|
|
|
|
|
|
@section allocengine Allocation Engine
|
|
@section allocengine Allocation Engine
|
|
|
|
|
|
@@ -242,7 +244,7 @@ reserved until the client using this address releases or the server
|
|
assigns a different address for it.
|
|
assigns a different address for it.
|
|
|
|
|
|
In order to resolve this conflict the Allocation Engine will refuse to
|
|
In order to resolve this conflict the Allocation Engine will refuse to
|
|
-renew the lease for the client using the addres not reserved for it.
|
|
|
|
|
|
+renew the lease for the client using the address not reserved for it.
|
|
This client should fall back to the 4-way exchange and the Allocation
|
|
This client should fall back to the 4-way exchange and the Allocation
|
|
Engine will assign a different address. As a result, the reserved
|
|
Engine will assign a different address. As a result, the reserved
|
|
address will be freed for the use of the client for which the reservation
|
|
address will be freed for the use of the client for which the reservation
|
|
@@ -269,7 +271,7 @@ leases.
|
|
|
|
|
|
The @c isc::dhcp::TimerMgr has been created to address the issue of
|
|
The @c isc::dhcp::TimerMgr has been created to address the issue of
|
|
processing expired leases according to the the dedicated timer.
|
|
processing expired leases according to the the dedicated timer.
|
|
-Nevertheless, this concept is univeral and should be used for
|
|
|
|
|
|
+Nevertheless, this concept is universal and should be used for
|
|
all timers which need to be triggered asynchronously, i.e. independently
|
|
all timers which need to be triggered asynchronously, i.e. independently
|
|
from processing the DHCP messages.
|
|
from processing the DHCP messages.
|
|
|
|
|
|
@@ -366,4 +368,22 @@ since expiration elapsed. These methods are executed periodically
|
|
by the DHCP servers using the dedicated timers registered in the
|
|
by the DHCP servers using the dedicated timers registered in the
|
|
@c isc::dhcp::TimerMgr.
|
|
@c isc::dhcp::TimerMgr.
|
|
|
|
|
|
|
|
+@section dhcp4o6Ipc DHCPv4-over-DHCPv6 Inter Process Communication
|
|
|
|
+
|
|
|
|
+DHCPv4-over-DHCPv6 support is implemented using cooperating
|
|
|
|
+DHCPv6 and DHCPv6 servers. Servers communicate over a pair of
|
|
|
|
+local UDP sockets using consecutive ports. The common part of
|
|
|
|
+the Inter Process Communication (IPC) is provided by the base class
|
|
|
|
+@c isc::dhcp::Dhcp4o6IpcBase.
|
|
|
|
+
|
|
|
|
+The receiving interface name and remote IPv6 address meta information
|
|
|
|
+are conveyed within a Vendor Specific Information option with the ISC
|
|
|
|
+enterprise ID carrying interface and remote address suboptions.
|
|
|
|
+\ref isc::dhcp::Dhcp4o6IpcBase::send adds them,
|
|
|
|
+\ref isc::dhcp::Dhcp4o6IpcBase::receive decodes and removes them.
|
|
|
|
+
|
|
|
|
+@todo
|
|
|
|
+
|
|
|
|
+DHCPv4-over-DHCPv6 which are relayed by a DHCPv6 relay are not yet supported.
|
|
|
|
+
|
|
*/
|
|
*/
|