mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 13:03:45 +02:00
Some CLI help updates, some code formatting, pre-reorg.
This commit is contained in:
parent
45b90a0dfa
commit
03bcdf74a8
6 changed files with 58 additions and 52 deletions
0
.gitignore
vendored
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
|
@ -36,7 +36,9 @@ Commands:
|
|||
version Print version
|
||||
service Start as service
|
||||
status Show node status and configuration
|
||||
join <network> [fingerprint] Join a virtual network
|
||||
join <network> [option] Join a virtual network
|
||||
auth <token> Join authorization token
|
||||
fingerprint <fingerprint> Full controller identity fingerprint
|
||||
leave <network> Leave a virtual network
|
||||
networks List VL2 virtual networks
|
||||
network <network> [command] [option] - Network management commands
|
||||
|
@ -57,6 +59,7 @@ Commands:
|
|||
add <identity> [endpoint] Designate a peer as a root
|
||||
remove <address> Un-designate a peer as a root
|
||||
subscribe <url> Subscribe to a root set
|
||||
unsubscribe <url> Unsubscribe from a root set
|
||||
set [option] [value] - Get or set a core config option
|
||||
port <port> Primary P2P port
|
||||
secondaryport <port/0> Secondary P2P port (0 to disable)
|
||||
|
|
|
@ -376,7 +376,6 @@ enum ZT_TracePacketDropReason
|
|||
ZT_TRACE_PACKET_DROP_REASON_INVALID_COMPRESSED_DATA = 6,
|
||||
ZT_TRACE_PACKET_DROP_REASON_UNRECOGNIZED_VERB = 7,
|
||||
ZT_TRACE_PACKET_DROP_REASON_REPLY_NOT_EXPECTED = 8
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -1116,7 +1116,7 @@ void AES::_encryptSW(const uint8_t in[16], uint8_t out[16]) const noexcept
|
|||
|
||||
void AES::_decryptSW(const uint8_t in[16], uint8_t out[16]) const noexcept
|
||||
{
|
||||
const uint32_t *const restrict rk = _k.sw.dk;
|
||||
const uint32_t *restrict rk = _k.sw.dk;
|
||||
uint32_t s0, s1, s2, s3, t0, t1, t2, t3;
|
||||
const uint32_t m8 = 0xff;
|
||||
s0 = readuint32_t(in) ^ rk[0];
|
||||
|
|
|
@ -29,7 +29,11 @@
|
|||
/**
|
||||
* Version bit packed into four 16-bit fields in a 64-bit unsigned integer.
|
||||
*/
|
||||
#define ZT_VERSION_PACKED ( ((uint64_t)ZEROTIER_VERSION_MAJOR << 48U) | ((uint64_t)ZEROTIER_VERSION_MINOR << 32U) | ((uint64_t)ZEROTIER_VERSION_REVISION << 16U) | (uint64_t)ZEROTIER_VERSION_BUILD )
|
||||
#define ZT_VERSION_PACKED ( \
|
||||
((uint64_t)ZEROTIER_VERSION_MAJOR << 48U) | \
|
||||
((uint64_t)ZEROTIER_VERSION_MINOR << 32U) | \
|
||||
((uint64_t)ZEROTIER_VERSION_REVISION << 16U) | \
|
||||
(uint64_t)ZEROTIER_VERSION_BUILD )
|
||||
|
||||
/**
|
||||
* Length of a ZeroTier address in bytes
|
||||
|
|
Loading…
Add table
Reference in a new issue