summaryrefslogtreecommitdiff
path: root/buffer.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-11 13:53:03 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-11 13:53:03 +0000
commitb49e5993550f6c762b03a8de70ff7bf70a3ad011 (patch)
tree51d5d3d4802dc47c9b82ff1a2577a2042947e3c3 /buffer.h
parentdebuging sync buffer (diff)
added pretty buffer print
Diffstat (limited to 'buffer.h')
-rw-r--r--buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/buffer.h b/buffer.h
index e8c33e6..96201e8 100644
--- a/buffer.h
+++ b/buffer.h
@@ -32,6 +32,7 @@
#define _BUFFER_H_
#include "datatypes.h"
+#include <string>
class TunDevice;
class UDPPacketSource;
@@ -58,7 +59,7 @@ public:
u_int8_t* getBuf();
u_int8_t& operator[](u_int32_t index);
u_int8_t operator[](u_int32_t index) const;
- void printHexDump() const;
+ std::string getHexDump() const;
operator u_int8_t*(); // just for write/read tun and packetSource
protected: