Skip to content

Commit

Permalink
header: move to a dedicated pcapplusplus folder to follow install hie…
Browse files Browse the repository at this point in the history
…rarchy
  • Loading branch information
clementperon committed Sep 19, 2024
1 parent 4fb8f84 commit 9c37d64
Show file tree
Hide file tree
Showing 35 changed files with 97 additions and 93 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Common++/src/GeneralUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define LOG_MODULE CommonLogModuleGenericUtils

#include "GeneralUtils.h"
#include "Logger.h"
#include "pcapplusplus/GeneralUtils.h"
#include "pcapplusplus/Logger.h"
#include <sstream>
#include <iomanip>
#include <string.h>
Expand Down
6 changes: 3 additions & 3 deletions Common++/src/IpAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#include <stdexcept>
#include <stdint.h>
#include <bitset>
#include "Logger.h"
#include "IpUtils.h"
#include "IpAddress.h"
#include "pcapplusplus/Logger.h"
#include "pcapplusplus/IpUtils.h"
#include "pcapplusplus/IpAddress.h"
#include "EndianPortable.h"

// for AF_INET, AF_INET6
Expand Down
6 changes: 3 additions & 3 deletions Common++/src/IpAddressUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "IpAddressUtils.h"
#include "pcapplusplus/IpAddressUtils.h"

#include "IpAddress.h"
#include "IpUtils.h" // Just needing in_addr and in6_addr.
#include "pcapplusplus/IpAddress.h"
#include "pcapplusplus/IpUtils.h" // Just needing in_addr and in6_addr.

