summaryrefslogtreecommitdiff
path: root/src/linux/tunDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/tunDevice.h')
-rw-r--r--src/linux/tunDevice.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/linux/tunDevice.h b/src/linux/tunDevice.h
index 4588964..9f3557a 100644
--- a/src/linux/tunDevice.h
+++ b/src/linux/tunDevice.h
@@ -32,15 +32,12 @@
#define _TUNDEVICE_H_
#include "buffer.h"
+#include "deviceConfig.hpp"
#include "threadUtils.hpp"
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* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp);
~TunDevice();
@@ -48,7 +45,7 @@ public:
int write(u_int8_t* buf, u_int32_t len);
const char* getActualName();
- u_int32_t getType();
+ device_type_t getType();
const char* getTypeString();
private:
@@ -56,7 +53,8 @@ private:
TunDevice(const TunDevice &src);
int fd_;
- u_int32_t type_;
+ DeviceConfig conf_;
+ bool with_pi_;
std::string actual_name_;
};