]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3183] Corrected a bug where microsecs timeout was passed as sec timeout.
authorMarcin Siodelski <marcin@isc.org>
Thu, 10 Oct 2013 15:28:00 +0000 (17:28 +0200)
committerMarcin Siodelski <marcin@isc.org>
Thu, 10 Oct 2013 15:28:00 +0000 (17:28 +0200)
tests/tools/perfdhcp/test_control.cc

index 1b127be739219bf80eeba501709002b8995b80ea..d94f032509527a9a57d77c941ec079c90d49da0b 100644 (file)
@@ -1134,7 +1134,7 @@ TestControl::receivePackets(const TestControlSocket& socket) {
         if (CommandOptions::instance().getIpVersion() == 4) {
             Pkt4Ptr pkt4;
             try {
-                pkt4 = IfaceMgr::instance().receive4(getCurrentTimeout());
+                pkt4 = IfaceMgr::instance().receive4(0, getCurrentTimeout());
             } catch (const Exception& e) {
                 std::cerr << "Failed to receive DHCPv4 packet: "
                           << e.what() <<  std::endl;
@@ -1152,7 +1152,7 @@ TestControl::receivePackets(const TestControlSocket& socket) {
         } else if (CommandOptions::instance().getIpVersion() == 6) {
             Pkt6Ptr pkt6;
             try {
-                pkt6 = IfaceMgr::instance().receive6(getCurrentTimeout());
+                pkt6 = IfaceMgr::instance().receive6(0, getCurrentTimeout());
             } catch (const Exception& e) {
                 std::cerr << "Failed to receive DHCPv6 packet: "
                           << e.what() << std::endl;