Browse Source

[2615] Rollback unwanted dhcp6/tests changes

Previous commit, 55207601c7a71e7db55d8fff2b451b054a7b315e, included
changes in the dhcp6/tests directory which should not have been included.
These have been removed.
Thomas Markwalder 9 years ago
parent
commit
c114322a51
2 changed files with 2 additions and 27 deletions
  1. 0 1
      src/bin/dhcp6/tests/Makefile.am
  2. 2 26
      src/bin/dhcp6/tests/dhcp6_client.cc

+ 0 - 1
src/bin/dhcp6/tests/Makefile.am

@@ -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
 

+ 2 - 26
src/bin/dhcp6/tests/dhcp6_client.cc

@@ -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);