Skip to content

Commit 3919812

Browse files
authored
Add WireGuard protocol support (#1557)
1 parent 32ba869 commit 3919812

16 files changed

+1232
-26
lines changed

Common++/header/Logger.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ namespace pcpp
103103
PacketLogModuleSomeIpSdLayer, ///< SomeIpSdLayer module (Packet++)
104104
PacketLogModuleWakeOnLanLayer, ///< WakeOnLanLayer module (Packet++)
105105
PacketLogModuleSmtpLayer, ///< SmtpLayer module (Packet++)
106+
PacketLogModuleWireGuardLayer, ///< WireGuardLayer module (Packet++)
106107
PcapLogModuleWinPcapLiveDevice, ///< WinPcapLiveDevice module (Pcap++)
107108
PcapLogModuleRemoteDevice, ///< WinPcapRemoteDevice module (Pcap++)
108109
PcapLogModuleLiveDevice, ///< PcapLiveDevice module (Pcap++)

Packet++/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ add_library(
6464
src/VrrpLayer.cpp
6565
src/VxlanLayer.cpp
6666
src/WakeOnLanLayer.cpp
67+
src/WireGuardLayer.cpp
6768
# Force hash-library pcapng to be link fully static
6869
)
6970

@@ -133,7 +134,8 @@ set(public_headers
133134
header/VlanLayer.h
134135
header/VrrpLayer.h
135136
header/VxlanLayer.h
136-
header/WakeOnLanLayer.h)
137+
header/WakeOnLanLayer.h
138+
header/WireGuardLayer.h)
137139

138140
# Don't use set_target_properties CMake limit to 50 elements
139141
set_property(TARGET Packet++ PROPERTY PUBLIC_HEADER ${public_headers})

Packet++/header/ProtocolType.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@ namespace pcpp
347347
*/
348348
const ProtocolType LDAP = 55;
349349

350+
/*
351+
* WireGuard protocol
352+
*/
353+
const ProtocolType WireGuard = 56;
354+
350355
/**
351356
* An enum representing OSI model layers
352357
*/

0 commit comments

Comments
 (0)