summaryrefslogtreecommitdiff
path: root/node/Packet.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-07 16:11:50 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-07 16:11:50 -0700
commit69b44bf9a56ea742e05035f31660fbb23762df1b (patch)
treed13391aaabc120e87b4aacca716e1f102b5de961 /node/Packet.hpp
parent73cafbe0ec2422babc37172cb874d54e1fa40024 (diff)
downloadinfinitytier-69b44bf9a56ea742e05035f31660fbb23762df1b.tar.gz
infinitytier-69b44bf9a56ea742e05035f31660fbb23762df1b.zip
Finally add an ECHO.
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r--node/Packet.hpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp
index 93b594e5..01aadad0 100644
--- a/node/Packet.hpp
+++ b/node/Packet.hpp
@@ -46,22 +46,20 @@
#include "../ext/lz4/lz4.h"
/**
- * Protocol version -- incremented only for MAJOR changes
+ * Protocol version -- incremented only for major changes
*
* 1 - 0.2.0 ... 0.2.5
* 2 - 0.3.0 ... 0.4.5
- * * Added signature and originating peer to multicast frame
- * * Double size of multicast frame bloom filter
+ * + Added signature and originating peer to multicast frame
+ * + Double size of multicast frame bloom filter
* 3 - 0.5.0 ... 0.6.0
- * * Yet another multicast redesign
- * * New crypto completely changes key agreement cipher
+ * + Yet another multicast redesign
+ * + New crypto completely changes key agreement cipher
* 4 - 0.6.0 ... 1.0.6
- * * New identity format based on hashcash design
+ * + New identity format based on hashcash design
* 5 - 1.0.6 ... CURRENT
- * * Supports CIRCUIT_TEST and friends, otherwise compatibie w/v4
- *
- * This isn't going to change again for a long time unless your
- * author wakes up again at 4am with another great idea. :P
+ * + Supports circuit test, proof of work, and echo
+ * + Otherwise backward compatible with 4
*/
#define ZT_PROTO_VERSION 5
@@ -660,8 +658,14 @@ public:
*/
VERB_EXT_FRAME = 7,
- /* DEPRECATED */
- //VERB_P5_MULTICAST_FRAME = 8,
+ /**
+ * ECHO request (a.k.a. ping):
+ * <[...] arbitrary payload to be echoed back>
+ *
+ * This generates OK with a copy of the transmitted payload. No ERROR
+ * is generated. Response to ECHO requests is optional.
+ */
+ VERB_ECHO = 8,
/**
* Announce interest in multicast group(s):