summaryrefslogtreecommitdiff
path: root/node/Packet.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-08 13:06:24 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-08 13:06:24 -0800
commit9c7ee5a21e2875baf3b1643101f660f41c903124 (patch)
treeeb3dbdcd28b769839149a4fe96f7a79a4c6dfd62 /node/Packet.hpp
parenta9c4ce38f0b3aaae7e354e56dd6548f8e1ae928d (diff)
downloadinfinitytier-9c7ee5a21e2875baf3b1643101f660f41c903124.tar.gz
infinitytier-9c7ee5a21e2875baf3b1643101f660f41c903124.zip
Tear out old "link quality" stuff since it is not currently used and will be done differently.
Diffstat (limited to 'node/Packet.hpp')
-rw-r--r--node/Packet.hpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/node/Packet.hpp b/node/Packet.hpp
index cc055347..8cfb5492 100644
--- a/node/Packet.hpp
+++ b/node/Packet.hpp
@@ -68,7 +68,6 @@
* + Tags and Capabilities
* + Inline push of CertificateOfMembership deprecated
* 9 - 1.2.0 ... CURRENT
- * + In-band encoding of packet counter for link quality measurement
*/
#define ZT_PROTO_VERSION 9
@@ -1203,11 +1202,6 @@ public:
inline uint64_t packetId() const { return at<uint64_t>(ZT_PACKET_IDX_IV); }
/**
- * @return Value of link quality counter extracted from this packet's ID, range 0 to 7 (3 bits)
- */
- inline unsigned int linkQualityCounter() const { return (unsigned int)(reinterpret_cast<const uint8_t *>(data())[7] & 0x07); }
-
- /**
* Set packet verb
*
* This also has the side-effect of clearing any verb flags, such as
@@ -1237,9 +1231,8 @@ public:
*
* @param key 32-byte key
* @param encryptPayload If true, encrypt packet payload, else just MAC
- * @param counter Packet send counter for destination peer -- only least significant 3 bits are used
*/
- void armor(const void *key,bool encryptPayload,unsigned int counter);
+ void armor(const void *key,bool encryptPayload);
/**
* Verify and (if encrypted) decrypt packet