From e4b25271429e29297e5e6cd4e477f5c0237ad280 Mon Sep 17 00:00:00 2001 From: Michael Friesen <3517159+mtfriesen@users.noreply.github.com> Date: Thu, 18 Jul 2024 12:41:27 -0400 Subject: [PATCH 1/2] fix macro guard version for NET_BUFFER_LIST_IS_TCP_RSC_SET --- published/private/xdpwdk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/published/private/xdpwdk.h b/published/private/xdpwdk.h index ee32e9b3..7b685365 100644 --- a/published/private/xdpwdk.h +++ b/published/private/xdpwdk.h @@ -12,7 +12,7 @@ #if NDIS_SUPPORT_NDIS630 -#if (!defined(NTDDI_WIN10_NI) || (WDK_NTDDI_VERSION < NTDDI_WIN10_NI)) +#if (!defined(NTDDI_WIN11_ZN) || (WDK_NTDDI_VERSION < NTDDI_WIN11_ZN)) inline BOOLEAN @@ -25,6 +25,6 @@ NET_BUFFER_LIST_IS_TCP_RSC_SET( return ((UINT_PTR)Info->Value & 0xFFFFFFFF) != 0; } -#endif // (!defined(NTDDI_WIN10_NI) || (WDK_NTDDI_VERSION < NTDDI_WIN10_NI)) +#endif // (!defined(NTDDI_WIN11_ZN) || (WDK_NTDDI_VERSION < NTDDI_WIN11_ZN)) #endif // NDIS_SUPPORT_NDIS630 From 34f1031b2046d4240d4b81ec201e98dfc012ddaf Mon Sep 17 00:00:00 2001 From: Michael Friesen <3517159+mtfriesen@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:02:08 -0400 Subject: [PATCH 2/2] try again --- published/private/xdpwdk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/published/private/xdpwdk.h b/published/private/xdpwdk.h index 7b685365..95698e4e 100644 --- a/published/private/xdpwdk.h +++ b/published/private/xdpwdk.h @@ -12,7 +12,7 @@ #if NDIS_SUPPORT_NDIS630 -#if (!defined(NTDDI_WIN11_ZN) || (WDK_NTDDI_VERSION < NTDDI_WIN11_ZN)) +#if (!defined(NTDDI_WIN10_NI) || (WDK_NTDDI_VERSION < NTDDI_WIN10_NI) || (defined(NTDDI_WIN11_ZN) && !defined(NDIS_SUPPORT_NDIS688))) inline BOOLEAN @@ -25,6 +25,6 @@ NET_BUFFER_LIST_IS_TCP_RSC_SET( return ((UINT_PTR)Info->Value & 0xFFFFFFFF) != 0; } -#endif // (!defined(NTDDI_WIN11_ZN) || (WDK_NTDDI_VERSION < NTDDI_WIN11_ZN)) +#endif // (!defined(NTDDI_WIN10_NI) || (WDK_NTDDI_VERSION < NTDDI_WIN10_NI) || (defined(NTDDI_WIN11_ZN) && !defined(NDIS_SUPPORT_NDIS688))) #endif // NDIS_SUPPORT_NDIS630