// Send multiple renews to satisfy the desired rate.
if (options_.getIpVersion() == 4) {
- tc_.sendMultipleMessages(DHCPREQUEST, renew_packets_due);
+ tc_.sendMultipleMessages4(DHCPREQUEST, renew_packets_due);
} else {
tc_.sendMultipleMessages6(DHCPV6_RENEW, renew_packets_due);
}
// Send Release messages.
if (options_.getIpVersion() == 4) {
- tc_.sendMultipleMessages(DHCPRELEASE, release_packets_due);
+ tc_.sendMultipleMessages4(DHCPRELEASE, release_packets_due);
} else {
tc_.sendMultipleMessages6(DHCPV6_RELEASE, release_packets_due);
}
}
uint64_t
-TestControl::sendMultipleMessages(const uint32_t msg_type,
- const uint64_t msg_num) {
+TestControl::sendMultipleMessages4(const uint32_t msg_type,
+ const uint64_t msg_num) {
for (uint64_t i = 0; i < msg_num; ++i) {
if (!sendMessageFromAck(msg_type)) {
return (i);
/// \param msg_num A number of messages to be sent.
///
/// \return A number of messages actually sent.
- uint64_t sendMultipleMessages(const uint32_t msg_type,
- const uint64_t msg_num);
+ uint64_t sendMultipleMessages4(const uint32_t msg_type,
+ const uint64_t msg_num);
/// \brief Send number of DHCPv6 Renew or Release messages to the server.
///
using TestControl::sendDiscover4;
using TestControl::sendRequest4;
using TestControl::sendPackets;
- using TestControl::sendMultipleMessages;
+ using TestControl::sendMultipleMessages4;
using TestControl::sendMultipleMessages6;
using TestControl::sendRequest6;
using TestControl::sendSolicit6;
// Try to send 5 messages. It should be successful because 10
// DHCPREQUEST messages has been received. For each of them we
// should be able to send renewal.
- msg_num = tc.sendMultipleMessages(msg_type, 5);
+ msg_num = tc.sendMultipleMessages4(msg_type, 5);
// Make sure that we have sent 5 messages.
EXPECT_EQ(5, msg_num);
// Try to do it again. We should still have 5 Reply packets for
// which renews haven't been sent yet.
- msg_num = tc.sendMultipleMessages(msg_type, 5);
+ msg_num = tc.sendMultipleMessages4(msg_type, 5);
EXPECT_EQ(5, msg_num);
// We used all the DHCPACK packets (we sent renew or release for each of
// them already). Therefore, no further renew messages should be sent
// before we acquire new leases.
- msg_num = tc.sendMultipleMessages(msg_type, 5);
+ msg_num = tc.sendMultipleMessages4(msg_type, 5);
// Make sure that no message has been sent.
EXPECT_EQ(0, msg_num);
}