1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Localize struct pingtech in scan_engine.cc.

This commit is contained in:
david
2013-01-18 00:33:03 +00:00
parent 58de96cfbe
commit b1c4f7f012
2 changed files with 8 additions and 11 deletions

View File

@@ -650,7 +650,14 @@ public:
/* If ping_scan is true (unless ping_scan_arp is also true), this is the set
of ping techniques to use (ICMP, raw ICMP, TCP connect, raw TCP, or raw
UDP). */
struct pingtech ptech;
struct {
unsigned int rawicmpscan: 1,
connecttcpscan: 1,
rawtcpscan: 1,
rawudpscan: 1,
rawsctpscan: 1,
rawprotoscan: 1;
} ptech;
bool isRawScan();

View File

@@ -121,16 +121,6 @@
class HostGroupState;
/**************************STRUCTURES******************************/
struct pingtech {
unsigned int rawicmpscan: 1,
connecttcpscan: 1,
rawtcpscan: 1,
rawudpscan: 1,
rawsctpscan: 1,
rawprotoscan: 1;
};
/* Ports is the list of ports the user asked to be scanned (0 terminated),
you can just pass NULL (it is only a stupid optimization that needs it) */
Target *nexthost(HostGroupState *hs,const addrset *exclude_group,