From c1ab09493891a659bbdbdc1087d495a3b728abf8 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Sat, 27 Feb 2021 22:03:32 +0000 Subject: [PATCH] DEV9: Add internal server mac and IP --- pcsx2/DEV9/net.cpp | 3 +++ pcsx2/DEV9/net.h | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pcsx2/DEV9/net.cpp b/pcsx2/DEV9/net.cpp index ee19b3edd6..091d400f86 100644 --- a/pcsx2/DEV9/net.cpp +++ b/pcsx2/DEV9/net.cpp @@ -158,6 +158,9 @@ const wchar_t* NetApiToWstring(NetApi api) } } +const PacketReader::IP::IP_Address NetAdapter::internalIP{192, 0, 2, 1}; +const u8 NetAdapter::broadcastMAC[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; +const u8 NetAdapter::internalMAC[6] = {0x76, 0x6D, 0xF4, 0x63, 0x30, 0x31}; NetAdapter::NetAdapter() { diff --git a/pcsx2/DEV9/net.h b/pcsx2/DEV9/net.h index a0a5cf7c4a..baba94d21a 100644 --- a/pcsx2/DEV9/net.h +++ b/pcsx2/DEV9/net.h @@ -17,6 +17,8 @@ #include #include +#include "PacketReader/IP/IP_Address.h" + // first three recognized by Xlink as Sony PS2 const u8 defaultMAC[6] = {0x00, 0x04, 0x1F, 0x82, 0x30, 0x31}; @@ -59,9 +61,13 @@ struct AdapterEntry class NetAdapter { +public: + static const PacketReader::IP::IP_Address internalIP; + protected: u8 ps2MAC[6]; - const u8 broadcastMAC[6] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; + static const u8 broadcastMAC[6]; + static const u8 internalMAC[6]; public: NetAdapter();