namespace pcpp
{
Expand Down
4 changes: 2 additions & 2 deletions Common++/src/IpUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define LOG_MODULE CommonLogModuleIpUtils

#include "IpUtils.h"
#include "Logger.h"
#include "pcapplusplus/IpUtils.h"
#include "pcapplusplus/Logger.h"
#include <string.h>
#include <stdio.h>
#include <stdexcept>
Expand Down
2 changes: 1 addition & 1 deletion Common++/src/Logger.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <sstream>
#include "Logger.h"
#include "pcapplusplus/Logger.h"

namespace pcpp
{
Expand Down
2 changes: 1 addition & 1 deletion Common++/src/MacAddress.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdio.h>

#include "MacAddress.h"
#include "pcapplusplus/MacAddress.h"

namespace pcpp
{
Expand Down
6 changes: 3 additions & 3 deletions Common++/src/OUILookup.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "OUILookup.h"
#include "Logger.h"
#include "pcapplusplus/OUILookup.h"
#include "pcapplusplus/Logger.h"

#include "json.hpp"
#include <json.hpp>

#include <fstream>

Expand Down
2 changes: 1 addition & 1 deletion Common++/src/PcapPlusPlusVersion.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "PcapPlusPlusVersion.h"
#include "pcapplusplus/PcapPlusPlusVersion.h"

namespace pcpp
{
Expand Down
2 changes: 1 addition & 1 deletion Common++/src/SystemUtils.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "SystemUtils.h"
#include "pcapplusplus/SystemUtils.h"
#include "EndianPortable.h"

#ifndef _MSC_VER
Expand Down
4 changes: 2 additions & 2 deletions Common++/src/TablePrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#include <iterator>
#include <numeric>
#include <utility>
#include "TablePrinter.h"
#include "Logger.h"
#include "pcapplusplus/TablePrinter.h"
#include "pcapplusplus/Logger.h"

namespace pcpp
{
Expand Down
20 changes: 11 additions & 9 deletions Examples/ArpSpoofing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
#include <iostream>
#include <fstream>
#include <memory>
#include <MacAddress.h>
#include <IpAddress.h>
#include <PcapPlusPlusVersion.h>
#include <SystemUtils.h>
#include <PcapLiveDeviceList.h>
#include <PcapLiveDevice.h>
#include <EthLayer.h>
#include <ArpLayer.h>
#include <Logger.h>

#include <pcapplusplus/MacAddress.h>
#include <pcapplusplus/IpAddress.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/PcapLiveDevice.h>
#include <pcapplusplus/EthLayer.h>
#include <pcapplusplus/ArpLayer.h>
#include <pcapplusplus/Logger.h>

#include <getopt.h>

#define EXIT_WITH_ERROR(reason) \
Expand Down
16 changes: 8 additions & 8 deletions Examples/Arping/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

#include <stdlib.h>
#include <iostream>
#include <MacAddress.h>
#include <IpAddress.h>
#include <Logger.h>
#include <PcapPlusPlusVersion.h>
#include <PcapLiveDeviceList.h>
#include <PcapLiveDevice.h>
#include <NetworkUtils.h>
#include <getopt.h>
#include <SystemUtils.h>
#include <pcapplusplus/MacAddress.h>
#include <pcapplusplus/IpAddress.h>
#include <pcapplusplus/Logger.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/PcapLiveDevice.h>
#include <pcapplusplus/NetworkUtils.h>
#include <pcapplusplus/SystemUtils.h>

#define EXIT_WITH_ERROR(reason) \
do \
Expand Down
12 changes: 6 additions & 6 deletions Examples/DNSResolver/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <stdlib.h>
#include <iostream>
#include "PcapPlusPlusVersion.h"
#include "PcapLiveDevice.h"
#include "PcapLiveDeviceList.h"
#include "NetworkUtils.h"
#include "SystemUtils.h"
#include "Logger.h"
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/PcapLiveDevice.h>
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/NetworkUtils.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/Logger.h>
#include <getopt.h>

#define EXIT_WITH_ERROR(reason) \
Expand Down
30 changes: 15 additions & 15 deletions Examples/DnsSpoofing/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
#if !defined(_WIN32)
# include <errno.h>
#endif
#include "IpAddress.h"
#include "RawPacket.h"
#include "ProtocolType.h"
#include "Packet.h"
#include "EthLayer.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "UdpLayer.h"
#include "DnsLayer.h"
#include "PcapFilter.h"
#include "PcapLiveDevice.h"
#include "PcapLiveDeviceList.h"
#include "TablePrinter.h"
#include "SystemUtils.h"
#include "PcapPlusPlusVersion.h"
#include <pcapplusplus/IpAddress.h>
#include <pcapplusplus/RawPacket.h>
#include <pcapplusplus/ProtocolType.h>
#include <pcapplusplus/Packet.h>
#include <pcapplusplus/EthLayer.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/IPv6Layer.h>
#include <pcapplusplus/UdpLayer.h>
#include <pcapplusplus/DnsLayer.h>
#include <pcapplusplus/PcapFilter.h>
#include <pcapplusplus/PcapLiveDevice.h>
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/TablePrinter.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <getopt.h>

#define EXIT_WITH_ERROR(reason) \
Expand Down
14 changes: 7 additions & 7 deletions Examples/DpdkBridge/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
#include "Common.h"
#include "AppWorkerThread.h"

#include "DpdkDeviceList.h"
#include "IPv4Layer.h"
#include "TcpLayer.h"
#include "UdpLayer.h"
#include "SystemUtils.h"
#include "PcapPlusPlusVersion.h"
#include "TablePrinter.h"
#include <pcapplusplus/DpdkDeviceList.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/TcpLayer.h>
#include <pcapplusplus/UdpLayer.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/TablePrinter.h>

#include <vector>
#include <iostream>
Expand Down
12 changes: 6 additions & 6 deletions Examples/DpdkExample-FilterTraffic/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
#include "PacketMatchingEngine.h"
#include "AppWorkerThread.h"

#include "DpdkDeviceList.h"
#include "TcpLayer.h"
#include "UdpLayer.h"
#include "SystemUtils.h"
#include "PcapPlusPlusVersion.h"
#include "TablePrinter.h"
#include <pcapplusplus/DpdkDeviceList.h>
#include <pcapplusplus/TcpLayer.h>
#include <pcapplusplus/UdpLayer.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/TablePrinter.h>

#include <vector>
#include <iostream>
Expand Down
6 changes: 3 additions & 3 deletions Examples/ExampleApp/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>
#include <IPv4Layer.h>
#include <Packet.h>
#include <PcapFileDevice.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/Packet.h>
#include <pcapplusplus/PcapFileDevice.h>

int main(int argc, char* argv[])
{
Expand Down
15 changes: 8 additions & 7 deletions Examples/HttpAnalyzer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@
#include <string.h>
#include <iomanip>
#include <algorithm>
#include "PcapLiveDeviceList.h"
#include "PcapFilter.h"
#include "PcapFileDevice.h"
#include "HttpStatsCollector.h"
#include "TablePrinter.h"
#include "SystemUtils.h"
#include "PcapPlusPlusVersion.h"
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/PcapFilter.h>
#include <pcapplusplus/PcapFileDevice.h>
#include <pcapplusplus/TablePrinter.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <getopt.h>
#include <iostream>
#include <sstream>

#include "HttpStatsCollector.h"

#define EXIT_WITH_ERROR(reason) \
do \
{ \
Expand Down
14 changes: 7 additions & 7 deletions Examples/IPDefragUtil/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include "PcapPlusPlusVersion.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "IPReassembly.h"
#include "PcapFileDevice.h"
#include "SystemUtils.h"
#include "getopt.h"
#include <pcapplusplus/PcapPlusPlusVersion.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/IPv6Layer.h>
#include <pcapplusplus/IPReassembly.h>
#include <pcapplusplus/PcapFileDevice.h>
#include <pcapplusplus/SystemUtils.h>
#include <getopt.h>

#define EXIT_WITH_ERROR(reason) \
do \
Expand Down
12 changes: 6 additions & 6 deletions Examples/IcmpFileTransfer/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#include <iostream>
#include <vector>
#include <getopt.h>
#include "EthLayer.h"
#include "IPv4Layer.h"
#include "IcmpLayer.h"
#include "PcapLiveDeviceList.h"
#include "SystemUtils.h"
#include "PcapPlusPlusVersion.h"
#include <pcapplusplus/EthLayer.h>
#include <pcapplusplus/IPv4Layer.h>
#include <pcapplusplus/IcmpLayer.h>
#include <pcapplusplus/PcapLiveDeviceList.h>
#include <pcapplusplus/SystemUtils.h>
#include <pcapplusplus/PcapPlusPlusVersion.h>

#if defined(_WIN32)
# define SEPARATOR '\\'
Expand Down
1 change: 1 addition & 0 deletions Pcap++/header/pcapplusplus

0 comments on commit 9c37d64

Please sign in to comment.