From 5f8123d7e45d925739a84eb208da2eb8edcd4179 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 27 Feb 2008 22:50:01 +0000 Subject: added get Src/Dst Address @ plainPacket --- plainPacket.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plainPacket.h') 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
* 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(); -- cgit v1.2.3