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, 5 insertions, 5 deletions
diff --git a/src/linux/tunDevice.h b/src/linux/tunDevice.h
index ae286f7..4588964 100644
--- a/src/linux/tunDevice.h
+++ b/src/linux/tunDevice.h
@@ -44,20 +44,20 @@ public:
TunDevice(const char* dev,const char* dev_type, const char* ifcfg_lp, const char* ifcfg_rnmp);
~TunDevice();
- void open();
- void close();
- bool isOpen();
-
short read(u_int8_t* buf, u_int32_t len);
int write(u_int8_t* buf, u_int32_t len);
- char* getActualName();
+ const char* getActualName();
u_int32_t getType();
const char* getTypeString();
private:
void operator=(const TunDevice &src);
TunDevice(const TunDevice &src);
+
+ int fd_;
+ u_int32_t type_;
+ std::string actual_name_;
};
#endif