mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59:03 +00:00
Add a symbolic constant for INITIAL_ARP_RTT_TIMEOUT.
This commit is contained in:
@@ -117,7 +117,7 @@ static void arpping(Target *hostbatch[], int num_hosts) {
|
||||
for (targetno = 0; targetno < num_hosts; targetno++) {
|
||||
initialize_timeout_info(&hostbatch[targetno]->to);
|
||||
/* Default timout should be much lower for arp */
|
||||
hostbatch[targetno]->to.timeout = MAX(o.minRttTimeout(), MIN(o.initialRttTimeout(), 100)) * 1000;
|
||||
hostbatch[targetno]->to.timeout = MAX(o.minRttTimeout(), MIN(o.initialRttTimeout(), INITIAL_ARP_RTT_TIMEOUT)) * 1000;
|
||||
if (!hostbatch[targetno]->SrcMACAddress()) {
|
||||
bool islocal = islocalhost(hostbatch[targetno]->v4hostip());
|
||||
if (islocal) {
|
||||
|
||||
Reference in New Issue
Block a user