[Vtun-Commit] CVS: The file 'vtun/vtun.h' has been modified.
Status: Inactive
Brought to you by:
mtbishop
|
From: Bishop <mtbishop> - 2009-03-29 10:09:15
|
The following file was modified in vtun:
Name Old version New version Comment
---- ----------- ----------- -------
vtun.h 1.12.2.3 1.12.2.4
The accompanying log:
rfe2636157 - Permit a delayed UDP connection to overcome unpredictable
NAT ports.
The diff of the modified file(s):
--- vtun.h 7 Jan 2008 22:36:07 -0000 1.12.2.3
+++ vtun.h 29 Mar 2009 10:09:11 -0000 1.12.2.4
@@ -163,6 +163,17 @@
#define VTUN_STAT 0x1000
#define VTUN_PERSIST 0x2000
+#ifdef ENABLE_NAT_HACK
+/* Flags for the NAT hack with delayed UDP socket connect */
+#define VTUN_NAT_HACK_CLIENT 0x4000
+#define VTUN_NAT_HACK_SERVER 0x8000
+#define VTUN_NAT_HACK_MASK (VTUN_NAT_HACK_CLIENT | VTUN_NAT_HACK_SERVER)
+
+#define VTUN_USE_NAT_HACK(host) ((host)->flags & VTUN_NAT_HACK_MASK)
+#else
+#define VTUN_USE_NAT_HACK(host) 0
+#endif
+
/* Constants and flags for VTun protocol */
#define VTUN_FRAME_SIZE 2048
#define VTUN_FRAME_OVERHEAD 100
|