aboutsummaryrefslogtreecommitdiffstats
path: root/src/stroke/stroke.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-05-15 11:02:04 +0200
committerMartin Willi <martin@strongswan.org>2009-05-15 11:02:56 +0200
commit832427064c33f6eed4181c2236dbf775448ee960 (patch)
tree58d5bc02de349fb9be7699111b41b4528450bcc8 /src/stroke/stroke.c
parentbb51102b89ece885b23d8cefa96fa41a0d5b072c (diff)
downloadstrongswan-832427064c33f6eed4181c2236dbf775448ee960.tar.bz2
strongswan-832427064c33f6eed4181c2236dbf775448ee960.tar.xz
added a "purgeike" command to stroke, deleting all IKE_SAs without a CHILD_SA
Diffstat (limited to 'src/stroke/stroke.c')
-rw-r--r--src/stroke/stroke.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c
index 412efc26b..c27a8ca3e 100644
--- a/src/stroke/stroke.c
+++ b/src/stroke/stroke.c
@@ -248,7 +248,8 @@ static int reread(stroke_keyword_t kw)
}
static int purge_flags[] = {
- PURGE_OCSP
+ PURGE_OCSP,
+ PURGE_IKE,
};
static int purge(stroke_keyword_t kw)
@@ -332,6 +333,8 @@ static void exit_usage(char *error)
printf(" stroke rereadsecrets|rereadcrls|rereadall\n");
printf(" Purge ocsp cache entries:\n");
printf(" stroke purgeocsp\n");
+ printf(" Purge IKE_SAs without a CHILD_SA:\n");
+ printf(" stroke purgeike\n");
printf(" Show leases of a pool:\n");
printf(" stroke leases [POOL [ADDRESS]]\n");
exit_error(error);
@@ -443,6 +446,7 @@ int main(int argc, char *argv[])
res = reread(token->kw);
break;
case STROKE_PURGE_OCSP:
+ case STROKE_PURGE_IKE:
res = purge(token->kw);
break;
case STROKE_LEASES: