summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/eurephia_context.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/eurephia_context.h b/common/eurephia_context.h
index e323c45..d7c1bae 100644
--- a/common/eurephia_context.h
+++ b/common/eurephia_context.h
@@ -45,12 +45,21 @@
#define SIZE_PWDCACHE_SALT 2048 /**< Defines the size of the in-memory password salt */
/**
+ * OpenVPN tunnel types
+ */
+typedef enum OVPN_tunnelType_e { tuntype_UNKN, /**< Unknwown */
+ tuntype_TAP, /**< OpenVPN is used with --dev tap */
+ tuntype_TUN /**< OpenVPN is used with --dev tun */
+} OVPN_tunnelType;
+
+/**
* main structure for the eurephia module context
* - the same context structure is used for all OpenVPN sessions
*/
typedef struct {
void *eurephia_driver; /**< Pointer to the eurephia database drivers handler */
void *eurephia_fw_intf; /**< Pointer to the eurephia firewall interface handler */
+ OVPN_tunnelType tuntype;/**< Type of OpenVPN tunnel - TUN or TAP */
eDBconn *dbc; /**< Pointer to an eurephia database connection */
#ifdef EUREPHIA_FWINTF
eurephiaFWINTF *fwcfg; /**< Pointer to the firewall configuration */