[Vtun-Commit] CVS: The file 'vtun/vtun.h' has been modified.
Status: Inactive
Brought to you by:
mtbishop
|
From: Bishop <mtbishop> - 2009-03-03 04:15:39
|
The following file was modified in vtun: Name Old version New version Comment ---- ----------- ----------- ------- vtun.h 1.12.2.3 1.12.2.3.4.1 The accompanying log: Initial check-in of Delayed UDP (Nat Hack) feature for working with unpleasant NATs, submitted by Dragos Vingarzan (rfe2636157) The diff of the modified file(s): --- vtun.h 7 Jan 2008 22:36:07 -0000 1.12.2.3 +++ vtun.h 3 Mar 2009 04:15:36 -0000 1.12.2.3.4.1 @@ -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 |