mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
proAdhoc: Say why MAC comparisons ignore the first byte
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0a6a662f4
commit
de175c7d03
1 file changed
+3
-1
@@ -145,7 +145,9 @@ static int chatMessageGeneration = 0;
|
||||
static int chatMessageCount = 0;
|
||||
|
||||
bool isMacMatch(const SceNetEtherAddr* addr1, const SceNetEtherAddr* addr2) {
|
||||
// Ignoring the 1st byte since there are games (ie. Gran Turismo) who tamper with the 1st byte of OUI to change the unicast/multicast bit
|
||||
// Ignoring the 1st byte: games overwrite it (Gran Turismo changes the unicast bit, Street Riders sets it to
|
||||
// 00 when sending PDP). On a PSP, whose MACs start with 00, that's harmless; PS Vitas' don't, so the aemu
|
||||
// plugin ignores it too.
|
||||
return (memcmp(((const char*)addr1)+1, ((const char*)addr2)+1, ETHER_ADDR_LEN-1) == 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user