mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 08:51:36 +00:00
Use forward-declaration of class Target instead of including Target.h in *.h
This commit is contained in:
1
nmap.cc
1
nmap.cc
@@ -139,6 +139,7 @@
|
||||
#include "protocols.h"
|
||||
#include "targets.h"
|
||||
#include "TargetGroup.h"
|
||||
#include "Target.h"
|
||||
#include "service_scan.h"
|
||||
#include "charpool.h"
|
||||
#include "nmap_error.h"
|
||||
|
||||
@@ -125,6 +125,7 @@
|
||||
|
||||
#include "nmap_error.h"
|
||||
#include "NmapOps.h"
|
||||
#include "Target.h"
|
||||
#include "payload.h"
|
||||
#include "scan_engine_raw.h"
|
||||
#include "struct_ip.h"
|
||||
|
||||
@@ -127,9 +127,10 @@
|
||||
#define SCAN_ENGINE_RAW_H
|
||||
|
||||
#include "scan_engine.h"
|
||||
#include "Target.h"
|
||||
#include <vector>
|
||||
|
||||
class Target;
|
||||
|
||||
void increment_base_port();
|
||||
int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime);
|
||||
void begin_sniffer(UltraScanInfo *USI, std::vector<Target *> &Targets);
|
||||
|
||||
@@ -125,10 +125,10 @@
|
||||
#ifndef NMAP_TRACEROUTE_H
|
||||
#define NMAP_TRACEROUTE_H
|
||||
|
||||
#include "Target.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class Target;
|
||||
|
||||
int traceroute(std::vector<Target *> &Targets);
|
||||
|
||||
void traceroute_hop_cache_clear();
|
||||
|
||||
Reference in New Issue
Block a user