mirror of
https://github.com/nmap/nmap.git
synced 2026-02-14 09:26:35 +00:00
Break apart host groups when a new host has the same address as one already in
the current host group. This was already done in nexthost but only affected ping scanning. Here in nmap.cc it takes effect for port scanning.
This commit is contained in:
@@ -411,7 +411,9 @@ static void massping(Target *hostbatch[], int num_hosts, struct scan_lists *port
|
||||
2. it uses a different source address, or
|
||||
3. it is directly connected when the other hosts are not, or vice versa, or
|
||||
4. it has the same IP address as another target already in the group.
|
||||
These restrictions only apply for raw scans. */
|
||||
These restrictions only apply for raw scans. This function is similar to one
|
||||
of the same name in nmap.cc. That one is for port scanning, this one is for
|
||||
ping scanning. */
|
||||
static bool target_needs_new_hostgroup(const HostGroupState *hs, const Target *target) {
|
||||
int i;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user