mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +00:00
Whitespace and formatting fix.
This commit is contained in:
11
nmap.cc
11
nmap.cc
@@ -1321,7 +1321,6 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (o.traceroute && (o.idlescan || o.connectscan))
|
||||
fatal("Traceroute does not support idle or connect scan");
|
||||
|
||||
|
||||
if ((o.noportscan) && (portlist || o.fastscan))
|
||||
fatal("You cannot use -F (fast scan) or -p (explicit port selection) when not doing a port scan");
|
||||
|
||||
@@ -1635,8 +1634,8 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (num_host_exp_groups == 0)
|
||||
break;
|
||||
delete hstate;
|
||||
hstate = new HostGroupState(o.ping_group_sz, o.randomize_hosts,
|
||||
host_exp_group, num_host_exp_groups);
|
||||
hstate = new HostGroupState(o.ping_group_sz, o.randomize_hosts,host_exp_group,
|
||||
num_host_exp_groups);
|
||||
|
||||
/* Try one last time -- with new expressions */
|
||||
currenths = nexthost(hstate, exclude_group, &ports, o.pingtype);
|
||||
@@ -1673,7 +1672,8 @@ int nmap_main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
/* I used to check that !currenths->weird_responses, but in some
|
||||
rare cases, such IPs CAN be port successfully scanned and even connected to */
|
||||
rare cases, such IPs CAN be port successfully scanned and even
|
||||
connected to */
|
||||
if (!(currenths->flags & HOST_UP)) {
|
||||
if (o.verbose && (!o.openOnly() || currenths->ports.hasOpenPorts())) {
|
||||
xml_start_tag("host");
|
||||
@@ -1698,7 +1698,8 @@ int nmap_main(int argc, char *argv[]) {
|
||||
o.setSourceSockAddr(&ss, sslen);
|
||||
currenths->setSourceSockAddr(&ss, sslen);
|
||||
if (! sourceaddrwarning) {
|
||||
error("WARNING: We could not determine for sure which interface to use, so we are guessing %s . If this is wrong, use -S <my_IP_address>.", inet_socktop(&ss));
|
||||
error("WARNING: We could not determine for sure which interface to use, so we are guessing %s . If this is wrong, use -S <my_IP_address>.",
|
||||
inet_socktop(&ss));
|
||||
sourceaddrwarning = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user