mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Wire through upstream stuff and add setRole().
This commit is contained in:
parent
6e1da35c12
commit
673c0c811e
3 changed files with 25 additions and 1 deletions
|
@ -1784,6 +1784,17 @@ int ZT_Node_addLocalInterfaceAddress(ZT_Node *node,const struct sockaddr_storage
|
|||
*/
|
||||
void ZT_Node_clearLocalInterfaceAddresses(ZT_Node *node);
|
||||
|
||||
/**
|
||||
* Set peer role
|
||||
*
|
||||
* Right now this can only be used to set a peer to either LEAF or
|
||||
* UPSTREAM, since roots are fixed and defined by the World.
|
||||
*
|
||||
* @param ztAddress ZeroTier address (least significant 40 bits)
|
||||
* @param role New peer role (LEAF or UPSTREAM)
|
||||
*/
|
||||
void ZT_Node_setRole(ZT_Node *node,uint64_t ztAddress,ZT_PeerRole role);
|
||||
|
||||
/**
|
||||
* Set a network configuration master instance for this node
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue