[Vtun-Commit] CVS: The file 'vtun/netlib.c' has been modified.
Status: Inactive
Brought to you by:
mtbishop
|
From: Bishop <mtbishop> - 2009-03-29 09:55:38
|
The following file was modified in vtun:
Name Old version New version Comment
---- ----------- ----------- -------
netlib.c 1.11.2.2.4.1 1.11.2.2.4.2
The accompanying log:
- added some comments around the connection of the delayed UDP
- moved the is_connected variable to the head of main.c so that it
can be more easily seen and corrected.
- added some TODO spam
The diff of the modified file(s):
--- netlib.c 3 Mar 2009 04:15:27 -0000 1.11.2.2.4.1
+++ netlib.c 29 Mar 2009 09:55:34 -0000 1.11.2.2.4.2
@@ -138,7 +138,6 @@
return addr.sin_addr.s_addr;
}
-int is_rmt_fd_connected=1;
/*
* Establish UDP session with host connected to fd(socket).
* Returns connected UDP socket or -1 on error.
@@ -191,6 +190,12 @@
}
saddr.sin_port = port;
+
+ /* if the config says to delay the UDP connection, we wait for an
+ incoming packet and then force a connection back. We need to
+ put this here because we need to keep that incoming triggering
+ packet and pass it back up the chain. */
+
if (VTUN_USE_NAT_HACK(host))
is_rmt_fd_connected=0;
else {
|