diff --git a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp index 6e5c3eac97..4782a0a8b0 100644 --- a/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp +++ b/Source/Core/Core/HW/EXI/BBA/BuiltIn.cpp @@ -13,6 +13,7 @@ #include "Common/BitUtils.h" #include "Common/Logging/Log.h" #include "Common/MsgHandler.h" +#include "Common/Network.h" #include "Common/ScopeGuard.h" #include "Core/HW/EXI/EXI_Device.h" #include "Core/HW/EXI/EXI_DeviceEthernet.h" @@ -746,7 +747,7 @@ void CEXIETHERNET::BuiltInBBAInterface::ReadThreadHandler(CEXIETHERNET::BuiltInB u8* buffer = reinterpret_cast(self->m_eth_ref->mRecvBuffer.get()); Common::PacketView packet(buffer, datasize); const auto packet_type = packet.GetEtherType(); - if (packet_type.has_value() && packet_type == IP_PROTOCOL) + if (packet_type.has_value() && packet_type == Common::IPV4_ETHERTYPE) { SetIPIdentification(buffer, datasize, ++self->m_ip_frame_id); } diff --git a/Source/Core/Core/HW/EXI/BBA/BuiltIn.h b/Source/Core/Core/HW/EXI/BBA/BuiltIn.h index 4478f4de48..afcf39d293 100644 --- a/Source/Core/Core/HW/EXI/BBA/BuiltIn.h +++ b/Source/Core/Core/HW/EXI/BBA/BuiltIn.h @@ -20,9 +20,6 @@ constexpr u16 TCP_FLAG_PSH = 0x8; constexpr u16 TCP_FLAG_FIN = 0x1; constexpr u16 TCP_FLAG_RST = 0x4; -constexpr u16 IP_PROTOCOL = 0x800; -constexpr u16 ARP_PROTOCOL = 0x806; - constexpr u8 MAX_TCP_BUFFER = 4; constexpr u16 MAX_UDP_LENGTH = 1500; constexpr u16 MAX_TCP_LENGTH = 440;