summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-24 17:05:26 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-24 17:05:26 +0000
commit00febb25de92b1cd01309cc0f253ed4c3a761b13 (patch)
treeba0ffffdaf897e96ec2237a03cc523a4025b52f5 /packet.h
parentmesh syncing works now (diff)
weihnachtlicher checkin
* packet processing now with less memory operations than before * todo: * testing * set cipher / authalgo via commandline * set key operations for hmac calculation
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/packet.h b/packet.h
index 813b694..72c7b6b 100644
--- a/packet.h
+++ b/packet.h
@@ -39,7 +39,12 @@ class Packet : public Buffer
{
public:
Packet();
- Packet(u_int32_t length);
+
+ /**
+ * Packet Constructor
+ * @param payload_length Payload Length
+ */
+ Packet(u_int32_t payload_length);
Packet(const Buffer &src);
bool hasHeader() const;
@@ -72,7 +77,11 @@ private:
bool has_header_;
bool has_payload_type_;
bool has_auth_tag_;
- // FIXXMEE: remove hardcoded authtag-size
+
+ struct HeaderStruct* header_;
+ payload_type_t* payload_type_;
+ AuthTag* auth_tag_;
+
static const u_int32_t AUTHTAG_SIZE = 10;
};