mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 22:58:22 +00:00
Replicate peer endpoints and forget paths if we have them -- this allows two clusters to talk to each other, whereas forgetting all paths does not.
This commit is contained in:
@ -117,6 +117,10 @@ public:
|
||||
/**
|
||||
* Cluster member has this peer:
|
||||
* <[...] binary serialized peer identity>
|
||||
* <[...] binary serialized peer remote physical address>
|
||||
*
|
||||
* Clusters send this message when they learn a path to a peer. The
|
||||
* replicated physical address is the one learned.
|
||||
*/
|
||||
STATE_MESSAGE_HAVE_PEER = 2,
|
||||
|
||||
@ -225,8 +229,9 @@ public:
|
||||
* Advertise to the cluster that we have this peer
|
||||
*
|
||||
* @param peerId Identity of peer that we have
|
||||
* @param physicalAddress Physical address of peer (from our POV)
|
||||
*/
|
||||
void replicateHavePeer(const Identity &peerId);
|
||||
void replicateHavePeer(const Identity &peerId,const InetAddress &physicalAddress);
|
||||
|
||||
/**
|
||||
* Advertise a multicast LIKE to the cluster
|
||||
|
Reference in New Issue
Block a user