mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-07 13:31:45 -07:00
Implement ERROR_UNWATNED_MULTICAST
This commit is contained in:
parent
cf6f30963c
commit
412389ec75
3 changed files with 27 additions and 1 deletions
|
@ -156,7 +156,10 @@ bool IncomingPacket::_doERROR(const RuntimeEnvironment *RR,const SharedPtr<Peer>
|
|||
} break;
|
||||
|
||||
case Packet::ERROR_UNWANTED_MULTICAST: {
|
||||
// TODO: unsubscribe
|
||||
uint64_t nwid = at<uint64_t>(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD);
|
||||
MulticastGroup mg(MAC(field(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 8,6),6),at<uint32_t>(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 14));
|
||||
TRACE("%.16llx: peer %s unsubscrubed from multicast group %s",nwid,peer->address().toString().c_str(),mg.toString().c_str());
|
||||
RR->mc->remove(nwid,mg,peer->address());
|
||||
} break;
|
||||
|
||||
default: break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue