From a90ec1ef8abe1f8e4d7fc332f37049bae08bc566 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 28 May 2008 15:35:23 +0000 Subject: [PATCH] Use DEFAULT_PING_TYPES for the -PB option rather than reconstructing the definition. --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 293912d4e..67ffcc94f 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1083,7 +1083,7 @@ int nmap_main(int argc, char *argv[]) { else if (*optarg == 'B') { if (o.num_ping_ackprobes > 0) fatal("Only one -PB, -PA, or -PT option is allowed. Combine port ranges with commas."); - o.pingtype = (PINGTYPE_TCP|PINGTYPE_TCP_USE_ACK|PINGTYPE_ICMP_PING); + o.pingtype = DEFAULT_PING_TYPES; if (*(optarg + 1) != '\0') { getpts_simple(optarg + 1, SCAN_TCP_PORT, &o.ping_ackprobes, &o.num_ping_ackprobes); if (o.num_ping_ackprobes <= 0) {