summaryrefslogtreecommitdiff
path: root/tunDevice.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-20 22:38:51 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-20 22:38:51 +0000
commit55decc856579b7beffb75d71940b27fe6768e83e (patch)
tree0da7ac25a05cd71b4d47b486a4ab25f95bb56c92 /tunDevice.h
parentadded syslog class (diff)
first test of whole system
Diffstat (limited to 'tunDevice.h')
-rw-r--r--tunDevice.h7
1 files changed, 6 insertions, 1 deletions
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);