usleep(100);
now = microsec_clock::universal_time();
+ // Wait for 200ms between subsequent check for resending.
+ // This time taken based on experiments. For times 10-30ms whole scenario
+ // time significantly grows. The same for times >200ms. The optimal times
+ // are between 50-200ms. \todo more research is needed.
if (now - prev_cycle_time > milliseconds(200)) { // check if 0.2s elapsed
prev_cycle_time = now;
int still_left_cnt = 0;
// Use templates for this test.
processCmdLine(opt, "perfdhcp -l fake -r 100 -R 20 -n 100"
" -D 10% -L 10547 -g single"
- // TODO: seems to be broken as it crashes building pkt
+ // \todo seems to be broken as it crashes building pkt
// " -T " + getFullPath("discover-example.hex")
// + " -T " + getFullPath("request4-example.hex")
" 127.0.0.1");
// The maximum number of dropped packets is 3 (because of -D 3).
processCmdLine(opt, "perfdhcp -l fake"
" -6 -r 100 -n 100 -R 20 -D 3 -L 10547"
- // TODO: seems to be broken as it crashes building pkt
+ // \todo seems to be broken as it crashes building pkt
// " -T " + getFullPath("solicit-example.hex")
// + " -T " + getFullPath("request6-example.hex")
" ::1");
EXPECT_THROW(process(opt, "perfdhcp -6 -I -4 -l ethx all"),
isc::InvalidParameter);
- // TODO - other negative cases
+ // \todo other negative cases
}
TEST_F(CommandOptionsTest, LocalPort) {