From a9746465582c56bc476dd4e50c57338668d671f9 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 18 Oct 2018 23:18:12 +0200 Subject: [PATCH] Add macros for replay packet id --- TunnelKit/Sources/Core/PacketMacros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TunnelKit/Sources/Core/PacketMacros.h b/TunnelKit/Sources/Core/PacketMacros.h index f4f540e..b5531a6 100644 --- a/TunnelKit/Sources/Core/PacketMacros.h +++ b/TunnelKit/Sources/Core/PacketMacros.h @@ -45,6 +45,8 @@ NS_ASSUME_NONNULL_BEGIN #define PacketAckLengthLength ((NSInteger)1) #define PacketPeerIdLength ((NSInteger)3) #define PacketPeerIdDisabled ((uint32_t)0xffffffu) +#define PacketReplayIdLength ((NSInteger)4) +#define PacketReplayTimestampLength ((NSInteger)4) typedef NS_ENUM(uint8_t, PacketCode) { PacketCodeSoftResetV1 = 0x03,