diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-13 09:03:48 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-02-13 09:03:48 -0800 |
| commit | 42f28bce52c3342e3aac68488260a02c71691177 (patch) | |
| tree | 230f1d73d8ea82ee4804d2dcc982a1c6bbe9a833 /include | |
| parent | cdc289fa9c5d7d19990c14946ede5f3642e235d2 (diff) | |
| download | infinitytier-42f28bce52c3342e3aac68488260a02c71691177.tar.gz infinitytier-42f28bce52c3342e3aac68488260a02c71691177.zip | |
Cleanup and make moons (federated roots) a little easier to deal with.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ZeroTierOne.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index 583f9b6a..38ae7d8a 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -835,9 +835,9 @@ enum ZT_VirtualNetworkConfigOperation */ enum ZT_PeerRole { - ZT_PEER_ROLE_LEAF = 0, // ordinary node - ZT_PEER_ROLE_UPSTREAM = 1, // moon root - ZT_PEER_ROLE_ROOT = 2 // planetary root + ZT_PEER_ROLE_LEAF = 0, // ordinary node + ZT_PEER_ROLE_MOON = 1, // moon root + ZT_PEER_ROLE_PLANET = 2 // planetary root }; /** @@ -1790,10 +1790,11 @@ enum ZT_ResultCode ZT_Node_multicastUnsubscribe(ZT_Node *node,uint64_t nwid,uint * called for each on startup. * * @param moonWorldId Moon's world ID + * @param moonSeed If non-zero, the ZeroTier address of any member of the moon to query for moon definition * @param len Length of moonWorld in bytes * @return Error if moon was invalid or failed to be added */ -enum ZT_ResultCode ZT_Node_orbit(ZT_Node *node,uint64_t moonWorldId); +enum ZT_ResultCode ZT_Node_orbit(ZT_Node *node,uint64_t moonWorldId,uint64_t moonSeed); /** * Remove a moon (does nothing if not present) |
