diff --git a/scan_engine.cc b/scan_engine.cc index f9d894494..84a2b1a63 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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(); diff --git a/targets.h b/targets.h index aed11893d..ef63863d6 100644 --- a/targets.h +++ b/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,