diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-12 15:26:59 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2005-10-12 15:26:59 +0000 |
commit | 00d391705c713b06b2c80f0b36724f9bb4d806ae (patch) | |
tree | 752a60d22cf9fd892f8780126a3b51ca091543d5 /init.c | |
parent | svn merge -r 585:599 https://svn.openvpn.net/projects/openvpn/trunk (diff) | |
download | openvpn-00d391705c713b06b2c80f0b36724f9bb4d806ae.tar.xz |
version 2.1_beta2
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@601 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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); } /* |