summaryrefslogtreecommitdiff
path: root/plainPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'plainPacket.h')
-rw-r--r--plainPacket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/plainPacket.h b/plainPacket.h
index e44df32..03ae507 100644
--- a/plainPacket.h
+++ b/plainPacket.h
@@ -34,12 +34,18 @@
#include "datatypes.h"
#include "buffer.h"
+#include "networkAddress.h"
+
class Cipher;
/**
* plain SATP packet class<br>
* includes payload_type and payload
*/
+#define PAYLOAD_TYPE_TAP 0x6558
+#define PAYLOAD_TYPE_TUN 0x0800
+#define PAYLOAD_TYPE_TUN6 0x86DD
+
class PlainPacket : public Buffer
{
public:
@@ -85,6 +91,8 @@ public:
*/
u_int8_t* getPayload();
+ NetworkAddress getSrcAddr() const;
+ NetworkAddress getDstAddr() const;
private:
PlainPacket();