summaryrefslogtreecommitdiffstats
path: root/src/openvpn/options.h
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2014-02-18 18:59:55 +0100
committerGert Doering <gert@greenie.muc.de>2014-02-23 15:18:27 +0100
commitd0085293e709c8a722356cfa68ad74c962aef9a2 (patch)
tree390d67c4d18891f17485500418c0f06153d00b22 /src/openvpn/options.h
parent66ff10ef5197b6c70429a15e572aeb2d4073b470 (diff)
downloadopenvpn-d0085293e709c8a722356cfa68ad74c962aef9a2.tar.gz
openvpn-d0085293e709c8a722356cfa68ad74c962aef9a2.tar.xz
openvpn-d0085293e709c8a722356cfa68ad74c962aef9a2.zip
grow route lists dynamically
This removes the need for the --max-routes option. Instead of allocating a fixed size array for the route(-option)s they are managed in linked lists instead. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1392746395-19246-1-git-send-email-heiko.hund@sophos.com> URL: http://article.gmane.org/gmane.network.openvpn.devel/8295 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/options.h')
-rw-r--r--src/openvpn/options.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openvpn/options.h b/src/openvpn/options.h
index bf232f4..27bbc14 100644
--- a/src/openvpn/options.h
+++ b/src/openvpn/options.h
@@ -343,7 +343,6 @@ struct options
int route_delay;
int route_delay_window;
bool route_delay_defined;
- int max_routes;
struct route_option_list *routes;
struct route_ipv6_option_list *routes_ipv6; /* IPv6 */
bool route_nopull;
@@ -715,7 +714,7 @@ void options_warning (char *actual, const char *expected);
void options_postprocess (struct options *options);
void pre_pull_save (struct options *o);
-void pre_pull_restore (struct options *o);
+void pre_pull_restore (struct options *o, struct gc_arena *gc);
bool apply_push_options (struct options *options,
struct buffer *buf,