dev9ghzdrk: Update the virtual_mac too (bridged?) Won't hurt either way!

This commit is contained in:
refractionpcsx2 2015-06-24 22:14:50 +01:00
parent 8393ba56d6
commit cc6ebff48e
1 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,12 @@ int pcap_io_init(char *adapter)
eeprom[4] = host_mac.bytes[5];
eeprom[5] = host_mac.bytes[4];
virtual_mac.bytes[0] = host_mac.bytes[0];
virtual_mac.bytes[1] = host_mac.bytes[1];
virtual_mac.bytes[2] = host_mac.bytes[2];
virtual_mac.bytes[3] = host_mac.bytes[3];
virtual_mac.bytes[4] = host_mac.bytes[4];
virtual_mac.bytes[5] = host_mac.bytes[5];
//The checksum seems to be all the values of the mac added up in 16bit chunks
checksum = dev9.eeprom[0] + dev9.eeprom[1] + dev9.eeprom[2] & 0xffff;