summaryrefslogtreecommitdiffstats
path: root/nexus/VpnController.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-05-14 15:00:06 -0700
committerSan Mehat <san@google.com>2009-05-15 10:40:29 -0700
commit5d6d417972f8d946c223c4efb9636b1ba4280543 (patch)
treebbe4637de91895dd9a0283b8dcc3a3d2cf9378b0 /nexus/VpnController.h
parentc41d1c8074ed02acc9d1e749d81e0aafb5efbbfa (diff)
downloadsystem_core-5d6d417972f8d946c223c4efb9636b1ba4280543.zip
system_core-5d6d417972f8d946c223c4efb9636b1ba4280543.tar.gz
system_core-5d6d417972f8d946c223c4efb9636b1ba4280543.tar.bz2
nexus: Flesh out VPN support a bit more, cleanup service handling
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/VpnController.h')
-rw-r--r--nexus/VpnController.h10
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:
};