DEV9: Sockets: Set Arp Hardware Type

This commit is contained in:
TheLastRar 2022-06-18 17:44:39 +01:00 committed by lightningterror
parent b4d960e795
commit ee2cbc80b8
1 changed files with 1 additions and 0 deletions

View File

@ -390,6 +390,7 @@ bool SocketAdapter::send(NetPacket* pkt)
memcpy(arpRet->senderProtocolAddress.get(), arpPkt.targetProtocolAddress.get(), 4); memcpy(arpRet->senderProtocolAddress.get(), arpPkt.targetProtocolAddress.get(), 4);
arpRet->op = 2, arpRet->op = 2,
arpRet->protocol = arpPkt.protocol; arpRet->protocol = arpPkt.protocol;
arpRet->hardwareType = arpPkt.hardwareType;
EthernetFrame* retARP = new EthernetFrame(arpRet); EthernetFrame* retARP = new EthernetFrame(arpRet);
memcpy(retARP->destinationMAC, ps2MAC, 6); memcpy(retARP->destinationMAC, ps2MAC, 6);