aboutsummaryrefslogtreecommitdiff
path: root/socket.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 23:11:29 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-07-16 23:11:29 +0000
commite2e10f8d7a4d9477a8e35d10df5f54885fe3c092 (patch)
tree380ffb4dc6692ee377c0f4654e1982fd17f920b0 /socket.h
parentIn the Windows version of tun_finalize, on errors that would (diff)
downloadopenvpn-e2e10f8d7a4d9477a8e35d10df5f54885fe3c092.tar.xz
Added SOCKET_SND_RCV_BUF_MAX constant (set to 1000000) to limit the
maximum size passed to setsockopt SNDBUF/RCVBUF. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3062 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index bb03f2f..3d25f5e 100644
--- a/socket.h
+++ b/socket.h
@@ -42,6 +42,11 @@
#define OPENVPN_PORT 1194
/*
+ * Maximum size passed passed to setsockopt SNDBUF/RCVBUF
+ */
+#define SOCKET_SND_RCV_BUF_MAX 1000000
+
+/*
* Number of seconds that "resolv-retry infinite"
* represents.
*/