]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2615] Rollback unwanted dhcp6/tests changes
authorThomas Markwalder <tmark@isc.org>
Wed, 26 Aug 2015 17:40:21 +0000 (13:40 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 26 Aug 2015 17:40:21 +0000 (13:40 -0400)
Previous commit, 55207601c7a71e7db55d8fff2b451b054a7b315e, included
changes in the dhcp6/tests directory which should not have been included.
These have been removed.

src/bin/dhcp6/tests/Makefile.am
src/bin/dhcp6/tests/dhcp6_client.cc

index ae23ffee9aaee95de8f6a9cb717e8fa850572397..f00c7520dd7c19a32a8f6712baf359284bd1cf2b 100644 (file)
@@ -88,7 +88,6 @@ dhcp6_unittests_SOURCES += config_parser_unittest.cc
 dhcp6_unittests_SOURCES += confirm_unittest.cc
 dhcp6_unittests_SOURCES += infrequest_unittest.cc
 dhcp6_unittests_SOURCES += dhcp6_message_test.cc dhcp6_message_test.h
-dhcp6_unittests_SOURCES += out_of_range_unittest.cc
 
 dhcp6_unittests_SOURCES += kea_controller_unittest.cc
 
index 18f21aa53dc5e8e765f61b015f950a1daf060cf2..9de4755c8b034cf659fe713baef18f524e62f54c 100644 (file)
@@ -336,11 +336,11 @@ Dhcp6Client::doRequest() {
         query->addOption(forced_server_id_);
     }
     copyIAs(context_.response_, query);
-    context_.query_ = query;
 
     // Add Client FQDN if configured.
     appendFQDN();
 
+    context_.query_ = query;
     sendMsg(context_.query_);
     context_.response_ = receiveOneMsg();
 
@@ -383,11 +383,11 @@ Dhcp6Client::doRenew() {
     Pkt6Ptr query = createMsg(DHCPV6_RENEW);
     query->addOption(context_.response_->getOption(D6O_SERVERID));
     copyIAsFromLeases(query);
-    context_.query_ = query;
 
     // Add Client FQDN if configured.
     appendFQDN();
 
+    context_.query_ = query;
     sendMsg(context_.query_);
     context_.response_ = receiveOneMsg();
     // Apply configuration only if the server has responded.
@@ -400,29 +400,6 @@ void
 Dhcp6Client::doRebind() {
     Pkt6Ptr query = createMsg(DHCPV6_REBIND);
     copyIAsFromLeases(query);
-    context_.query_ = query;
-
-    // Add Client FQDN if configured.
-    appendFQDN();
-
-    sendMsg(context_.query_);
-    context_.response_ = receiveOneMsg();
-    // Apply configuration only if the server has responded.
-    if (context_.response_) {
-        applyRcvdConfiguration(context_.response_);
-    }
-}
-
-
-void
-Dhcp6Client::doRelease() {
-    Pkt6Ptr query = createMsg(DHCPV6_RELEASE);
-    if (!forced_server_id_) {
-        query->addOption(context_.response_->getOption(D6O_SERVERID));
-    } else {
-        query->addOption(forced_server_id_);
-    }
-    copyIAsFromLeases(query);
 
     // Add Client FQDN if configured.
     appendFQDN();
@@ -436,7 +413,6 @@ Dhcp6Client::doRelease() {
     }
 }
 
-
 void
 Dhcp6Client::doConfirm() {
     context_.query_ = createMsg(DHCPV6_CONFIRM);