]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5376] Addressed review comments.
authorMarcin Siodelski <marcin@isc.org>
Tue, 17 Oct 2017 15:21:27 +0000 (17:21 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 17 Oct 2017 15:21:27 +0000 (17:21 +0200)
Updated User's Guide and rename function.

doc/guide/dhcp4-srv.xml
src/bin/dhcp4/dhcp4_srv.cc
src/lib/dhcpsrv/cfg_shared_networks.cc
src/lib/dhcpsrv/cfg_shared_networks.h

index 9996ae474d74d949f532da1c6d2a182ac895a3d8..d261017c198cdef85ae70ccd2188cd43bcf1ef2d 100644 (file)
@@ -3852,17 +3852,9 @@ i.e. it will assign increasing integer values starting from 1.</para>
 
       <para>
         It is possible to override default server identifier values by specifying
-        "dhcp-server-identifier" option. This option can be specified at any
-        configuration level, but it is recommended to only specify this option on
-        global, shared network or subnet level. Specifying this option on a class
-        or host reservation level will work only in cases when the specified
-        server identifier is an IP address assigned to one of the interfaces on
-        which the server is listening to DHCP queries. Otherwise, the server
-        will drop the messages with these server identifiers. The server will
-        accept messages including server identifiers specified on the global,
-        shared network and subnet level, even if they point to IP addresses not
-        assigned to any interfaces, on which the server is listening to the
-        DHCP queries.
+        "dhcp-server-identifier" option. This option is only supported on the
+        global, shared network and subnet level. It must not be specified
+        on client class and host reservation level.
       </para>
 
       <para>
index 45972d6570739e75d3e4d53fa931f3b439b19338..5a7f05453e1817ee7533a9acd3e7c149c5840394 100644 (file)
@@ -2863,7 +2863,7 @@ Dhcpv4Srv::acceptServerId(const Pkt4Ptr& query) const {
     // This server identifier is not configured for any of the subnets, so
     // check on the shared network level.
     CfgSharedNetworks4Ptr cfg_networks = cfg->getCfgSharedNetworks4();
-    if (cfg_networks->hasSubnetWithServerId(server_id)) {
+    if (cfg_networks->hasNetworkWithServerId(server_id)) {
         return (true);
     }
 
index 5b7971df8a9cf5df5e0864c16006241cf9b6b7e7..8bdbe40a7188fe2bf78224d21ed25494674aa4fb 100644 (file)
@@ -13,7 +13,7 @@ namespace isc {
 namespace dhcp {
 
 bool
-CfgSharedNetworks4::hasSubnetWithServerId(const IOAddress& server_id) const {
+CfgSharedNetworks4::hasNetworkWithServerId(const IOAddress& server_id) const {
     const auto& index = networks_.get<SharedNetworkServerIdIndexTag>();
     auto network_it = index.find(server_id);
     return (network_it != index.cend());
index 5daaa389ea1ee552edbce639f8a1ad8f6be104e2..252e5e4a222c75b62ca238fbb4eb81f81e8cc907 100644 (file)
@@ -119,7 +119,7 @@ public:
     /// @param server_id Server identifier.
     ///
     /// @return true if there is a network with a specified server identifier.
-    bool hasSubnetWithServerId(const asiolink::IOAddress& server_id) const;
+    bool hasNetworkWithServerId(const asiolink::IOAddress& server_id) const;
 
 
 };