summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
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;
};