nexus: Flesh out VPN support a bit more, cleanup service handling
Signed-off-by: San Mehat <san@google.com>
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 @@
virtual int enable();
virtual int disable();
+ struct in_addr &getVpnGateway() { return mVpnGateway; }
+ int setVpnGateway(const char *vpnGw);
+ int setVpnGateway(struct in_addr *vpnGw);
+
protected:
};