DEV9: Add internal server mac and IP

This commit is contained in:
TheLastRar 2021-02-27 22:03:32 +00:00 committed by lightningterror
parent 26b954fdc6
commit c1ab094938
2 changed files with 10 additions and 1 deletions

View File

@ -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()
{

View File

@ -17,6 +17,8 @@
#include <stdlib.h>
#include <string>
#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();