GH-1079: Use full paths starting with zeek/ when including files

This commit is contained in:
Tim Wojtulewicz 2020-11-02 18:20:16 -07:00
parent 78fc5615a5
commit 96d9115360
640 changed files with 2708 additions and 2698 deletions

View file

@ -1,9 +1,9 @@
// See the file "COPYING" in the main distribution directory for copyright.
#pragma once
#include "Manager.h"
#include "Tag.h"
#include <iosource/Packet.h>
#include "zeek/packet_analysis/Manager.h"
#include "zeek/packet_analysis/Tag.h"
#include "zeek/iosource/Packet.h"
namespace zeek::packet_analysis {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Component.h"
#include "Desc.h"
#include "Manager.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/Desc.h"
#include "zeek/packet_analysis/Manager.h"
using namespace zeek::packet_analysis;

View file

@ -6,11 +6,11 @@
#include <functional>
#include "util.h"
#include "Tag.h"
#include "zeek/util.h"
#include "zeek/packet_analysis/Tag.h"
#include "plugin/Component.h"
#include "plugin/TaggedComponent.h"
#include "zeek/plugin/Component.h"
#include "zeek/plugin/TaggedComponent.h"
namespace zeek::packet_analysis {

View file

@ -2,10 +2,10 @@
#include <algorithm>
#include "Dispatcher.h"
#include "Analyzer.h"
#include "Reporter.h"
#include "DebugLogger.h"
#include "zeek/packet_analysis/Dispatcher.h"
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/Reporter.h"
#include "zeek/DebugLogger.h"
namespace zeek::packet_analysis {

View file

@ -1,14 +1,14 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Manager.h"
#include "zeek/packet_analysis/Manager.h"
#include "Analyzer.h"
#include "Dispatcher.h"
#include "zeek-bif.h"
#include "Stats.h"
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Dispatcher.h"
#include "zeek/zeek-bif.h"
#include "zeek/Stats.h"
#include "zeek/Sessions.h"
#include "zeek/RunState.h"
#include "iosource/PktDumper.h"
#include "zeek/iosource/PktDumper.h"
using namespace zeek::packet_analysis;

View file

@ -2,11 +2,11 @@
#pragma once
#include "Tag.h"
#include "Component.h"
#include "plugin/ComponentManager.h"
#include "iosource/Packet.h"
#include "Dispatcher.h"
#include "zeek/packet_analysis/Tag.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/plugin/ComponentManager.h"
#include "zeek/iosource/Packet.h"
#include "zeek/packet_analysis/Dispatcher.h"
ZEEK_FORWARD_DECLARE_NAMESPACED(PacketProfiler, zeek::detail);

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Tag.h"
#include "Manager.h"
#include "zeek/packet_analysis/Tag.h"
#include "zeek/packet_analysis/Manager.h"
namespace zeek::packet_analysis {

View file

@ -3,7 +3,7 @@
#pragma once
#include "zeek-config.h"
#include "../Tag.h"
#include "zeek/Tag.h"
namespace zeek::plugin {
template <class T> class TaggedComponent;

View file

@ -1,11 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "ARP.h"
#include "Event.h"
#include "events.bif.h"
#include "zeek-config.h"
#include "zeek/packet_analysis/protocol/arp/ARP.h"
#ifdef HAVE_NET_ETHERNET_H
#include <net/ethernet.h>
#elif defined(HAVE_SYS_ETHERNET_H)
@ -16,6 +13,10 @@
#include <net/ethertypes.h>
#endif
#include "zeek/Event.h"
#include "events.bif.h"
using namespace zeek::packet_analysis::ARP;
ARPAnalyzer::ARPAnalyzer()

View file

@ -2,12 +2,13 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if_arp.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
#ifndef arp_pkthdr
#define arp_pkthdr arphdr
#endif

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "plugin/Plugin.h"
#include "ARP.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/arp/ARP.h"
namespace zeek::plugin::Zeek_ARP {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Ethernet.h"
#include "NetVar.h"
#include "Manager.h"
#include "zeek/packet_analysis/protocol/ethernet/Ethernet.h"
#include "zeek/NetVar.h"
#include "zeek/packet_analysis/Manager.h"
using namespace zeek::packet_analysis::Ethernet;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::Ethernet {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Ethernet.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/ethernet/Ethernet.h"
namespace zeek::plugin::Zeek_Ethernet {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "FDDI.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/fddi/FDDI.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::FDDI;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::FDDI {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "FDDI.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/fddi/FDDI.h"
namespace zeek::plugin::Zeek_FDDI {

View file

@ -1,13 +1,14 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "GRE.h"
#include "zeek/packet_analysis/protocol/gre/GRE.h"
#include <pcap.h> // For DLT_ constants
#include "zeek/Sessions.h"
#include "zeek/RunState.h"
#include "zeek/IP.h"
#include "zeek/Reporter.h"
#include "pcap.h" // For DLT_ constants
using namespace zeek::packet_analysis::GRE;
static unsigned int gre_header_len(uint16_t flags=0)

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::GRE {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "GRE.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/gre/GRE.h"
namespace zeek::plugin::Zeek_GRE {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IEEE802_11.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/ieee802_11/IEEE802_11.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::IEEE802_11;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::IEEE802_11 {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IEEE802_11.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/ieee802_11/IEEE802_11.h"
namespace zeek::plugin::Zeek_IEEE802_11 {

View file

@ -1,9 +1,10 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "zeek/packet_analysis/protocol/ieee802_11_radio/IEEE802_11_Radio.h"
#include <pcap.h>
#include "IEEE802_11_Radio.h"
#include "NetVar.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::IEEE802_11_Radio;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::IEEE802_11_Radio {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IEEE802_11_Radio.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/ieee802_11_radio/IEEE802_11_Radio.h"
namespace zeek::plugin::Zeek_IEEE802_11_Radio {

View file

@ -1,6 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IP.h"
#include "zeek/packet_analysis/protocol/ip/IP.h"
#include "zeek/NetVar.h"
#include "zeek/IP.h"
#include "zeek/Discard.h"

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IP.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/ip/IP.h"
namespace zeek::plugin::Zeek_IP {

View file

@ -1,13 +1,14 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IPTunnel.h"
#include "zeek/packet_analysis/protocol/iptunnel/IPTunnel.h"
#include <pcap.h> // For DLT_ constants
#include "zeek/Sessions.h"
#include "zeek/RunState.h"
#include "zeek/IP.h"
#include "zeek/TunnelEncapsulation.h"
#include "pcap.h" // For DLT_ constants
namespace zeek::packet_analysis::IPTunnel {
IPTunnelAnalyzer* ip_tunnel_analyzer;

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "IPTunnel.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/iptunnel/IPTunnel.h"
namespace zeek::plugin::Zeek_IPTunnel {

View file

@ -1,6 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "LinuxSLL.h"
#include "zeek/packet_analysis/protocol/linux_sll/LinuxSLL.h"
using namespace zeek::packet_analysis::LinuxSLL;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::LinuxSLL {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "plugin/Plugin.h"
#include "LinuxSLL.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/linux_sll/LinuxSLL.h"
namespace zeek::plugin::Zeek_LinuxSLL {

View file

@ -1,6 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "MPLS.h"
#include "zeek/packet_analysis/protocol/mpls/MPLS.h"
using namespace zeek::packet_analysis::MPLS;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::MPLS {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "MPLS.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/mpls/MPLS.h"
namespace zeek::plugin::Zeek_MPLS {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "NFLog.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/nflog/NFLog.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::NFLog;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::NFLog {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "NFLog.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/nflog/NFLog.h"
namespace zeek::plugin::Zeek_NFLog {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Null.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/null/Null.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::Null;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::Null {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "plugin/Plugin.h"
#include "Null.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/null/Null.h"
namespace zeek::plugin::Zeek_Null {

View file

@ -1,7 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "PPPSerial.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/ppp_serial/PPPSerial.h"
using namespace zeek::packet_analysis::PPPSerial;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::PPPSerial {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "PPPSerial.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/ppp_serial/PPPSerial.h"
namespace zeek::plugin::Zeek_PPPSerial {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "PPPoE.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/pppoe/PPPoE.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::PPPoE;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::PPPoE {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "PPPoE.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/pppoe/PPPoE.h"
namespace zeek::plugin::Zeek_PPPoE {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Root.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/root/Root.h"
namespace zeek::plugin::Zeek_Root {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Root.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/root/Root.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::Root;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::Root {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Skip.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/skip/Skip.h"
namespace zeek::plugin::Zeek_Skip {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Skip.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/skip/Skip.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::Skip;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::Skip {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "VLAN.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/vlan/VLAN.h"
namespace zeek::plugin::Zeek_VLAN {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "VLAN.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/vlan/VLAN.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::VLAN;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::VLAN {

View file

@ -1,8 +1,8 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Wrapper.h"
#include "plugin/Plugin.h"
#include "packet_analysis/Component.h"
#include "zeek/plugin/Plugin.h"
#include "zeek/packet_analysis/Component.h"
#include "zeek/packet_analysis/protocol/wrapper/Wrapper.h"
namespace zeek::plugin::Zeek_Wrapper {

View file

@ -1,7 +1,7 @@
// See the file "COPYING" in the main distribution directory for copyright.
#include "Wrapper.h"
#include "NetVar.h"
#include "zeek/packet_analysis/protocol/wrapper/Wrapper.h"
#include "zeek/NetVar.h"
using namespace zeek::packet_analysis::Wrapper;

View file

@ -2,8 +2,8 @@
#pragma once
#include <packet_analysis/Analyzer.h>
#include <packet_analysis/Component.h>
#include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h"
namespace zeek::packet_analysis::Wrapper {