mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
GH-1079: Use full paths starting with zeek/ when including files
This commit is contained in:
parent
78fc5615a5
commit
96d9115360
640 changed files with 2708 additions and 2698 deletions
20
src/Anon.cc
20
src/Anon.cc
|
@ -1,19 +1,19 @@
|
|||
#include "Anon.h"
|
||||
#include "zeek/Anon.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "net_util.h"
|
||||
#include "Val.h"
|
||||
#include "NetVar.h"
|
||||
#include "Reporter.h"
|
||||
#include "Scope.h"
|
||||
#include "ID.h"
|
||||
#include "IPAddr.h"
|
||||
#include "Event.h"
|
||||
#include "zeek/util.h"
|
||||
#include "zeek/net_util.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/Event.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
14
src/Attr.cc
14
src/Attr.cc
|
@ -2,13 +2,13 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Attr.h"
|
||||
#include "Expr.h"
|
||||
#include "Desc.h"
|
||||
#include "Val.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "input/Manager.h"
|
||||
#include "threading/SerialTypes.h"
|
||||
#include "zeek/Attr.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/input/Manager.h"
|
||||
#include "zeek/threading/SerialTypes.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "Obj.h"
|
||||
#include "ZeekList.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Expr, zeek::detail);
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#include "zeek-config.h"
|
||||
#include "Base64.h"
|
||||
#include "ZeekString.h"
|
||||
#include "Reporter.h"
|
||||
#include "Conn.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "zeek/Base64.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Conn.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
int Base64Converter::default_base64_table[256];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "BifReturnVal.h"
|
||||
#include "Val.h"
|
||||
#include "zeek/BifReturnVal.h"
|
||||
#include "zeek/Val.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
namespace zeek {
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#warning "BroList.h is deprecated and will be removed in v4.1. Use ZeekList.h instead."
|
||||
#include "ZeekList.h"
|
||||
#include "zeek/ZeekList.h"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#warning "BroString.h is deprecated and will be removed in v4.1. Use ZeekString.h instead."
|
||||
#include "ZeekString.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/CCL.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "CCL.h"
|
||||
#include "RE.h"
|
||||
#include "DFA.h"
|
||||
#include "zeek/RE.h"
|
||||
#include "zeek/DFA.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/CompHash.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include "CompHash.h"
|
||||
#include "ZeekString.h"
|
||||
#include "Dict.h"
|
||||
#include "Val.h"
|
||||
#include "RE.h"
|
||||
#include "Reporter.h"
|
||||
#include "Func.h"
|
||||
#include "IPAddr.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Dict.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/RE.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "Type.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "zeek/Type.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(ListVal, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(HashKey, zeek::detail);
|
||||
|
|
30
src/Conn.cc
30
src/Conn.cc
|
@ -1,25 +1,25 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Conn.h"
|
||||
#include "zeek/Conn.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#include "Desc.h"
|
||||
#include "RunState.h"
|
||||
#include "NetVar.h"
|
||||
#include "Event.h"
|
||||
#include "Sessions.h"
|
||||
#include "Reporter.h"
|
||||
#include "Timer.h"
|
||||
#include "iosource/IOSource.h"
|
||||
#include "analyzer/protocol/pia/PIA.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Sessions.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Timer.h"
|
||||
#include "zeek/iosource/IOSource.h"
|
||||
#include "zeek/analyzer/protocol/pia/PIA.h"
|
||||
#include "zeek/TunnelEncapsulation.h"
|
||||
#include "zeek/analyzer/Analyzer.h"
|
||||
#include "zeek/analyzer/Manager.h"
|
||||
#include "zeek/iosource/IOSource.h"
|
||||
|
||||
#include "binpac.h"
|
||||
#include "TunnelEncapsulation.h"
|
||||
#include "analyzer/Analyzer.h"
|
||||
#include "analyzer/Manager.h"
|
||||
#include "iosource/IOSource.h"
|
||||
|
||||
namespace zeek {
|
||||
namespace detail {
|
||||
|
|
22
src/Conn.h
22
src/Conn.h
|
@ -8,18 +8,18 @@
|
|||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
#include "Dict.h"
|
||||
#include "Timer.h"
|
||||
#include "Rule.h"
|
||||
#include "IPAddr.h"
|
||||
#include "UID.h"
|
||||
#include "WeirdState.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "iosource/Packet.h"
|
||||
#include "zeek/Dict.h"
|
||||
#include "zeek/Timer.h"
|
||||
#include "zeek/Rule.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/UID.h"
|
||||
#include "zeek/WeirdState.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/iosource/Packet.h"
|
||||
|
||||
#include "analyzer/Tag.h"
|
||||
#include "analyzer/Analyzer.h"
|
||||
#include "zeek/analyzer/Tag.h"
|
||||
#include "zeek/analyzer/Analyzer.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Connection, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(ConnectionTimer, zeek::detail);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "List.h"
|
||||
#include "zeek/List.h"
|
||||
|
||||
class Continuation {
|
||||
public:
|
||||
|
|
|
@ -55,9 +55,9 @@
|
|||
*===------------------------------------------------------------------------=*/
|
||||
/*
|
||||
* Copyright 2001-2004 Unicode, Inc.
|
||||
*
|
||||
*
|
||||
* Disclaimer
|
||||
*
|
||||
*
|
||||
* This source code is provided as is by Unicode, Inc. No claims are
|
||||
* made as to fitness for any particular purpose. No warranties of any
|
||||
* kind are expressed or implied. The recipient agrees to determine
|
||||
|
@ -65,9 +65,9 @@
|
|||
* purchased on magnetic or optical media from Unicode, Inc., the
|
||||
* sole remedy for any claim will be exchange of defective media
|
||||
* within 90 days of receipt.
|
||||
*
|
||||
*
|
||||
* Limitations on Rights to Redistribute This Code
|
||||
*
|
||||
*
|
||||
* Unicode, Inc. hereby grants the right to freely use the information
|
||||
* supplied in this file in the creation of products supporting the
|
||||
* Unicode Standard, and to make copies of this file in any form
|
||||
|
@ -94,7 +94,7 @@
|
|||
------------------------------------------------------------------------ */
|
||||
|
||||
|
||||
#include "ConvertUTF.h"
|
||||
#include "zeek/ConvertUTF.h"
|
||||
#ifdef CVTUTF_DEBUG
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
@ -137,7 +137,7 @@ static const char trailingBytesForUTF8[256] = {
|
|||
* This table contains as many values as there might be trailing bytes
|
||||
* in a UTF-8 sequence.
|
||||
*/
|
||||
static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
||||
static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
||||
0x03C82080UL, 0xFA082080UL, 0x82082080UL };
|
||||
|
||||
/*
|
||||
|
@ -163,7 +163,7 @@ static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
ConversionResult ConvertUTF32toUTF16 (
|
||||
const UTF32** sourceStart, const UTF32* sourceEnd,
|
||||
const UTF32** sourceStart, const UTF32* sourceEnd,
|
||||
UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
|
||||
ConversionResult result = conversionOK;
|
||||
const UTF32* source = *sourceStart;
|
||||
|
@ -212,7 +212,7 @@ ConversionResult ConvertUTF32toUTF16 (
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
ConversionResult ConvertUTF16toUTF32 (
|
||||
const UTF16** sourceStart, const UTF16* sourceEnd,
|
||||
const UTF16** sourceStart, const UTF16* sourceEnd,
|
||||
UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
|
||||
ConversionResult result = conversionOK;
|
||||
const UTF16* source = *sourceStart;
|
||||
|
@ -266,7 +266,7 @@ if (result == sourceIllegal) {
|
|||
return result;
|
||||
}
|
||||
ConversionResult ConvertUTF16toUTF8 (
|
||||
const UTF16** sourceStart, const UTF16* sourceEnd,
|
||||
const UTF16** sourceStart, const UTF16* sourceEnd,
|
||||
UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
|
||||
ConversionResult result = conversionOK;
|
||||
const UTF16* source = *sourceStart;
|
||||
|
@ -275,7 +275,7 @@ ConversionResult ConvertUTF16toUTF8 (
|
|||
UTF32 ch;
|
||||
unsigned short bytesToWrite = 0;
|
||||
const UTF32 byteMask = 0xBF;
|
||||
const UTF32 byteMark = 0x80;
|
||||
const UTF32 byteMark = 0x80;
|
||||
const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
|
||||
ch = *source++;
|
||||
/* If we have a surrogate pair, convert to UTF32 first. */
|
||||
|
@ -336,7 +336,7 @@ ConversionResult ConvertUTF16toUTF8 (
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
ConversionResult ConvertUTF32toUTF8 (
|
||||
const UTF32** sourceStart, const UTF32* sourceEnd,
|
||||
const UTF32** sourceStart, const UTF32* sourceEnd,
|
||||
UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
|
||||
ConversionResult result = conversionOK;
|
||||
const UTF32* source = *sourceStart;
|
||||
|
@ -345,7 +345,7 @@ ConversionResult ConvertUTF32toUTF8 (
|
|||
UTF32 ch;
|
||||
unsigned short bytesToWrite = 0;
|
||||
const UTF32 byteMask = 0xBF;
|
||||
const UTF32 byteMark = 0x80;
|
||||
const UTF32 byteMark = 0x80;
|
||||
ch = *source++;
|
||||
if (flags == strictConversion ) {
|
||||
/* UTF-16 surrogate values are illegal in UTF-32 */
|
||||
|
@ -367,7 +367,7 @@ ConversionResult ConvertUTF32toUTF8 (
|
|||
ch = UNI_REPLACEMENT_CHAR;
|
||||
result = sourceIllegal;
|
||||
}
|
||||
|
||||
|
||||
target += bytesToWrite;
|
||||
if (target > targetEnd) {
|
||||
--source; /* Back up source pointer! */
|
||||
|
@ -560,7 +560,7 @@ Boolean isLegalUTF8String(const UTF8 **source, const UTF8 *sourceEnd) {
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
ConversionResult ConvertUTF8toUTF16 (
|
||||
const UTF8** sourceStart, const UTF8* sourceEnd,
|
||||
const UTF8** sourceStart, const UTF8* sourceEnd,
|
||||
UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
|
||||
ConversionResult result = conversionOK;
|
||||
const UTF8* source = *sourceStart;
|
||||
|
@ -633,7 +633,7 @@ ConversionResult ConvertUTF8toUTF16 (
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
static ConversionResult ConvertUTF8toUTF32Impl(
|
||||
const UTF8** sourceStart, const UTF8* sourceEnd,
|
||||
const UTF8** sourceStart, const UTF8* sourceEnd,
|
||||
UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags,
|
||||
Boolean InputIsPartial) {
|
||||
ConversionResult result = conversionOK;
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "DFA.h"
|
||||
#include "EquivClass.h"
|
||||
#include "Desc.h"
|
||||
#include "Hash.h"
|
||||
#include "zeek/DFA.h"
|
||||
#include "zeek/EquivClass.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Hash.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
11
src/DFA.h
11
src/DFA.h
|
@ -3,15 +3,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/types.h> // for u_char
|
||||
|
||||
#include "NFA.h"
|
||||
#include "RE.h" // for typedef AcceptingSet
|
||||
#include "Obj.h"
|
||||
#include "zeek/NFA.h"
|
||||
#include "zeek/RE.h" // for typedef AcceptingSet
|
||||
#include "zeek/Obj.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "DNS_Mgr.h"
|
||||
#include "zeek/DNS_Mgr.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -31,24 +30,23 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#include "ZeekString.h"
|
||||
#include "Expr.h"
|
||||
#include "Event.h"
|
||||
#include "RunState.h"
|
||||
#include "Val.h"
|
||||
#include "NetVar.h"
|
||||
#include "ID.h"
|
||||
#include "Reporter.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "iosource/Manager.h"
|
||||
#include "Hash.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/iosource/Manager.h"
|
||||
#include "zeek/Hash.h"
|
||||
|
||||
extern "C" {
|
||||
extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
|
||||
|
||||
#include <netdb.h>
|
||||
|
||||
#include "nb_dns.h"
|
||||
#include "zeek/nb_dns.h"
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
#include <queue>
|
||||
#include <utility>
|
||||
|
||||
#include "List.h"
|
||||
#include "EventHandler.h"
|
||||
#include "iosource/IOSource.h"
|
||||
#include "IPAddr.h"
|
||||
#include "util.h"
|
||||
#include "zeek/List.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
#include "zeek/iosource/IOSource.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(EventHandler, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(DNS_Mgr_Request, zeek::detail);
|
||||
|
|
|
@ -2,22 +2,22 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "DbgBreakpoint.h"
|
||||
#include "zeek/DbgBreakpoint.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "Desc.h"
|
||||
#include "ID.h"
|
||||
#include "Queue.h"
|
||||
#include "Debug.h"
|
||||
#include "Scope.h"
|
||||
#include "Frame.h"
|
||||
#include "Func.h"
|
||||
#include "Val.h"
|
||||
#include "Stmt.h"
|
||||
#include "Timer.h"
|
||||
#include "Reporter.h"
|
||||
#include "module_util.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/Queue.h"
|
||||
#include "zeek/Debug.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Frame.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/Stmt.h"
|
||||
#include "zeek/Timer.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/module_util.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "util.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Stmt, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(ParseLocationRec, zeek::detail);
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Debug.h"
|
||||
#include "zeek/Debug.h"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// Implementation of watches
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/DbgWatch.h"
|
||||
|
||||
#include "Debug.h"
|
||||
#include "DbgWatch.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/Debug.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "util.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Expr, zeek::detail);
|
||||
namespace zeek { class Obj; }
|
||||
|
|
38
src/Debug.cc
38
src/Debug.cc
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Debug.h"
|
||||
#include "zeek/Debug.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -12,29 +12,29 @@
|
|||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
#include "util.h"
|
||||
#include "DebugCmds.h"
|
||||
#include "DbgBreakpoint.h"
|
||||
#include "ID.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "Expr.h"
|
||||
#include "Stmt.h"
|
||||
#include "Frame.h"
|
||||
#include "Func.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "Scope.h"
|
||||
#include "PolicyFile.h"
|
||||
#include "Desc.h"
|
||||
#include "Reporter.h"
|
||||
#include "Val.h"
|
||||
#include "module_util.h"
|
||||
#include "input.h"
|
||||
|
||||
#ifdef HAVE_READLINE
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>
|
||||
#endif
|
||||
|
||||
#include "zeek/util.h"
|
||||
#include "zeek/DebugCmds.h"
|
||||
#include "zeek/DbgBreakpoint.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Stmt.h"
|
||||
#include "zeek/Frame.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/PolicyFile.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/module_util.h"
|
||||
#include "zeek/input.h"
|
||||
|
||||
bool zeek::detail::g_policy_debug = false;
|
||||
bool& g_policy_debug = zeek::detail::g_policy_debug;
|
||||
|
||||
|
|
10
src/Debug.h
10
src/Debug.h
|
@ -2,15 +2,15 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Obj.h"
|
||||
#include "Queue.h"
|
||||
#include "StmtEnums.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/Queue.h"
|
||||
#include "zeek/StmtEnums.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Frame, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Stmt, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// DO NOT EDIT.
|
||||
//
|
||||
|
||||
#include "util.h"
|
||||
#include "zeek/util.h"
|
||||
namespace zeek::detail {
|
||||
|
||||
void init_global_dbg_constants () {
|
||||
|
@ -280,7 +280,7 @@ void init_global_dbg_constants () {
|
|||
false);
|
||||
g_DebugCmdInfos.push_back(info);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// implementation of most commands.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "DebugCmds.h"
|
||||
#include "zeek/DebugCmds.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
@ -10,19 +10,19 @@
|
|||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "DebugCmdInfoConstants.cc"
|
||||
#include "Debug.h"
|
||||
#include "Desc.h"
|
||||
#include "DbgBreakpoint.h"
|
||||
#include "ID.h"
|
||||
#include "Frame.h"
|
||||
#include "Func.h"
|
||||
#include "Stmt.h"
|
||||
#include "Scope.h"
|
||||
#include "Reporter.h"
|
||||
#include "PolicyFile.h"
|
||||
#include "Val.h"
|
||||
#include "util.h"
|
||||
#include "zeek/DebugCmdInfoConstants.cc"
|
||||
#include "zeek/Debug.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/DbgBreakpoint.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/Frame.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Stmt.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/PolicyFile.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "Queue.h"
|
||||
#include "zeek/Queue.h"
|
||||
|
||||
// This file is generated during the build.
|
||||
#include "DebugCmdConstants.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#ifdef DEBUG
|
||||
|
||||
#include "zeek/DebugLogger.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "DebugLogger.h"
|
||||
#include "RunState.h"
|
||||
#include "plugin/Plugin.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/plugin/Plugin.h"
|
||||
|
||||
zeek::detail::DebugLogger zeek::detail::debug_logger;
|
||||
zeek::detail::DebugLogger& debug_logger = zeek::detail::debug_logger;
|
||||
|
|
10
src/Desc.cc
10
src/Desc.cc
|
@ -1,17 +1,17 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "Desc.h"
|
||||
#include "zeek/Desc.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "File.h"
|
||||
#include "Reporter.h"
|
||||
#include "ConvertUTF.h"
|
||||
#include "IPAddr.h"
|
||||
#include "zeek/File.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/ConvertUTF.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
|
||||
#define DEFAULT_SIZE 128
|
||||
#define SLOP 10
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ZeekString.h" // for byte_vec
|
||||
#include "util.h" // for bro_int_t
|
||||
#include <sys/types.h> // for u_char
|
||||
|
||||
#include <set>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include "zeek/ZeekString.h" // for byte_vec
|
||||
#include "zeek/util.h" // for bro_int_t
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IPAddr, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IPPrefix, zeek);
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Dict.h"
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/Dict.h"
|
||||
|
||||
#ifdef HAVE_MEMORY_H
|
||||
#include <memory.h>
|
||||
|
@ -12,10 +11,10 @@
|
|||
#include <climits>
|
||||
#include <fstream>
|
||||
|
||||
#include "Reporter.h"
|
||||
#include "util.h"
|
||||
#include "zeek/3rdparty/doctest.h"
|
||||
|
||||
#include "3rdparty/doctest.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
#if defined(DEBUG) && defined(ZEEK_DICT_DEBUG)
|
||||
#define ASSERT_VALID(o) o->AssertValid()
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include "Hash.h"
|
||||
#include "zeek/Hash.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IterCookie, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(DictEntry, zeek::detail);
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Discard.h"
|
||||
#include "zeek/Discard.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "ZeekString.h"
|
||||
#include "RunState.h"
|
||||
#include "Func.h"
|
||||
#include "Var.h"
|
||||
#include "Val.h"
|
||||
#include "IP.h"
|
||||
#include "Reporter.h" // for InterpreterException
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/IP.h"
|
||||
#include "zeek/Reporter.h" // for InterpreterException
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include <sys/types.h> // for u_char
|
||||
#include <memory>
|
||||
|
||||
#include "IntrusivePtr.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IP_Hdr, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek);
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "EquivClass.h"
|
||||
#include "CCL.h"
|
||||
#include "util.h"
|
||||
#include "zeek/EquivClass.h"
|
||||
#include "zeek/CCL.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
20
src/Event.cc
20
src/Event.cc
|
@ -2,16 +2,16 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Event.h"
|
||||
#include "Desc.h"
|
||||
#include "Func.h"
|
||||
#include "NetVar.h"
|
||||
#include "Trigger.h"
|
||||
#include "Val.h"
|
||||
#include "plugin/Manager.h"
|
||||
#include "iosource/Manager.h"
|
||||
#include "iosource/PktSrc.h"
|
||||
#include "RunState.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Trigger.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/plugin/Manager.h"
|
||||
#include "zeek/iosource/Manager.h"
|
||||
#include "zeek/iosource/PktSrc.h"
|
||||
#include "zeek/RunState.h"
|
||||
|
||||
zeek::EventMgr zeek::event_mgr;
|
||||
zeek::EventMgr& mgr = zeek::event_mgr;
|
||||
|
|
14
src/Event.h
14
src/Event.h
|
@ -2,16 +2,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ZeekList.h"
|
||||
#include "analyzer/Analyzer.h"
|
||||
#include "iosource/IOSource.h"
|
||||
#include "Flare.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "IntrusivePtr.h"
|
||||
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/analyzer/Analyzer.h"
|
||||
#include "zeek/iosource/IOSource.h"
|
||||
#include "zeek/Flare.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(EventMgr, zeek);
|
||||
|
||||
namespace zeek {
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
#include "EventHandler.h"
|
||||
#include "Event.h"
|
||||
#include "Desc.h"
|
||||
#include "Func.h"
|
||||
#include "Scope.h"
|
||||
#include "NetVar.h"
|
||||
#include "ID.h"
|
||||
#include "Var.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
|
||||
#include "broker/Manager.h"
|
||||
#include "broker/Data.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/Var.h"
|
||||
|
||||
#include "zeek/broker/Manager.h"
|
||||
#include "zeek/broker/Data.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ZeekList.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "Type.h"
|
||||
|
||||
#include <unordered_set>
|
||||
#include <string>
|
||||
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
#include "zeek/Type.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek);
|
||||
|
||||
namespace zeek {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "Val.h"
|
||||
#include "analyzer/Analyzer.h"
|
||||
#include "EventLauncher.h"
|
||||
#include "Event.h"
|
||||
#include "NetVar.h"
|
||||
#include "Conn.h"
|
||||
#include "File.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/analyzer/Analyzer.h"
|
||||
#include "zeek/EventLauncher.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Conn.h"
|
||||
#include "zeek/File.h"
|
||||
|
||||
#include "event.bif.func_def"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include "EventRegistry.h"
|
||||
#include "EventHandler.h"
|
||||
#include "Func.h"
|
||||
#include "RE.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/EventRegistry.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/RE.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
36
src/Expr.cc
36
src/Expr.cc
|
@ -2,25 +2,25 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Expr.h"
|
||||
#include "Event.h"
|
||||
#include "Desc.h"
|
||||
#include "Frame.h"
|
||||
#include "Func.h"
|
||||
#include "RE.h"
|
||||
#include "Scope.h"
|
||||
#include "Stmt.h"
|
||||
#include "EventRegistry.h"
|
||||
#include "RunState.h"
|
||||
#include "Traverse.h"
|
||||
#include "Trigger.h"
|
||||
#include "IPAddr.h"
|
||||
#include "digest.h"
|
||||
#include "module_util.h"
|
||||
#include "DebugLogger.h"
|
||||
#include "Hash.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Frame.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/RE.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Stmt.h"
|
||||
#include "zeek/EventRegistry.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/Traverse.h"
|
||||
#include "zeek/Trigger.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/digest.h"
|
||||
#include "zeek/module_util.h"
|
||||
#include "zeek/DebugLogger.h"
|
||||
#include "zeek/Hash.h"
|
||||
|
||||
#include "broker/Data.h"
|
||||
#include "zeek/broker/Data.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
16
src/Expr.h
16
src/Expr.h
|
@ -8,14 +8,14 @@
|
|||
#include <utility>
|
||||
#include <optional>
|
||||
|
||||
#include "ZeekList.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "Timer.h"
|
||||
#include "Type.h"
|
||||
#include "EventHandler.h"
|
||||
#include "TraverseTypes.h"
|
||||
#include "Val.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/Timer.h"
|
||||
#include "zeek/Type.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
#include "zeek/TraverseTypes.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Frame, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Scope, zeek::detail);
|
||||
|
|
20
src/File.cc
20
src/File.cc
|
@ -1,7 +1,7 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "File.h"
|
||||
#include "zeek/File.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef TIME_WITH_SYS_TIME
|
||||
|
@ -21,15 +21,15 @@
|
|||
|
||||
#include <algorithm>
|
||||
|
||||
#include "Attr.h"
|
||||
#include "Type.h"
|
||||
#include "Expr.h"
|
||||
#include "NetVar.h"
|
||||
#include "RunState.h"
|
||||
#include "Event.h"
|
||||
#include "Reporter.h"
|
||||
#include "Desc.h"
|
||||
#include "Var.h"
|
||||
#include "zeek/Attr.h"
|
||||
#include "zeek/Type.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Var.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
10
src/File.h
10
src/File.h
|
@ -2,19 +2,19 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef NEED_KRB5_H
|
||||
#include <krb5.h>
|
||||
#endif // NEED_KRB5_H
|
||||
|
||||
#include "Obj.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "util.h"
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(PrintStmt, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Attributes, zeek::detail);
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Flare.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/Flare.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
Flare::Flare()
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Pipe.h"
|
||||
#include "zeek/Pipe.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
14
src/Frag.cc
14
src/Frag.cc
|
@ -2,13 +2,13 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Frag.h"
|
||||
#include "Hash.h"
|
||||
#include "IP.h"
|
||||
#include "NetVar.h"
|
||||
#include "Sessions.h"
|
||||
#include "Reporter.h"
|
||||
#include "RunState.h"
|
||||
#include "zeek/Frag.h"
|
||||
#include "zeek/Hash.h"
|
||||
#include "zeek/IP.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Sessions.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/RunState.h"
|
||||
|
||||
constexpr uint32_t MIN_ACCEPTABLE_FRAG_SIZE = 64;
|
||||
constexpr uint32_t MAX_ACCEPTABLE_FRAG_SIZE = 64000;
|
||||
|
|
11
src/Frag.h
11
src/Frag.h
|
@ -2,14 +2,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "util.h" // for bro_uint_t
|
||||
#include "IPAddr.h"
|
||||
#include "Reassem.h"
|
||||
#include "Timer.h"
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <tuple>
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include "zeek/util.h" // for bro_uint_t
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/Reassem.h"
|
||||
#include "zeek/Timer.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(NetSessions, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IP_Hdr, zeek);
|
||||
|
|
14
src/Frame.cc
14
src/Frame.cc
|
@ -1,15 +1,15 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Frame.h"
|
||||
#include "zeek/Frame.h"
|
||||
|
||||
#include <broker/error.hh>
|
||||
#include "broker/Data.h"
|
||||
|
||||
#include "Func.h"
|
||||
#include "Desc.h"
|
||||
#include "Trigger.h"
|
||||
#include "Val.h"
|
||||
#include "ID.h"
|
||||
#include "zeek/broker/Data.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Trigger.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/ID.h"
|
||||
|
||||
std::vector<zeek::detail::Frame*> g_frame_stack;
|
||||
|
||||
|
|
10
src/Frame.h
10
src/Frame.h
|
@ -2,11 +2,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ZeekList.h" // for typedef val_list
|
||||
#include "Obj.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "ZeekArgs.h"
|
||||
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
@ -16,6 +11,11 @@
|
|||
#include <broker/data.hh>
|
||||
#include <broker/expected.hh>
|
||||
|
||||
#include "zeek/ZeekList.h" // for typedef val_list
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(CallExpr, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Trigger, zeek::detail::trigger);
|
||||
|
||||
|
|
44
src/Func.cc
44
src/Func.cc
|
@ -2,7 +2,7 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "Func.h"
|
||||
#include "zeek/Func.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -33,27 +33,27 @@
|
|||
|
||||
#include <broker/error.hh>
|
||||
|
||||
#include "Base64.h"
|
||||
#include "Debug.h"
|
||||
#include "Desc.h"
|
||||
#include "Expr.h"
|
||||
#include "Stmt.h"
|
||||
#include "Scope.h"
|
||||
#include "RunState.h"
|
||||
#include "NetVar.h"
|
||||
#include "File.h"
|
||||
#include "Frame.h"
|
||||
#include "Var.h"
|
||||
#include "analyzer/protocol/login/Login.h"
|
||||
#include "Sessions.h"
|
||||
#include "RE.h"
|
||||
#include "Event.h"
|
||||
#include "Traverse.h"
|
||||
#include "Reporter.h"
|
||||
#include "plugin/Manager.h"
|
||||
#include "module_util.h"
|
||||
#include "iosource/PktSrc.h"
|
||||
#include "iosource/PktDumper.h"
|
||||
#include "zeek/Base64.h"
|
||||
#include "zeek/Debug.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Stmt.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/File.h"
|
||||
#include "zeek/Frame.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/analyzer/protocol/login/Login.h"
|
||||
#include "zeek/Sessions.h"
|
||||
#include "zeek/RE.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Traverse.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/plugin/Manager.h"
|
||||
#include "zeek/module_util.h"
|
||||
#include "zeek/iosource/PktSrc.h"
|
||||
#include "zeek/iosource/PktDumper.h"
|
||||
|
||||
#include "zeek.bif.func_h"
|
||||
#include "stats.bif.func_h"
|
||||
|
|
14
src/Func.h
14
src/Func.h
|
@ -9,13 +9,13 @@
|
|||
#include <tuple>
|
||||
#include <type_traits>
|
||||
|
||||
#include "ZeekList.h"
|
||||
#include "Obj.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "Type.h" /* for function_flavor */
|
||||
#include "TraverseTypes.h"
|
||||
#include "ZeekArgs.h"
|
||||
#include "BifReturnVal.h"
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/Type.h" /* for function_flavor */
|
||||
#include "zeek/TraverseTypes.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
#include "zeek/BifReturnVal.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Scope, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
|
|
19
src/Hash.cc
19
src/Hash.cc
|
@ -1,18 +1,19 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/Hash.h"
|
||||
|
||||
#include <highwayhash/sip_hash.h>
|
||||
#include <highwayhash/highwayhash_target.h>
|
||||
#include <highwayhash/instruction_sets.h>
|
||||
|
||||
#include "zeek/digest.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Val.h" // needed for const.bif
|
||||
|
||||
#include "Hash.h"
|
||||
#include "digest.h"
|
||||
#include "Reporter.h"
|
||||
#include "ZeekString.h"
|
||||
#include "Val.h" // needed for const.bif
|
||||
#include "const.bif.netvar_h"
|
||||
|
||||
#include "highwayhash/sip_hash.h"
|
||||
#include "highwayhash/highwayhash_target.h"
|
||||
#include "highwayhash/instruction_sets.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
alignas(32) uint64_t KeyedHash::shared_highwayhash_key[4];
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "util.h" // for bro_int_t
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "zeek/util.h" // for bro_int_t
|
||||
|
||||
// to allow bro_md5_hmac access to the hmac seed
|
||||
#include "ZeekArgs.h"
|
||||
#include "zeek/ZeekArgs.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Frame, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(BifReturnVal, zeek::detail);
|
||||
|
|
32
src/ID.cc
32
src/ID.cc
|
@ -2,23 +2,23 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/ID.h"
|
||||
|
||||
#include "ID.h"
|
||||
#include "Attr.h"
|
||||
#include "Desc.h"
|
||||
#include "Expr.h"
|
||||
#include "Dict.h"
|
||||
#include "EventRegistry.h"
|
||||
#include "Func.h"
|
||||
#include "Scope.h"
|
||||
#include "Type.h"
|
||||
#include "File.h"
|
||||
#include "Traverse.h"
|
||||
#include "Val.h"
|
||||
#include "zeekygen/Manager.h"
|
||||
#include "zeekygen/IdentifierInfo.h"
|
||||
#include "zeekygen/ScriptInfo.h"
|
||||
#include "module_util.h"
|
||||
#include "zeek/Attr.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Dict.h"
|
||||
#include "zeek/EventRegistry.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Type.h"
|
||||
#include "zeek/File.h"
|
||||
#include "zeek/Traverse.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/zeekygen/Manager.h"
|
||||
#include "zeek/zeekygen/IdentifierInfo.h"
|
||||
#include "zeek/zeekygen/ScriptInfo.h"
|
||||
#include "zeek/module_util.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
12
src/ID.h
12
src/ID.h
|
@ -2,17 +2,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "IntrusivePtr.h"
|
||||
#include "Obj.h"
|
||||
#include "Attr.h"
|
||||
#include "Notifier.h"
|
||||
#include "TraverseTypes.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/Attr.h"
|
||||
#include "zeek/Notifier.h"
|
||||
#include "zeek/TraverseTypes.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Func, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RecordType, zeek);
|
||||
|
|
14
src/IP.cc
14
src/IP.cc
|
@ -1,17 +1,17 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "IP.h"
|
||||
#include "zeek/IP.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/icmp6.h>
|
||||
|
||||
#include "IPAddr.h"
|
||||
#include "Type.h"
|
||||
#include "Val.h"
|
||||
#include "Var.h"
|
||||
#include "ZeekString.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/Type.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
2
src/IP.h
2
src/IP.h
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
#include "IntrusivePtr.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IPAddr, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RecordVal, zeek);
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
#include <cstdlib>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "IPAddr.h"
|
||||
#include "Reporter.h"
|
||||
#include "ZeekString.h"
|
||||
#include "Conn.h"
|
||||
#include "Hash.h"
|
||||
#include "bro_inet_ntop.h"
|
||||
|
||||
#include "analyzer/Manager.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/Conn.h"
|
||||
#include "zeek/Hash.h"
|
||||
#include "zeek/bro_inet_ntop.h"
|
||||
#include "zeek/analyzer/Manager.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "threading/SerialTypes.h"
|
||||
#include "zeek/threading/SerialTypes.h"
|
||||
|
||||
namespace zeek { class String; }
|
||||
using BroString [[deprecated("Remove in v4.1. Use zeek::String instead.")]] = zeek::String;
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
#include "zeek-config.h"
|
||||
#include "zeek/IntSet.h"
|
||||
|
||||
#ifdef HAVE_MEMORY_H
|
||||
#include <memory.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "IntSet.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
void IntSet::Expand(unsigned int i)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <List.h>
|
||||
#include <3rdparty/doctest.h>
|
||||
#include "zeek/List.h"
|
||||
#include "zeek/3rdparty/doctest.h"
|
||||
|
||||
TEST_CASE("list construction")
|
||||
{
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <iterator>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
#include "util.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
10
src/NFA.cc
10
src/NFA.cc
|
@ -1,14 +1,14 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "NFA.h"
|
||||
#include "Desc.h"
|
||||
#include "EquivClass.h"
|
||||
#include "IntSet.h"
|
||||
#include "zeek/NFA.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/EquivClass.h"
|
||||
#include "zeek/IntSet.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
static int nfa_state_id = 0;
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Obj.h"
|
||||
#include "List.h"
|
||||
#include "zeek/Obj.h"
|
||||
#include "zeek/List.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(CCL, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(EquivClass, zeek::detail);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#warning "Net.h is deprecated and will be removed in v4.1. Use RunState.h and/or ScannedFile.h instead."
|
||||
|
||||
#include "RunState.h"
|
||||
#include "ScannedFile.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/ScannedFile.h"
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "NetVar.h"
|
||||
#include "Var.h"
|
||||
#include "EventHandler.h"
|
||||
#include "Val.h"
|
||||
#include "ID.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/ID.h"
|
||||
|
||||
zeek::RecordType* conn_id;
|
||||
zeek::RecordType* endpoint;
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Val.h"
|
||||
#include "EventRegistry.h"
|
||||
#include "Stats.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/EventRegistry.h"
|
||||
#include "zeek/Stats.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Notifier.h"
|
||||
#include "DebugLogger.h"
|
||||
|
||||
#include <set>
|
||||
|
||||
#include "zeek/Notifier.h"
|
||||
#include "zeek/DebugLogger.h"
|
||||
|
||||
zeek::notifier::detail::Registry zeek::notifier::detail::registry;
|
||||
zeek::notifier::detail::Registry& notifier::registry = zeek::notifier::detail::registry;
|
||||
|
||||
|
|
10
src/Obj.cc
10
src/Obj.cc
|
@ -1,14 +1,14 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "Obj.h"
|
||||
#include "zeek/Obj.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "Desc.h"
|
||||
#include "Func.h"
|
||||
#include "File.h"
|
||||
#include "plugin/Manager.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/File.h"
|
||||
#include "zeek/plugin/Manager.h"
|
||||
|
||||
namespace zeek {
|
||||
namespace detail {
|
||||
|
|
|
@ -1,20 +1,21 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek/OpaqueVal.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "OpaqueVal.h"
|
||||
#include "CompHash.h"
|
||||
#include "NetVar.h"
|
||||
#include "Reporter.h"
|
||||
#include "Scope.h"
|
||||
#include "Desc.h"
|
||||
#include "Var.h"
|
||||
#include "probabilistic/BloomFilter.h"
|
||||
#include "probabilistic/CardinalityCounter.h"
|
||||
|
||||
#include <broker/data.hh>
|
||||
#include <broker/error.hh>
|
||||
|
||||
#include "zeek/CompHash.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/probabilistic/BloomFilter.h"
|
||||
#include "zeek/probabilistic/CardinalityCounter.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
// Helper to retrieve a broker value out of a broker::vector at a specified
|
||||
|
|
|
@ -2,15 +2,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "IntrusivePtr.h"
|
||||
#include "RandTest.h"
|
||||
#include "Val.h"
|
||||
#include "digest.h"
|
||||
#include "paraglob/paraglob.h"
|
||||
|
||||
#include <broker/expected.hh>
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <broker/expected.hh>
|
||||
#include <paraglob/paraglob.h>
|
||||
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/RandTest.h"
|
||||
#include "zeek/Val.h"
|
||||
#include "zeek/digest.h"
|
||||
|
||||
namespace broker { class data; }
|
||||
|
||||
|
|
|
@ -2,10 +2,7 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
|
||||
#include "Options.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include "zeek/Options.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -13,8 +10,11 @@
|
|||
#include <getopt.h>
|
||||
#endif
|
||||
|
||||
#include "bsd-getopt-long.h"
|
||||
#include "logging/writers/ascii/Ascii.h"
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
#include "zeek/bsd-getopt-long.h"
|
||||
#include "zeek/logging/writers/ascii/Ascii.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
@ -203,7 +203,7 @@ Options parse_cmdline(int argc, char** argv)
|
|||
if ( i < argc )
|
||||
{
|
||||
// If a script is invoked with Zeek as the interpreter, the arguments provided
|
||||
// directly in the interpreter line of the script won't be broken apart in the
|
||||
// directly in the interpreter line of the script won't be broken apart in the
|
||||
// argv on Linux so we split it up here.
|
||||
if ( endsWith(argv[i], "--") && zeek_args.size() == 1 )
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "DNS_Mgr.h"
|
||||
#include "zeek/DNS_Mgr.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "PacketDumper.h"
|
||||
#include "Reporter.h"
|
||||
#include "util.h"
|
||||
#include "iosource/PktDumper.h"
|
||||
#include "zeek/PacketDumper.h"
|
||||
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/util.h"
|
||||
#include "zeek/iosource/PktDumper.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <pcap.h>
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <pcap.h>
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "PacketFilter.h"
|
||||
#include "IP.h"
|
||||
#include "zeek/PacketFilter.h"
|
||||
#include "zeek/IP.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include "IPAddr.h"
|
||||
#include "PrefixTable.h"
|
||||
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/PrefixTable.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(IP_Hdr, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "Pipe.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/Pipe.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <cstdio>
|
||||
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
static void pipe_fail(int eno)
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
#include "zeek-config.h"
|
||||
#include "zeek/PolicyFile.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <map>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include "Debug.h"
|
||||
#include "util.h"
|
||||
#include "PolicyFile.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/Debug.h"
|
||||
#include "zeek/util.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "PrefixTable.h"
|
||||
#include "Reporter.h"
|
||||
#include "Val.h"
|
||||
#include "zeek/PrefixTable.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Val.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
#include "patricia.h"
|
||||
#include "zeek/patricia.h"
|
||||
}
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "IPAddr.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(SubNetVal, zeek);
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/PriorityQueue.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "PriorityQueue.h"
|
||||
#include "Reporter.h"
|
||||
#include "util.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/util.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
12
src/RE.cc
12
src/RE.cc
|
@ -1,16 +1,16 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "RE.h"
|
||||
#include "zeek/RE.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <utility>
|
||||
|
||||
#include "DFA.h"
|
||||
#include "CCL.h"
|
||||
#include "EquivClass.h"
|
||||
#include "Reporter.h"
|
||||
#include "ZeekString.h"
|
||||
#include "zeek/DFA.h"
|
||||
#include "zeek/CCL.h"
|
||||
#include "zeek/EquivClass.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
|
||||
zeek::detail::CCL* zeek::detail::curr_ccl = nullptr;
|
||||
zeek::detail::CCL*& curr_ccl = zeek::detail::curr_ccl;
|
||||
|
|
12
src/RE.h
12
src/RE.h
|
@ -2,16 +2,16 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "List.h"
|
||||
#include "CCL.h"
|
||||
#include "EquivClass.h"
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <ctype.h>
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <ctype.h>
|
||||
#include "zeek/List.h"
|
||||
#include "zeek/CCL.h"
|
||||
#include "zeek/EquivClass.h"
|
||||
|
||||
typedef int (*cce_func)(int);
|
||||
|
||||
namespace zeek { class String; }
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
Modified for Bro by Seth Hall - July 2010
|
||||
*/
|
||||
|
||||
#include "RandTest.h"
|
||||
#include "zeek/RandTest.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "Reassem.h"
|
||||
#include "zeek/Reassem.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "Desc.h"
|
||||
#include "zeek/Desc.h"
|
||||
|
||||
using std::min;
|
||||
|
||||
|
|
|
@ -2,14 +2,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
|
||||
#include "Obj.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
|
||||
#include "zeek/Obj.h"
|
||||
|
||||
namespace zeek {
|
||||
|
||||
|
|
|
@ -3,24 +3,24 @@
|
|||
//
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "Reporter.h"
|
||||
#include "zeek/Reporter.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include "Desc.h"
|
||||
#include "Event.h"
|
||||
#include "Expr.h"
|
||||
#include "NetVar.h"
|
||||
#include "RunState.h"
|
||||
#include "Conn.h"
|
||||
#include "Timer.h"
|
||||
#include "ID.h"
|
||||
#include "EventHandler.h"
|
||||
#include "plugin/Plugin.h"
|
||||
#include "plugin/Manager.h"
|
||||
#include "input.h"
|
||||
#include "file_analysis/File.h"
|
||||
#include "zeek/Desc.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/RunState.h"
|
||||
#include "zeek/Conn.h"
|
||||
#include "zeek/Timer.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/EventHandler.h"
|
||||
#include "zeek/plugin/Plugin.h"
|
||||
#include "zeek/plugin/Manager.h"
|
||||
#include "zeek/input.h"
|
||||
#include "zeek/file_analysis/File.h"
|
||||
|
||||
#ifdef SYSLOG_INT
|
||||
extern "C" {
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
#include <unordered_set>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "ZeekList.h"
|
||||
#include "net_util.h"
|
||||
#include "zeek/ZeekList.h"
|
||||
#include "zeek/net_util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Analyzer, zeek, analyzer);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(File, zeek, file_analysis);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "zeek-config.h"
|
||||
|
||||
#include "Rule.h"
|
||||
#include "RuleAction.h"
|
||||
#include "RuleCondition.h"
|
||||
#include "RuleMatcher.h"
|
||||
#include "zeek/Rule.h"
|
||||
#include "zeek/RuleAction.h"
|
||||
#include "zeek/RuleCondition.h"
|
||||
#include "zeek/RuleMatcher.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
11
src/Rule.h
11
src/Rule.h
|
@ -1,13 +1,12 @@
|
|||
#pragma once
|
||||
|
||||
#include "List.h"
|
||||
#include "Obj.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
#include "zeek/List.h"
|
||||
#include "zeek/Obj.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RuleCondition, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RuleAction, zeek::detail);
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
#include <string>
|
||||
using std::string;
|
||||
|
||||
#include "zeek-config.h"
|
||||
#include "zeek/RuleAction.h"
|
||||
|
||||
#include "RuleAction.h"
|
||||
#include "RuleMatcher.h"
|
||||
#include "Conn.h"
|
||||
#include "Event.h"
|
||||
#include "NetVar.h"
|
||||
#include "analyzer/protocol/pia/PIA.h"
|
||||
#include <string>
|
||||
|
||||
#include "analyzer/Manager.h"
|
||||
#include "zeek/RuleMatcher.h"
|
||||
#include "zeek/Conn.h"
|
||||
#include "zeek/Event.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/analyzer/protocol/pia/PIA.h"
|
||||
#include "zeek/analyzer/Manager.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "analyzer/Tag.h"
|
||||
|
||||
#include <string>
|
||||
#include "zeek/analyzer/Tag.h"
|
||||
|
||||
#include <sys/types.h> // for u_char
|
||||
#include <string>
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Rule, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RuleEndpointState, zeek::detail);
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#include "zeek-config.h"
|
||||
|
||||
#include "RuleCondition.h"
|
||||
#include "RuleMatcher.h"
|
||||
#include "analyzer/protocol/tcp/TCP.h"
|
||||
#include "Reporter.h"
|
||||
#include "Scope.h"
|
||||
#include "Func.h"
|
||||
#include "ID.h"
|
||||
#include "Val.h"
|
||||
#include "zeek/RuleCondition.h"
|
||||
#include "zeek/RuleMatcher.h"
|
||||
#include "zeek/analyzer/protocol/tcp/TCP.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/Val.h"
|
||||
|
||||
static inline bool is_established(const zeek::analyzer::tcp::TCP_Endpoint* e)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
#include <stdint.h> // for u_char
|
||||
#include <sys/types.h> // for u_char
|
||||
#include "util.h"
|
||||
|
||||
#include "zeek/util.h"
|
||||
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(RuleEndpointState, zeek::detail);
|
||||
ZEEK_FORWARD_DECLARE_NAMESPACED(Rule, zeek::detail);
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
|
||||
#include "zeek-config.h"
|
||||
#include "RuleMatcher.h"
|
||||
#include "zeek/RuleMatcher.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
||||
#include "RuleAction.h"
|
||||
#include "RuleCondition.h"
|
||||
#include "ZeekString.h"
|
||||
#include "ID.h"
|
||||
#include "IntrusivePtr.h"
|
||||
#include "IntSet.h"
|
||||
#include "IP.h"
|
||||
#include "analyzer/Analyzer.h"
|
||||
#include "DFA.h"
|
||||
#include "DebugLogger.h"
|
||||
#include "NetVar.h"
|
||||
#include "Scope.h"
|
||||
#include "File.h"
|
||||
#include "Reporter.h"
|
||||
#include "module_util.h"
|
||||
#include "Var.h"
|
||||
#include "IPAddr.h"
|
||||
#include "RunState.h"
|
||||
#include "zeek/RuleAction.h"
|
||||
#include "zeek/RuleCondition.h"
|
||||
#include "zeek/ZeekString.h"
|
||||
#include "zeek/ID.h"
|
||||
#include "zeek/IntrusivePtr.h"
|
||||
#include "zeek/IntSet.h"
|
||||
#include "zeek/IP.h"
|
||||
#include "zeek/analyzer/Analyzer.h"
|
||||
#include "zeek/DFA.h"
|
||||
#include "zeek/DebugLogger.h"
|
||||
#include "zeek/NetVar.h"
|
||||
#include "zeek/Scope.h"
|
||||
#include "zeek/File.h"
|
||||
#include "zeek/Reporter.h"
|
||||
#include "zeek/module_util.h"
|
||||
#include "zeek/Var.h"
|
||||
#include "zeek/IPAddr.h"
|
||||
#include "zeek/RunState.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue