Execute tinc-down BEFORE tap device is closed. This is a. more symmetric
(tinc-up is started after tap device is opened) and b. is needed for tun/tap device, where the interface does not exist anymore after the device file is closed.
This commit is contained in:
parent
6666acd001
commit
5d34503574
1 changed files with 3 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
$Id: net.c,v 1.35.4.116 2001/06/21 16:37:47 guus Exp $
|
$Id: net.c,v 1.35.4.117 2001/06/29 10:30:18 guus Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -1019,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();
|
destroy_connection_tree();
|
||||||
cp
|
cp
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue