Nmap Development mailing list archives

[PATCH] Remove a few unused #defines in nmap.h


From: Kris Katterjohn <kjak () ispwest com>
Date: Fri, 29 Sep 2006 14:15:46 -0500

The attached patch removes a few unused macros and comments in nmap.h

It's a diff against 4.20ALPHA7

Thanks,
Kris Katterjohn
--- x/nmap.h    2006-08-24 20:47:58.000000000 -0500
+++ y/nmap.h    2006-09-29 14:06:53.000000000 -0500
@@ -272,15 +272,6 @@ void *realloc();
 /* How many hosts do we ping in parallel to see if they are up? Note that this is
    divided by the num probes per host */
 #define LOOKAHEAD 30
-/* If reads of a UDP port keep returning EAGAIN (errno 13), do we want to 
-   count the port as valid? */
-#define RISKY_UDP_SCAN 0
- /* This ideally should be a port that isn't in use for any protocol on our machine or on the target */ 
-#define MAGIC_PORT 49724
-/* How many udp sends without a ICMP port unreachable error does it take before we consider the port open? */
-#define UDP_MAX_PORT_RETRIES 4
- /*How many seconds before we give up on a host being alive? */
-
 #define FAKE_ARGV "pine" /* What ps and w should show if you use -q */
 /* How do we want to log into ftp sites for */ 
 #define FTPUSER "anonymous"
@@ -327,7 +318,6 @@ void *realloc();
 #endif
 
 #define INITIAL_RTT_TIMEOUT 1000 /* Allow 1 second initially for packet responses */
-#define HOST_TIMEOUT    0 /* By default allow unlimited time to scan each host */
 
 #ifndef MAX_RETRANSMISSIONS
 #define MAX_RETRANSMISSIONS 10    /* 11 probes to port at maximum */

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: