diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 17:35:19 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-17 17:35:19 -0400 |
| commit | 1fce55fab10260ae942cc46c6fee15d71a1403c2 (patch) | |
| tree | dc74d725ab40bbd123b34581b9d8d7ccb69dda78 /node/NodeConfig.hpp | |
| parent | 2e85cf18c19ce86363de636ff30827fe232aa80b (diff) | |
| download | infinitytier-1fce55fab10260ae942cc46c6fee15d71a1403c2.tar.gz infinitytier-1fce55fab10260ae942cc46c6fee15d71a1403c2.zip | |
Add an echoed 32-bit token field to command packets.
Diffstat (limited to 'node/NodeConfig.hpp')
| -rw-r--r-- | node/NodeConfig.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/node/NodeConfig.hpp b/node/NodeConfig.hpp index bb24d815..66c99448 100644 --- a/node/NodeConfig.hpp +++ b/node/NodeConfig.hpp @@ -33,6 +33,7 @@ #include <string> #include <vector> #include <stdexcept> + #include <stdint.h> #include "SharedPtr.hpp" #include "Network.hpp" @@ -45,7 +46,20 @@ namespace ZeroTier { class RuntimeEnvironment; /** - * Node configuration holder and fetcher + * Node configuration endpoint + * + * Packet format for local UDP configuration packets: + * [8] random initialization vector + * [16] first 16 bytes of HMAC-SHA-256 of payload + * [4] arbitrary tag, echoed in response + * [...] payload + * + * For requests, the payload consists of a single ASCII command. For + * responses, the payload consists of one or more response lines delimited + * by NULL (0) characters. The tag field is replicated in the result + * packet. + * + * TODO: further document use of keys, encryption... */ class NodeConfig { |
