From c76cdc8e4412d5b6bf9fb3e8515b204460adbf8b Mon Sep 17 00:00:00 2001 From: david Date: Fri, 12 Oct 2007 03:38:38 +0000 Subject: [PATCH] Make the old massping be used when NEW_MASSPING is undefined in targets.h. This is the last revision that contains massping. --- targets.cc | 4 ---- targets.h | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/targets.cc b/targets.cc index 4e7f35580..79c14dd5e 100644 --- a/targets.cc +++ b/targets.cc @@ -111,10 +111,6 @@ #include "nmap_tty.h" #include "utils.h" -/* If defined, use the new massping that uses ultra_scan instead of the old - standalone function. */ -#define NEW_MASSPING - using namespace std; extern NmapOps o; enum pingstyle { pingstyle_unknown, pingstyle_rawtcp, pingstyle_rawudp, pingstyle_connecttcp, diff --git a/targets.h b/targets.h index 8d2ad7b0d..6baee5f19 100644 --- a/targets.h +++ b/targets.h @@ -126,6 +126,10 @@ #include "nmap.h" #include "global_structures.h" +/* If defined, use the new massping that uses ultra_scan instead of the old + standalone function. */ +#define NEW_MASSPING + class HostGroupState; /**************************STRUCTURES******************************/ @@ -156,6 +160,9 @@ struct tcpqueryinfo { struct pingtech { unsigned int rawicmpscan: 1, +#ifndef NEW_MASSPING + icmpscan: 1, +#endif connecttcpscan: 1, rawtcpscan: 1, rawudpscan: 1;