mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Change reason.cc/h to portreasons.cc/h. This is because of a reason.h on Windows which causes compilation problems. A workaround was employed, but this is incase it pops up again. I also changed the recent CHANGELOG entry mentioning reason.h so there's no confusion
This commit is contained in:
@@ -7,7 +7,7 @@ o Fixed an output bug on systems like Windows which return -1 when
|
|||||||
vsnprintf is passed a too-small buffer rather than returning the
|
vsnprintf is passed a too-small buffer rather than returning the
|
||||||
size needed. Thanks to jah (jah(a)zadkiel.plus.com) for the report.
|
size needed. Thanks to jah (jah(a)zadkiel.plus.com) for the report.
|
||||||
|
|
||||||
o Added sys/types.h include to reason.h to help OpenBSD compilation.
|
o Added sys/types.h include to portreasons.h to help OpenBSD compilation.
|
||||||
Thanks to Olivier Meyer for the patch.
|
Thanks to Olivier Meyer for the patch.
|
||||||
|
|
||||||
o Updated IANA assignment IP list for random IP (-iR) generation. [Kris]
|
o Updated IANA assignment IP list for random IP (-iR) generation. [Kris]
|
||||||
|
|||||||
@@ -62,11 +62,11 @@ NSE_OBJS=nse_main.o nse_auxiliar.o nse_nsock.o nse_init.o nse_nmaplib.o nse_debu
|
|||||||
NSESTDLIB=nsestdlib
|
NSESTDLIB=nsestdlib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export SRCS = main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc traceroute.cc reason.cc $(NSE_SRC) @COMPAT_SRCS@
|
export SRCS = main.cc nmap.cc targets.cc tcpip.cc nmap_error.cc utils.cc idle_scan.cc osscan.cc osscan2.cc output.cc scan_engine.cc timing.cc charpool.cc services.cc protocols.cc nmap_rpc.cc portlist.cc NmapOps.cc TargetGroup.cc Target.cc FingerPrintResults.cc service_scan.cc NmapOutputTable.cc MACLookup.cc nmap_tty.cc nmap_dns.cc traceroute.cc portreasons.cc $(NSE_SRC) @COMPAT_SRCS@
|
||||||
|
|
||||||
export HDRS = charpool.h FingerPrintResults.h global_structures.h idle_scan.h MACLookup.h nmap_amigaos.h nmap_dns.h nmap_error.h nmap.h NmapOps.h NmapOutputTable.h nmap_rpc.h nmap_tty.h nmap_winconfig.h osscan.h osscan2.h output.h portlist.h protocols.h scan_engine.h service_scan.h services.h TargetGroup.h Target.h targets.h tcpip.h timing.h utils.h traceroute.h reason.h $(NSE_HDRS)
|
export HDRS = charpool.h FingerPrintResults.h global_structures.h idle_scan.h MACLookup.h nmap_amigaos.h nmap_dns.h nmap_error.h nmap.h NmapOps.h NmapOutputTable.h nmap_rpc.h nmap_tty.h nmap_winconfig.h osscan.h osscan2.h output.h portlist.h protocols.h scan_engine.h service_scan.h services.h TargetGroup.h Target.h targets.h tcpip.h timing.h utils.h traceroute.h portreasons.h $(NSE_HDRS)
|
||||||
|
|
||||||
OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o nmap_tty.o nmap_dns.o traceroute.o reason.o $(NSE_OBJS) @COMPAT_OBJS@
|
OBJS = main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o osscan2.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o nmap_tty.o nmap_dns.o traceroute.o portreasons.o $(NSE_OBJS) @COMPAT_OBJS@
|
||||||
|
|
||||||
# %.o : %.cc -- nope this is a GNU extension
|
# %.o : %.cc -- nope this is a GNU extension
|
||||||
.cc.o:
|
.cc.o:
|
||||||
|
|||||||
2
Target.h
2
Target.h
@@ -110,7 +110,7 @@
|
|||||||
#include "nse_main.h"
|
#include "nse_main.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "reason.h"
|
#include "portreasons.h"
|
||||||
#include "portlist.h"
|
#include "portlist.h"
|
||||||
#include "tcpip.h"
|
#include "tcpip.h"
|
||||||
|
|
||||||
|
|||||||
@@ -310,7 +310,7 @@
|
|||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\reason.cc"
|
RelativePath="..\portreasons.cc"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
@@ -495,7 +495,7 @@
|
|||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\reason.h"
|
RelativePath="..\portreasons.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "NmapOutputTable.h"
|
#include "NmapOutputTable.h"
|
||||||
#include "MACLookup.h"
|
#include "MACLookup.h"
|
||||||
#include "reason.h"
|
#include "portreasons.h"
|
||||||
#include "protocols.h"
|
#include "protocols.h"
|
||||||
#include "nmap_rpc.h"
|
#include "nmap_rpc.h"
|
||||||
#include "Target.h"
|
#include "Target.h"
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
#include "nse_main.h"
|
#include "nse_main.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "reason.h"
|
#include "portreasons.h"
|
||||||
|
|
||||||
/* port states */
|
/* port states */
|
||||||
#define PORT_UNKNOWN 0
|
#define PORT_UNKNOWN 0
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* reason.cc -- Verbose packet-level information on port states *
|
* portreasons.cc -- Verbose packet-level information on port states *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
* *
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
#include "nmap.h"
|
#include "nmap.h"
|
||||||
#include "portlist.h"
|
#include "portlist.h"
|
||||||
#include "NmapOps.h"
|
#include "NmapOps.h"
|
||||||
#include "reason.h"
|
#include "portreasons.h"
|
||||||
#include "Target.h"
|
#include "Target.h"
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "winfix.h"
|
#include "winfix.h"
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* reason.cc -- Verbose packet-level information on port states *
|
* portreasons.h -- Verbose packet-level information on port states *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
* *
|
||||||
@@ -132,7 +132,7 @@ typedef struct port_reason_summary {
|
|||||||
struct port_reason_summary *next;
|
struct port_reason_summary *next;
|
||||||
} state_reason_summary_t;
|
} state_reason_summary_t;
|
||||||
|
|
||||||
/* reason.h:reason_codes and reason.cc:reason_str must stay in sync */
|
/* portreasons.h:reason_codes and portreasons.cc:reason_str must stay in sync */
|
||||||
enum reason_codes {
|
enum reason_codes {
|
||||||
ER_RESETPEER=0, ER_CONREFUSED, ER_CONACCEPT,
|
ER_RESETPEER=0, ER_CONREFUSED, ER_CONACCEPT,
|
||||||
ER_SYNACK, ER_UDPRESPONSE, ER_PROTORESPONSE,
|
ER_SYNACK, ER_UDPRESPONSE, ER_PROTORESPONSE,
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include "nmap_winconfig.h"
|
#include "nmap_winconfig.h"
|
||||||
#endif
|
#endif
|
||||||
#include "reason.h"
|
#include "portreasons.h"
|
||||||
#include <dnet.h>
|
#include <dnet.h>
|
||||||
#include "scan_engine.h"
|
#include "scan_engine.h"
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user