From 55decc856579b7beffb75d71940b27fe6768e83e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 20 Jun 2007 22:38:51 +0000 Subject: first test of whole system --- tunDevice.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tunDevice.h') diff --git a/tunDevice.h b/tunDevice.h index ee8b45d..8d6e9bd 100644 --- a/tunDevice.h +++ b/tunDevice.h @@ -37,6 +37,10 @@ class TunDevice { public: + static const u_int32_t TYPE_UNDEF = 0; + static const u_int32_t TYPE_TUN = 1; + static const u_int32_t TYPE_TAP = 2; + TunDevice(const char* dev, const char* ifcfg_lp, const char* ifcfg_rnmp); ~TunDevice(); @@ -48,7 +52,8 @@ public: int write(Buffer& buf); char* getActualName(); - char* getType(); + u_int32_t getType(); + char* getTypeString(); private: void operator=(const TunDevice &src); -- cgit v1.2.3