diff options
Diffstat (limited to 'nexus/VpnController.h')
-rw-r--r-- | nexus/VpnController.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nexus/VpnController.h b/nexus/VpnController.h index 049fe6e..4088e6a 100644 --- a/nexus/VpnController.h +++ b/nexus/VpnController.h @@ -16,9 +16,15 @@ #ifndef _VPN_CONTROLLER_H #define _VPN_CONTROLLER_H +#include <netinet/in.h> + #include "Controller.h" class VpnController : public Controller { + /* + * Gateway of the VPN server to connect to + */ + struct in_addr mVpnGateway; public: VpnController(); @@ -30,6 +36,10 @@ public: virtual int enable(); virtual int disable(); + struct in_addr &getVpnGateway() { return mVpnGateway; } + int setVpnGateway(const char *vpnGw); + int setVpnGateway(struct in_addr *vpnGw); + protected: }; |