From 00d391705c713b06b2c80f0b36724f9bb4d806ae Mon Sep 17 00:00:00 2001 From: james Date: Wed, 12 Oct 2005 15:26:59 +0000 Subject: version 2.1_beta2 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@601 e7ae566f-a301-0410-adde-c780ea21d3b5 --- init.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'init.c') diff --git a/init.c b/init.c index f6e125c..a0fce65 100644 --- a/init.c +++ b/init.c @@ -953,6 +953,8 @@ pull_permission_mask (const struct context *c) OPT_P_UP | OPT_P_ROUTE_EXTRAS | OPT_P_IPWIN32 + | OPT_P_SOCKBUF + | OPT_P_SOCKFLAGS | OPT_P_SETENV | OPT_P_SHAPER | OPT_P_TIMER @@ -1016,6 +1018,18 @@ do_deferred_options (struct context *c, const unsigned int found) do_init_traffic_shaper (c); } + if (found & OPT_P_SOCKBUF) + { + msg (D_PUSH, "OPTIONS IMPORT: --sndbuf/--rcvbuf options modified"); + link_socket_update_buffer_sizes (c->c2.link_socket, c->options.rcvbuf, c->options.sndbuf); + } + + if (found & OPT_P_SOCKFLAGS) + { + msg (D_PUSH, "OPTIONS IMPORT: --socket-flags option modified"); + link_socket_update_flags (c->c2.link_socket, c->options.sockflags); + } + if (found & OPT_P_PERSIST) msg (D_PUSH, "OPTIONS IMPORT: --persist options modified"); if (found & OPT_P_UP) @@ -1751,7 +1765,8 @@ do_init_socket_1 (struct context *c, int mode) c->options.connect_retry_seconds, c->options.mtu_discover_type, c->options.rcvbuf, - c->options.sndbuf); + c->options.sndbuf, + c->options.sockflags); } /* -- cgit v1.2.3