mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Localize struct pingtech in scan_engine.cc.
This commit is contained in:
parent
58de96cfbe
commit
b1c4f7f012
2 changed files with 8 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue