summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-12 15:26:59 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-10-12 15:26:59 +0000
commit00d391705c713b06b2c80f0b36724f9bb4d806ae (patch)
tree752a60d22cf9fd892f8780126a3b51ca091543d5 /init.c
parent20006b8e622ca4d4ca7dc6f316d9b2d948ca3687 (diff)
downloadopenvpn-00d391705c713b06b2c80f0b36724f9bb4d806ae.tar.gz
openvpn-00d391705c713b06b2c80f0b36724f9bb4d806ae.tar.xz
openvpn-00d391705c713b06b2c80f0b36724f9bb4d806ae.zip
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.c17
1 files changed, 16 insertions, 1 deletions
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);
}
/*