From 460011ca40197b95513cfb24acbf620112168c3f Mon Sep 17 00:00:00 2001 From: MFransen69 <39826971+MFransen69@users.noreply.github.com> Date: Sat, 1 Jun 2024 07:36:25 +0200 Subject: [PATCH] [ipframe] fix windows build (#1623) Co-authored-by: Pierre Wielders --- Source/core/IPFrame.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/core/IPFrame.h b/Source/core/IPFrame.h index bc780589e..46b4cd8d5 100644 --- a/Source/core/IPFrame.h +++ b/Source/core/IPFrame.h @@ -126,11 +126,7 @@ namespace Core { public: bool IsValid() const { const ip* ipHeader = reinterpret_cast(Base::Frame()); - #ifdef __WINDOWS__ - return ((ipHeader->protocol == PROTOCOL) && (Checksum() == ipHeader->check)); - #else return ((ipHeader->ip_p == PROTOCOL) && (Checksum() == ipHeader->ip_sum)); - #endif } uint16_t Load(const uint8_t buffer[], const uint16_t size) { uint16_t copySize = std::min(size, static_cast(SIZE + HeaderSize));