summaryrefslogtreecommitdiff
path: root/src/ovpn
diff options
context:
space:
mode:
Diffstat (limited to 'src/ovpn')
-rw-r--r--src/ovpn/tunDevice.cpp2
-rw-r--r--src/ovpn/tunDevice.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ovpn/tunDevice.cpp b/src/ovpn/tunDevice.cpp
index b3c07b0..032af29 100644
--- a/src/ovpn/tunDevice.cpp
+++ b/src/ovpn/tunDevice.cpp
@@ -144,7 +144,7 @@ char* TunDevice::getActualName()
return dev_->actual_name;
}
-u_int32_t TunDevice::getType()
+device_type_t TunDevice::getType()
{
if(!dev_)
return TYPE_UNDEF;
diff --git a/src/ovpn/tunDevice.h b/src/ovpn/tunDevice.h
index 56b06fd..ba41cce 100644
--- a/src/ovpn/tunDevice.h
+++ b/src/ovpn/tunDevice.h
@@ -32,6 +32,7 @@
#define _TUNDEVICE_H_
#include "buffer.h"
+#include "deviceConfig.hpp"
#include "threadUtils.hpp"
class TunDevice
@@ -48,7 +49,7 @@ public:
int write(u_int8_t* buf, u_int32_t len);
char* getActualName();
- u_int32_t getType();
+ device_type_t getType();
const char* getTypeString();
private: