diff options
author | Othmar Gsenger <otti@anytun.org> | 2010-01-10 22:10:05 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2010-01-10 22:10:05 +0000 |
commit | 2f418d7ab9f44ee8d573a81a08c167dbf46f1658 (patch) | |
tree | d4d6d38b11fda9ee17b1e4448f8dc1b7ffcc7c32 /src/tunDevice.h | |
parent | dispatching right socket for send to function (diff) |
fixed priviledge dropping on freebsd
maybee todo: remove old non working preprocessor staments like NO_EXEC to make code simpler
Diffstat (limited to 'src/tunDevice.h')
-rw-r--r-- | src/tunDevice.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tunDevice.h b/src/tunDevice.h index e00751f..834837e 100644 --- a/src/tunDevice.h +++ b/src/tunDevice.h @@ -36,9 +36,10 @@ #include "buffer.h" #include "deviceConfig.hpp" #include "threadUtils.hpp" - #ifdef _MSC_VER #include <windows.h> +#else +#include "sysExec.h" #endif class TunDevice @@ -53,6 +54,7 @@ public: const char* getActualName() const { return actual_name_.c_str(); } const char* getActualNode() const { return actual_node_.c_str(); } device_type_t getType() const { return conf_.type_; } + void waitForPostUpScript(); const char* getTypeString() const { #ifndef _MSC_VER @@ -71,7 +73,6 @@ public: return ""; } - private: void operator=(const TunDevice &src); TunDevice(const TunDevice &src); @@ -91,6 +92,9 @@ private: #endif DeviceConfig conf_; +#ifndef _MSC_VER + SysExec * sys_exec_; +#endif bool with_pi_; std::string actual_name_; std::string actual_node_; |