From b49e5993550f6c762b03a8de70ff7bf70a3ad011 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Tue, 11 Dec 2007 13:53:03 +0000 Subject: added pretty buffer print --- buffer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'buffer.h') 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 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: -- cgit v1.2.3