From cf8912eb2cf4f24f972254c751d605dbbb12aa1d Mon Sep 17 00:00:00 2001 From: refraction Date: Thu, 9 Jan 2014 22:39:23 +0000 Subject: [PATCH] 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 --- plugins/dev9ghzdrk/pcap_io.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/dev9ghzdrk/pcap_io.cpp b/plugins/dev9ghzdrk/pcap_io.cpp index 0d744c22ac..11bdd13bb6 100644 --- a/plugins/dev9ghzdrk/pcap_io.cpp +++ b/plugins/dev9ghzdrk/pcap_io.cpp @@ -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