mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Remove unneeded nmap.h and global_structures.h includes in .h files
This commit is contained in:
parent
cfe8893304
commit
dfa969f3a2
17 changed files with 8 additions and 33 deletions
|
|
@ -128,8 +128,6 @@
|
|||
|
||||
class FingerPrintResults;
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "FPEngine.h"
|
||||
|
||||
/* Maximum number of results allowed in one of these things ... */
|
||||
|
|
|
|||
|
|
@ -126,8 +126,6 @@
|
|||
#ifndef NMAP_OPS_H
|
||||
#define NMAP_OPS_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "output.h"
|
||||
#include <nsock.h>
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -126,7 +126,10 @@
|
|||
#ifndef NMAPOUTPUTTABLE_H
|
||||
#define NMAPOUTPUTTABLE_H
|
||||
|
||||
#include "nmap.h"
|
||||
/* Keep assert() defined for security reasons */
|
||||
#undef NDEBUG
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
/********************** DEFINES/ENUMS ***********************************/
|
||||
|
||||
|
|
|
|||
1
Target.h
1
Target.h
|
|
@ -127,7 +127,6 @@
|
|||
#ifndef TARGET_H
|
||||
#define TARGET_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "FingerPrintResults.h"
|
||||
#include "libnetutil/netutil.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -135,8 +135,6 @@
|
|||
#include <set>
|
||||
#include <string>
|
||||
|
||||
#include "nmap.h"
|
||||
|
||||
/* We use bit vectors to represent what values are allowed in an IPv4 octet.
|
||||
Each vector is built up of an array of bitvector_t (any convenient integer
|
||||
type). */
|
||||
|
|
|
|||
|
|
@ -130,8 +130,6 @@
|
|||
#ifndef IDLE_SCAN_H
|
||||
#define IDLE_SCAN_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include <nbase.h>
|
||||
|
||||
class Target;
|
||||
|
|
|
|||
2
osscan.h
2
osscan.h
|
|
@ -126,8 +126,6 @@
|
|||
#ifndef OSSCAN_H
|
||||
#define OSSCAN_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "FingerPrintResults.h"
|
||||
#include "Target.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -127,8 +127,6 @@
|
|||
#ifndef OSSCAN2_H
|
||||
#define OSSCAN2_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "nbase.h"
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
|
|
|||
2
output.h
2
output.h
|
|
@ -163,8 +163,6 @@
|
|||
"use \"-Pn -sT localhost\" though.\n\n"
|
||||
|
||||
#include "portlist.h"
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include <nsock.h>
|
||||
|
||||
#include <string>
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
#ifndef REASON_H
|
||||
#define REASON_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "nbase.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include "winsock2.h"
|
||||
|
|
|
|||
|
|
@ -130,8 +130,6 @@
|
|||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "nbase.h"
|
||||
|
||||
#define PROTOCOL_TABLE_SIZE 256
|
||||
|
|
|
|||
|
|
@ -127,8 +127,6 @@
|
|||
#ifndef SCAN_ENGINE_H
|
||||
#define SCAN_ENGINE_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "timing.h"
|
||||
#include "tcpip.h"
|
||||
#include <list>
|
||||
|
|
|
|||
|
|
@ -127,8 +127,6 @@
|
|||
#ifndef SERVICE_SCAN_H
|
||||
#define SERVICE_SCAN_H
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "portlist.h"
|
||||
|
||||
#include <vector>
|
||||
|
|
|
|||
|
|
@ -132,8 +132,6 @@
|
|||
#else
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
|
||||
#include "nbase.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -147,10 +147,10 @@
|
|||
#include <sys/param.h> /* Defines MAXHOSTNAMELEN on BSD*/
|
||||
#endif
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
#include "TargetGroup.h"
|
||||
|
||||
class Target;
|
||||
|
||||
class TargetGroup {
|
||||
public:
|
||||
NetBlock *netblock;
|
||||
|
|
|
|||
5
tcpip.h
5
tcpip.h
|
|
@ -219,10 +219,7 @@ extern "C" {
|
|||
#include <signal.h>
|
||||
#include <dnet.h>
|
||||
|
||||
|
||||
|
||||
#include "nmap.h"
|
||||
#include "global_structures.h"
|
||||
class Target;
|
||||
|
||||
#ifndef INET_ADDRSTRLEN
|
||||
#define INET_ADDRSTRLEN 16
|
||||
|
|
|
|||
2
utils.h
2
utils.h
|
|
@ -130,7 +130,6 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include "nmap.h"
|
||||
#ifdef WIN32
|
||||
#include "mswin32\winclude.h"
|
||||
#else
|
||||
|
|
@ -162,7 +161,6 @@
|
|||
#include "nbase.h"
|
||||
|
||||
#include "nmap_error.h"
|
||||
#include "global_structures.h"
|
||||
|
||||
/* Arithmatic difference modulo 2^32 */
|
||||
#ifndef MOD_DIFF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue