projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Execute tinc-down BEFORE tap device is closed. This is a. more symmetric
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
9c1dd3b
..
2e84a72
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: net.c,v 1.35.4.11
5 2001/06/21 16:16:31
guus Exp $
+ $Id: net.c,v 1.35.4.11
7 2001/06/29 10:30:18
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-69,12
+69,9
@@
# include <pem.h>
#endif
# include <pem.h>
#endif
-#warning oi1
#ifdef HAVE_TUNTAP
#ifdef HAVE_TUNTAP
-#warning oi2
#include LINUX_IF_TUN_H
#endif
#include LINUX_IF_TUN_H
#endif
-#warning oi3
#include <utils.h>
#include <xalloc.h>
#include <utils.h>
#include <xalloc.h>
@@
-1022,11
+1019,10
@@
cp
myself = NULL;
}
myself = NULL;
}
- close(tap_fd);
-
- /* Execute tinc-down script right after shutting down the interface */
execute_script("tinc-down");
execute_script("tinc-down");
+ close(tap_fd);
+
destroy_connection_tree();
cp
return;
destroy_connection_tree();
cp
return;