From a9974991b031fd8f84c4bcfd93f129b3938ed8c8 Mon Sep 17 00:00:00 2001 From: staphen Date: Sat, 1 Jan 2022 05:03:16 -0500 Subject: [PATCH] Add hardcoded MAC address for multicast in DevilutionX --- src/VirtualTap.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VirtualTap.cpp b/src/VirtualTap.cpp index f0b2260..a2d5e9c 100644 --- a/src/VirtualTap.cpp +++ b/src/VirtualTap.cpp @@ -214,6 +214,11 @@ void VirtualTap::scanMulticastGroups(std::vector& added, std::ve std::vector newGroups; Mutex::Lock _l(_multicastGroups_m); // TODO: get multicast subscriptions + + // Hardcoded MAC for IPv6 multicast address + // ff0e:a8a9:b611:58ce:0412:fd73:3786:6fb7 + newGroups.push_back(MulticastGroup(MAC(0x33, 0x33, 0x37, 0x86, 0x6f, 0xb7), 0)); + std::vector allIps(ips()); for (std::vector::iterator ip(allIps.begin()); ip != allIps.end(); ++ip) newGroups.push_back(MulticastGroup::deriveMulticastGroupForAddressResolution(*ip));