[Vtun-Commit] CVS: The file 'vtun/linkfd.c' has been modified.
Status: Inactive
Brought to you by:
mtbishop
|
From: Bishop <mtbishop> - 2009-03-29 10:09:04
|
The following file was modified in vtun:
Name Old version New version Comment
---- ----------- ----------- -------
linkfd.c 1.13.2.3 1.13.2.4
The accompanying log:
rfe2636157 - Permit a delayed UDP connection to overcome unpredictable
NAT ports.
The diff of the modified file(s):
--- linkfd.c 7 Jan 2008 22:35:43 -0000 1.13.2.3
+++ linkfd.c 29 Mar 2009 10:08:54 -0000 1.13.2.4
@@ -212,6 +212,10 @@
return 0;
}
+ /* Delay sending of first UDP packet over broken NAT routers
+ because we will probably be disconnected. Wait for the remote
+ end to send us something first, and use that connection. */
+ if (!VTUN_USE_NAT_HACK(lfd_host))
proto_write(fd1, buf, VTUN_ECHO_REQ);
maxfd = (fd1 > fd2 ? fd1 : fd2) + 1;
|