From e46488871a1dce64c1a367f16fdb5d34b354feec Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Thu, 21 Nov 2024 20:18:07 +0200 Subject: [PATCH] Add macros to support 10.0.20348 SDK Signed-off-by: Lev Stipakov --- peer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/peer.cpp b/peer.cpp index e068aa3..5e48795 100644 --- a/peer.cpp +++ b/peer.cpp @@ -27,6 +27,14 @@ #include "timer.h" #include "socket.h" +#ifndef TraceLoggingIPv4Address +#define TraceLoggingIPv4Address(value, ...) _tlgArgScalarVal(UINT32, value, TlgInUINT32, (TlgOutIPV4), __VA_ARGS__) +#endif + +#ifndef TraceLoggingIPv6Address +#define TraceLoggingIPv6Address(pValue, ...) _tlgArgBinary(void, pValue, 16u, TlgInBINARY, (TlgOutIPV6), __VA_ARGS__) +#endif + _Use_decl_annotations_ OvpnPeerContext* OvpnPeerCtxAlloc()