|
@@ -150,7 +150,7 @@
|
|
*
|
|
*
|
|
* In cryptography, a "break" means something different from what it means in
|
|
* In cryptography, a "break" means something different from what it means in
|
|
* common discussion. If a cipher is 256 bits strong and someone finds a way
|
|
* common discussion. If a cipher is 256 bits strong and someone finds a way
|
|
- * to reduce key search to 254 bits, this constitues a "break" in the academic
|
|
|
|
|
|
+ * to reduce key search to 254 bits, this constitutes a "break" in the academic
|
|
* literature. 254 bits is still far beyond what can be leveraged to accomplish
|
|
* literature. 254 bits is still far beyond what can be leveraged to accomplish
|
|
* a "break" as most people would understand it -- the actual decryption and
|
|
* a "break" as most people would understand it -- the actual decryption and
|
|
* reading of traffic.
|
|
* reading of traffic.
|
|
@@ -249,7 +249,7 @@
|
|
*/
|
|
*/
|
|
#define ZT_PROTO_MIN_FRAGMENT_LENGTH ZT_PACKET_FRAGMENT_IDX_PAYLOAD
|
|
#define ZT_PROTO_MIN_FRAGMENT_LENGTH ZT_PACKET_FRAGMENT_IDX_PAYLOAD
|
|
|
|
|
|
-// Field incides for parsing verbs -------------------------------------------
|
|
|
|
|
|
+// Field indices for parsing verbs -------------------------------------------
|
|
|
|
|
|
// Some verbs have variable-length fields. Those aren't fully defined here
|
|
// Some verbs have variable-length fields. Those aren't fully defined here
|
|
// yet-- instead they are parsed using relative indexes in IncomingPacket.
|
|
// yet-- instead they are parsed using relative indexes in IncomingPacket.
|
|
@@ -734,7 +734,7 @@ public:
|
|
* Credentials can be for any number of networks.
|
|
* Credentials can be for any number of networks.
|
|
*
|
|
*
|
|
* The use of a zero byte to terminate the COM section is for legacy
|
|
* The use of a zero byte to terminate the COM section is for legacy
|
|
- * backward compatiblity. Newer fields are prefixed with a length.
|
|
|
|
|
|
+ * backward compatibility. Newer fields are prefixed with a length.
|
|
*
|
|
*
|
|
* OK/ERROR are not generated.
|
|
* OK/ERROR are not generated.
|
|
*/
|
|
*/
|
|
@@ -751,7 +751,7 @@ public:
|
|
* This message requests network configuration from a node capable of
|
|
* This message requests network configuration from a node capable of
|
|
* providing it.
|
|
* providing it.
|
|
*
|
|
*
|
|
- * Respones to this are always whole configs intended for the recipient.
|
|
|
|
|
|
+ * Responses to this are always whole configs intended for the recipient.
|
|
* For patches and other updates a NETWORK_CONFIG is sent instead.
|
|
* For patches and other updates a NETWORK_CONFIG is sent instead.
|
|
*
|
|
*
|
|
* It would be valid and correct as of 1.2.0 to use NETWORK_CONFIG always,
|
|
* It would be valid and correct as of 1.2.0 to use NETWORK_CONFIG always,
|
|
@@ -884,7 +884,7 @@ public:
|
|
* <[6] MAC address of multicast group>
|
|
* <[6] MAC address of multicast group>
|
|
* <[4] 32-bit ADI for multicast group>
|
|
* <[4] 32-bit ADI for multicast group>
|
|
* <[1] flags>
|
|
* <[1] flags>
|
|
- * [<[...] network certficate of membership (DEPRECATED)>]
|
|
|
|
|
|
+ * [<[...] network certificate of membership (DEPRECATED)>]
|
|
* [<[...] implicit gather results if flag 0x01 is set>]
|
|
* [<[...] implicit gather results if flag 0x01 is set>]
|
|
*
|
|
*
|
|
* OK flags (same bits as request flags):
|
|
* OK flags (same bits as request flags):
|
|
@@ -933,7 +933,7 @@ public:
|
|
// 0x11 -- deprecated
|
|
// 0x11 -- deprecated
|
|
|
|
|
|
/**
|
|
/**
|
|
- * An acknowledgement of receipt of a series of recent packets from another
|
|
|
|
|
|
+ * An acknowledgment of receipt of a series of recent packets from another
|
|
* peer. This is used to calculate relative throughput values and to detect
|
|
* peer. This is used to calculate relative throughput values and to detect
|
|
* packet loss. Only VERB_FRAME and VERB_EXT_FRAME packets are counted.
|
|
* packet loss. Only VERB_FRAME and VERB_EXT_FRAME packets are counted.
|
|
*
|
|
*
|
|
@@ -967,7 +967,7 @@ public:
|
|
* The number of possible records per QoS packet is: (1400 * 8) / 72 = 155
|
|
* The number of possible records per QoS packet is: (1400 * 8) / 72 = 155
|
|
* This packet should be sent very rarely (every few seconds) as it can be
|
|
* This packet should be sent very rarely (every few seconds) as it can be
|
|
* somewhat large if the connection is saturated. Future versions might use
|
|
* somewhat large if the connection is saturated. Future versions might use
|
|
- * a bloom table to probablistically determine these values in a vastly
|
|
|
|
|
|
+ * a bloom table to probabilistically determine these values in a vastly
|
|
* more space-efficient manner.
|
|
* more space-efficient manner.
|
|
*
|
|
*
|
|
* Note: The 'internal packet sojourn time' is a slight misnomer as it is a
|
|
* Note: The 'internal packet sojourn time' is a slight misnomer as it is a
|
|
@@ -1000,7 +1000,7 @@ public:
|
|
*
|
|
*
|
|
* This message contains a remote trace event. Remote trace events can
|
|
* This message contains a remote trace event. Remote trace events can
|
|
* be sent to observers configured at the network level for those that
|
|
* be sent to observers configured at the network level for those that
|
|
- * pertain directly to actiity on a network, or to global observers if
|
|
|
|
|
|
+ * pertain directly to activity on a network, or to global observers if
|
|
* locally configured.
|
|
* locally configured.
|
|
*
|
|
*
|
|
* The instance ID is a random 64-bit value generated by each ZeroTier
|
|
* The instance ID is a random 64-bit value generated by each ZeroTier
|
|
@@ -1297,7 +1297,7 @@ public:
|
|
* Encrypt/decrypt a separately armored portion of a packet
|
|
* Encrypt/decrypt a separately armored portion of a packet
|
|
*
|
|
*
|
|
* This is currently only used to mask portions of HELLO as an extra
|
|
* This is currently only used to mask portions of HELLO as an extra
|
|
- * security precation since most of that message is sent in the clear.
|
|
|
|
|
|
+ * security precaution since most of that message is sent in the clear.
|
|
*
|
|
*
|
|
* This must NEVER be used more than once in the same packet, as doing
|
|
* This must NEVER be used more than once in the same packet, as doing
|
|
* so will result in re-use of the same key stream.
|
|
* so will result in re-use of the same key stream.
|