summaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-12-21 21:13:19 +0000
committerOthmar Gsenger <otti@anytun.org>2008-12-21 21:13:19 +0000
commit3eb3af4681a96401c070f76fb78fb5593b795f1a (patch)
treeb2729b3b13b139bc909693a3459fbb5f64f5ddb1 /src/options.h
parentrewrote syncClient and anytun-showtables (diff)
added route option to anytun
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
index f0054b2..11c1a93 100644
--- a/src/options.h
+++ b/src/options.h
@@ -43,6 +43,15 @@ typedef struct
std::string port;
} OptionConnectTo;
+typedef struct
+{
+ std::string net_addr;
+ u_int16_t prefix_length;
+} OptionRoute;
+
+typedef std::list<OptionRoute> RouteList;
+
+
typedef std::list<OptionConnectTo> ConnectToList;
class Options
@@ -110,6 +119,8 @@ public:
Buffer getKey();
Options& setSalt(std::string s);
Buffer getSalt();
+ RouteList getRoutes();
+
private:
Options();
@@ -159,6 +170,7 @@ private:
u_int16_t mux_;
Buffer key_;
Buffer salt_;
+ RouteList routes_;
};
extern Options& gOpt;