mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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
|
/* 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
|
of ping techniques to use (ICMP, raw ICMP, TCP connect, raw TCP, or raw
|
||||||
UDP). */
|
UDP). */
|
||||||
struct pingtech ptech;
|
struct {
|
||||||
|
unsigned int rawicmpscan: 1,
|
||||||
|
connecttcpscan: 1,
|
||||||
|
rawtcpscan: 1,
|
||||||
|
rawudpscan: 1,
|
||||||
|
rawsctpscan: 1,
|
||||||
|
rawprotoscan: 1;
|
||||||
|
} ptech;
|
||||||
|
|
||||||
bool isRawScan();
|
bool isRawScan();
|
||||||
|
|
||||||
|
|||||||
10
targets.h
10
targets.h
@@ -121,16 +121,6 @@
|
|||||||
|
|
||||||
class HostGroupState;
|
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),
|
/* 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) */
|
you can just pass NULL (it is only a stupid optimization that needs it) */
|
||||||
Target *nexthost(HostGroupState *hs,const addrset *exclude_group,
|
Target *nexthost(HostGroupState *hs,const addrset *exclude_group,
|
||||||
|
|||||||
Reference in New Issue
Block a user