Changeset 1287
- Timestamp:
- 11/16/08 00:30:41 (5 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnsreplay.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsreplay.cc
r1275 r1287 66 66 StatBag S; 67 67 bool g_quiet=true; 68 int g_timeoutMsec=0; 68 69 69 70 namespace po = boost::program_options; … … 337 338 IPEndpoint remote; 338 339 339 int res=waitForData(s_socket->getHandle(), 0, 25000); 340 int res=waitForData(s_socket->getHandle(), g_timeoutMsec/1000, 1000*(g_timeoutMsec%1000)); 341 340 342 if(res < 0 || res==0) 341 343 return; … … 571 573 ("quiet", po::value<bool>()->default_value(true), "don't be too noisy") 572 574 ("recursive", po::value<bool>()->default_value(true), "look at recursion desired packets, or not (defaults true)") 573 ("speedup", po::value<float>()->default_value(1), "replay at this speedup"); 575 ("speedup", po::value<float>()->default_value(1), "replay at this speedup") 576 ("timeout-msec", po::value<uint32_t>()->default_value(500), "wait at least this many millyseconds for a reply"); 574 577 575 578 po::options_description alloptions; … … 611 614 612 615 float speedup=g_vm["speedup"].as<float>(); 616 g_timeoutMsec=g_vm["timeout-msec"].as<uint32_t>(); 613 617 614 618 PcapPacketReader pr(g_vm["pcap-source"].as<string>());