ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/connection.C
(Generate patch)

Comparing gvpe/src/connection.C (file contents):
Revision 1.54 by pcg, Tue Apr 19 03:22:46 2005 UTC vs.
Revision 1.56 by pcg, Fri Jun 3 05:07:31 2005 UTC

14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/ 20*/
21 21
22#include "config.h" 22#include "config.h"
23 23
24#include <cassert> 24#include <cassert>
848{ 848{
849 if (ictx && octx) 849 if (ictx && octx)
850 send_data_packet (pkt); 850 send_data_packet (pkt);
851 else 851 else
852 { 852 {
853 if (!broadcast)//DDDD 853 if (!broadcast)
854 data_queue.put (new tap_packet (*pkt)); 854 data_queue.put (new tap_packet (*pkt));
855 855
856 establish_connection (); 856 establish_connection ();
857 } 857 }
858} 858}
1063 { 1063 {
1064 vpn->tap->send (d); 1064 vpn->tap->send (d);
1065 1065
1066 if (si != rsi) 1066 if (si != rsi)
1067 { 1067 {
1068 // fast re-sync on connection changes, useful especially for tcp/ip 1068 // fast re-sync on source address changes, useful especially for tcp/ip
1069 si = rsi; 1069 si = rsi;
1070 1070
1071 slog (L_INFO, _("%s(%s): socket address changed to %s"), 1071 slog (L_INFO, _("%s(%s): socket address changed to %s"),
1072 conf->nodename, (const char *)si, (const char *)rsi); 1072 conf->nodename, (const char *)si, (const char *)rsi);
1073 } 1073 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines