mirror of https://github.com/PCSX2/pcsx2.git
Dev9ghzdrk: Take the first 3 bytes of the host MAC for the virtual one, should make it unique for people using xlink or multiple people playing the same game.
Hopefully this works anyway ;) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5805 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
53c76b3780
commit
cf8912eb2c
|
@ -69,6 +69,11 @@ int pcap_io_init(char *adapter)
|
|||
emu_printf("Opening adapter '%s'...",adapter);
|
||||
|
||||
GetMACAddress(adapter,&host_mac);
|
||||
|
||||
//Lets take the hosts first 3 bytes to bytes to make it unique
|
||||
virtual_mac.bytes[0] = host_mac.bytes[0];
|
||||
virtual_mac.bytes[1] = host_mac.bytes[1];
|
||||
virtual_mac.bytes[2] = host_mac.bytes[2];
|
||||
|
||||
/* Open the adapter */
|
||||
if ((adhandle= pcap_open_live(adapter, // name of the device
|
||||
|
|
Loading…
Reference in New Issue