ipsec: add ikev2 down to ipseccrtl.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Jul 2011 09:21:49 +0000 (11:21 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 3 Jul 2011 09:21:49 +0000 (11:21 +0200)
src/misc-progs/ipsecctrl.c

index ae38996..c500e58 100644 (file)
@@ -156,7 +156,15 @@ void turn_connection_off (char *name) {
         snprintf(command, STRING_SIZE - 1, 
                 "/usr/sbin/ipsec whack --delete --name %s >/dev/null", name);
         safe_system(command);
+        snprintf(command, STRING_SIZE - 1, 
+                "/usr/sbin/ipsec stroke down %s >/dev/null", name);
+        safe_system(command);
+        snprintf(command, STRING_SIZE - 1, 
+                "/usr/sbin/ipsec stroke delete %s >/dev/null", name);
+        safe_system(command);
         safe_system("/usr/sbin/ipsec whack --rereadall >/dev/null");
+        safe_system("/usr/sbin/ipsec stroke rereadall >/dev/null");
+
 }