Nmap Development mailing list archives

[PATCH] Remove unused macro "SA"


From: Kris Katterjohn <kjak () ispwest com>
Date: Tue, 28 Mar 2006 13:03:08 -0600

The attached patch removes the unused macro "SA". Or is it being kept around
for a reason?

Thanks,
Kris


--- nmap.h.orig 2006-03-07 16:36:28.000000000 -0600
+++ nmap.h      2006-03-28 12:51:27.000000000 -0600
@@ -345,7 +345,6 @@ void *realloc();
 
 /* DO NOT change stuff after this point */
 #define UC(b)   (((int)b)&0xff)
-#define SA    struct sockaddr  /*Ubertechnique from R. Stevens */
 
 #define HOST_UP 1
 #define HOST_DOWN 2 

--- tcpip.cc.orig       2006-03-08 15:29:54.000000000 -0600
+++ tcpip.cc    2006-03-28 12:51:38.000000000 -0600
@@ -2301,7 +2301,6 @@ int sd;
     len = ifr->ifr_addr.sa_len + sizeof(ifr->ifr_name);
 #else
     len = sizeof(struct ifreq);
-    /* len = sizeof(SA); */
 #endif
 
 #if TCPIP_DEBUGGING

--- tcpip.h.orig        2006-03-08 15:14:09.000000000 -0600
+++ tcpip.h     2006-03-28 12:51:29.000000000 -0600
@@ -524,7 +524,6 @@ class ArpProbe {
  /* 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
 #define TVAL2LONG(X)  X.tv_sec * 1e6 + X.tv_usec
-#define SA struct sockaddr
 
 /* Prototypes */
 /* Converts an IP address given in a sockaddr_storage to an IPv4 or




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

Current thread: