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.41 by pcg, Wed Mar 2 05:49:31 2005 UTC vs.
Revision 1.45 by pcg, Fri Mar 4 09:36:45 2005 UTC

1/* 1/*
2 connection.C -- manage a single connection 2 connection.C -- manage a single connection
3 Copyright (C) 2003-2004 Marc Lehmann <pcg@goof.com> 3 Copyright (C) 2003-2005 Marc Lehmann <gvpe@schmorp.de>
4 4
5 This file is part of GVPE.
6
5 This program is free software; you can redistribute it and/or modify 7 GVPE is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 9 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 10 (at your option) any later version.
9 11
10 This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 15 GNU General Public License for more details.
14 16
15 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
16 along with this program; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
17 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/ 20*/
19 21
20#include "config.h" 22#include "config.h"
21 23
811 run_script (run_script_cb (this, &connection::script_node_down), false); 813 run_script (run_script_cb (this, &connection::script_node_down), false);
812 } 814 }
813 815
814 delete ictx; ictx = 0; 816 delete ictx; ictx = 0;
815 delete octx; octx = 0; 817 delete octx; octx = 0;
818#if ENABLE_DNS
819 dnsv4_reset_connection ();
820#endif
816 821
817 si.host = 0; 822 si.host = 0;
818 823
819 last_activity = 0; 824 last_activity = 0;
820 retry_cnt = 0; 825 retry_cnt = 0;
1222: vpn(vpn), conf(conf) 1227: vpn(vpn), conf(conf)
1223, rekey (this, &connection::rekey_cb) 1228, rekey (this, &connection::rekey_cb)
1224, keepalive (this, &connection::keepalive_cb) 1229, keepalive (this, &connection::keepalive_cb)
1225, establish_connection (this, &connection::establish_connection_cb) 1230, establish_connection (this, &connection::establish_connection_cb)
1226#if ENABLE_DNS 1231#if ENABLE_DNS
1227, dnsv4_tw (this, &connection::dnsv4_cb) 1232, dns (0)
1228, dns_rcvdq (0), dns_snddq (0)
1229, dns_rcvseq (0), dns_sndseq (0)
1230#endif 1233#endif
1231{ 1234{
1232 octx = ictx = 0; 1235 octx = ictx = 0;
1233 retry_cnt = 0; 1236 retry_cnt = 0;
1234 1237

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines