summaryrefslogtreecommitdiff
path: root/src/encryptedPacket.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-18 18:00:46 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-18 18:00:46 +0000
commit55d97625b8f658a4c6cacb3dd74fcc53937f1f7a (patch)
tree280c6318b29f3781be900475b7a853db318d321d /src/encryptedPacket.h
parentadded more sophisticated configure script (diff)
doing replay protection before learning remote host
added some length checks for incoming packets
Diffstat (limited to 'src/encryptedPacket.h')
-rw-r--r--src/encryptedPacket.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/encryptedPacket.h b/src/encryptedPacket.h
index ac67950..4f64022 100644
--- a/src/encryptedPacket.h
+++ b/src/encryptedPacket.h
@@ -53,6 +53,12 @@ public:
~EncryptedPacket() {};
/**
+ * Get the length of the header
+ * @return the length of the header
+ */
+ static u_int32_t getHeaderLength();
+
+ /**
* Get the sequence number
* @return seqence number
*/
@@ -100,7 +106,7 @@ public:
* Get the length of the payload
* @return the length of the payload
*/
- u_int32_t getPayloadLength() const;
+ u_int32_t getPayloadLength() const;
/**
* Set the length of the payload