Remove IPAddr.h from Reporter.h

This commit is contained in:
Tim Wojtulewicz 2020-05-22 16:44:08 -07:00
parent ea3c679101
commit c558d771e4
14 changed files with 27 additions and 6 deletions

View file

@ -12,7 +12,7 @@
#include "Reporter.h" #include "Reporter.h"
#include "Scope.h" #include "Scope.h"
#include "ID.h" #include "ID.h"
#include "IPAddr.h"
AnonymizeIPAddr* ip_anonymizer[NUM_ADDR_ANONYMIZATION_METHODS] = {nullptr}; AnonymizeIPAddr* ip_anonymizer[NUM_ADDR_ANONYMIZATION_METHODS] = {nullptr};

View file

@ -2,6 +2,9 @@
#include "zeek-config.h" #include "zeek-config.h"
#include <vector>
#include <map>
#include "CompHash.h" #include "CompHash.h"
#include "BroString.h" #include "BroString.h"
#include "Dict.h" #include "Dict.h"
@ -9,9 +12,7 @@
#include "RE.h" #include "RE.h"
#include "Reporter.h" #include "Reporter.h"
#include "Func.h" #include "Func.h"
#include "IPAddr.h"
#include <vector>
#include <map>
CompositeHash::CompositeHash(IntrusivePtr<TypeList> composite_type) CompositeHash::CompositeHash(IntrusivePtr<TypeList> composite_type)
: type(std::move(composite_type)) : type(std::move(composite_type))

View file

@ -11,6 +11,7 @@
#include "File.h" #include "File.h"
#include "Reporter.h" #include "Reporter.h"
#include "ConvertUTF.h" #include "ConvertUTF.h"
#include "IPAddr.h"
#define DEFAULT_SIZE 128 #define DEFAULT_SIZE 128
#define SLOP 10 #define SLOP 10

View file

@ -9,6 +9,7 @@
#include <memory> #include <memory>
#include "threading/SerialTypes.h" #include "threading/SerialTypes.h"
#include "IPAddr.h"
struct ConnID; struct ConnID;
class BroString; class BroString;

View file

@ -11,7 +11,7 @@
#include <unordered_set> #include <unordered_set>
#include <unordered_map> #include <unordered_map>
#include "IPAddr.h" #include "BroList.h"
namespace analyzer { class Analyzer; } namespace analyzer { class Analyzer; }
namespace file_analysis { class File; } namespace file_analysis { class File; }
@ -35,6 +35,9 @@ protected:
InterpreterException() {} InterpreterException() {}
}; };
class IPAddr;
class Expr;
#define FMT_ATTR __attribute__((format(printf, 2, 3))) // sic! 1st is "this" I guess. #define FMT_ATTR __attribute__((format(printf, 2, 3))) // sic! 1st is "this" I guess.
class Reporter { class Reporter {

View file

@ -21,6 +21,7 @@
#include "Reporter.h" #include "Reporter.h"
#include "module_util.h" #include "module_util.h"
#include "Var.h" #include "Var.h"
#include "IPAddr.h"
using namespace std; using namespace std;

View file

@ -5,6 +5,7 @@
#include "DebugLogger.h" #include "DebugLogger.h"
#include "Reporter.h" #include "Reporter.h"
#include "net_util.h" #include "net_util.h"
#include "IPAddr.h"
const float SerializationFormat::GROWTH_FACTOR = 2.5; const float SerializationFormat::GROWTH_FACTOR = 2.5;
@ -435,4 +436,3 @@ bool BinarySerializationFormat::Write(const char* buf, int len, const char* tag)
uint32_t l = htonl(len); uint32_t l = htonl(len);
return WriteData(&l, sizeof(l)) && WriteData(buf, len); return WriteData(&l, sizeof(l)) && WriteData(buf, len);
} }

View file

@ -10,6 +10,7 @@
#include "Reporter.h" #include "Reporter.h"
#include "analyzer/Analyzer.h" #include "analyzer/Analyzer.h"
class TableVal;
class StringVal; class StringVal;
class Base64Converter; class Base64Converter;

View file

@ -10,6 +10,11 @@ class IntrusivePtr;
class ODesc; class ODesc;
namespace threading {
struct Value;
struct Field;
}
namespace bro_broker { namespace bro_broker {
extern IntrusivePtr<OpaqueType> opaque_of_data_type; extern IntrusivePtr<OpaqueType> opaque_of_data_type;

View file

@ -23,6 +23,7 @@
class Frame; class Frame;
class Func; class Func;
class VectorType;
namespace bro_broker { namespace bro_broker {

View file

@ -6,6 +6,7 @@
#include "NetVar.h" #include "NetVar.h"
#include "iosource/Manager.h" #include "iosource/Manager.h"
#include "Event.h" #include "Event.h"
#include "IPAddr.h"
using namespace threading; using namespace threading;

View file

@ -8,11 +8,15 @@
#include "iosource/IOSource.h" #include "iosource/IOSource.h"
#include "Flare.h" #include "Flare.h"
class BroObj;
namespace threading { namespace threading {
class BasicInputMessage; class BasicInputMessage;
class BasicOutputMessage; class BasicOutputMessage;
class HeartbeatMessage; class HeartbeatMessage;
struct Value;
struct Field;
/** /**
* A specialized thread that provides bi-directional message passing between * A specialized thread that provides bi-directional message passing between

View file

@ -12,6 +12,7 @@
#include "ID.h" #include "ID.h"
#include "Expr.h" #include "Expr.h"
#include "Scope.h" #include "Scope.h"
#include "IPAddr.h"
using namespace threading; using namespace threading;

View file

@ -10,6 +10,7 @@
#include "Reporter.h" #include "Reporter.h"
#include "Desc.h" #include "Desc.h"
#include "Type.h"
using namespace std; using namespace std;
using namespace zeekygen; using namespace zeekygen;