summaryrefslogtreecommitdiff
path: root/tunDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'tunDevice.h')
-rw-r--r--tunDevice.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tunDevice.h b/tunDevice.h
new file mode 100644
index 0000000..e1386b2
--- /dev/null
+++ b/tunDevice.h
@@ -0,0 +1,18 @@
+
+#include "openvpn/tun.h"
+
+class TunDevice
+{
+public:
+ TunDevice(string dev_name);
+ ~TunDevice();
+
+ int read(uint8_t *buf, int len);
+ int write(uint8_t *buf, int len);
+
+private:
+ void operator=(const TunDevice &src);
+ TunDevice(const TunDevice &src);
+
+ struct tuntap *dev_;
+}