Skip to content

Commit ab14a07

Browse files
authored
Upgrade pcapplusplus from 22.11 to 23.09 (#701)
* Upgrade pcapplusplus from 22.11 to 23.09 * Fix macos python version
1 parent 167a0b1 commit ab14a07

33 files changed

+90
-85
lines changed

.github/workflows/build-develop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
# We'll use this as our working directory for all subsequent commands
3434
run: cmake -E make_directory ${{github.workspace}}/build
3535

36+
- name: Python Setup
37+
uses: actions/setup-python@v4
38+
with:
39+
python-version: '3.10'
40+
3641
- name: Get Conan
3742
id: conan
3843
uses: turtlebrowser/get-conan@main

conanfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ libmaxminddb/1.7.1
99
nlohmann_json/3.11.2
1010
openssl/1.1.1w
1111
opentelemetry-proto/1.0.0
12-
pcapplusplus/22.11
12+
pcapplusplus/23.09
1313
protobuf/3.21.12
1414
sigslot/1.2.2
1515
spdlog/1.12.0

libs/visor_dns/DnsLayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
#include "DnsLayer.h"
44
#include "EndianPortable.h"
5-
#include <IpAddress.h>
5+
#include <pcapplusplus/IpAddress.h>
66
#ifdef __GNUC__
77
#pragma GCC diagnostic push
88
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
99
#endif
10-
#include <Logger.h>
10+
#include <pcapplusplus/Logger.h>
1111
#ifdef __GNUC__
1212
#pragma GCC diagnostic pop
1313
#endif

libs/visor_dns/DnsLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "DnsLayerEnums.h"
1111
#include "DnsResource.h"
1212
#include "DnsResourceData.h"
13-
#include <UdpLayer.h>
13+
#include <pcapplusplus/UdpLayer.h>
1414
#include <VisorTcpLayer.h>
1515
#ifdef __GNUC__
1616
#pragma GCC diagnostic pop

libs/visor_dns/DnsResource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#pragma GCC diagnostic push
88
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
99
#endif
10-
#include <Logger.h>
10+
#include <pcapplusplus/Logger.h>
1111
#ifdef __GNUC__
1212
#pragma GCC diagnostic pop
1313
#endif

libs/visor_dns/DnsResourceData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
#include "DnsResourceData.h"
44
#include "EndianPortable.h"
5-
#include <GeneralUtils.h>
5+
#include <pcapplusplus/GeneralUtils.h>
66
#include <sstream>
77
#include <string.h>
88
#ifdef __GNUC__
99
#pragma GCC diagnostic push
1010
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
1111
#endif
12-
#include <Logger.h>
12+
#include <pcapplusplus/Logger.h>
1313
#ifdef __GNUC__
1414
#pragma GCC diagnostic pop
1515
#pragma GCC diagnostic ignored "-Wunused-parameter"

libs/visor_dns/DnsResourceData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define PV_PACKETPP_DNS_RESOURCE_DATA
33

44
#include "DnsResource.h"
5-
#include <IpAddress.h>
5+
#include <pcapplusplus/IpAddress.h>
66
#include <memory>
77
#include <string>
88
#include <stdint.h>

libs/visor_dns/tests/benchmark_dns.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
1414
#pragma clang diagnostic ignored "-Wc99-extensions"
1515
#endif
16-
#include "IPv4Layer.h"
17-
#include "PacketUtils.h"
18-
#include "PcapFileDevice.h"
16+
#include <pcapplusplus/IPv4Layer.h>
17+
#include <pcapplusplus/PacketUtils.h>
18+
#include <pcapplusplus/PcapFileDevice.h>
1919
#ifdef __GNUC__
2020
#pragma GCC diagnostic pop
2121
#endif

libs/visor_tcp/VisorTcpLayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifdef TCPOPT_CCECHO
1919
#undef TCPOPT_CCECHO
2020
#endif // TCPOPT_CCECHO
21-
#include <TcpLayer.h>
21+
#include <pcapplusplus/TcpLayer.h>
2222
#ifdef __GNUC__
2323
#pragma GCC diagnostic pop
2424
#endif

libs/visor_utils/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "utils.h"
22
#include "EndianPortable.h"
3-
#include <IpUtils.h>
3+
#include <pcapplusplus/IpUtils.h>
44
#include <fmt/format.h>
55
#include <sstream>
66

0 commit comments

Comments
 (0)