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:
@@ -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();
|
||||
|
||||
|
||||
10
targets.h
10
targets.h
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user