From: Reto Buerki Date: Tue, 18 Dec 2012 15:11:19 +0000 (+0100) Subject: stroke: Drop unneeded [MY|OTHER]_NETBITS X-Git-Tag: 5.0.2dr4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7409773e64b94bc1dd36422f246202963364eb6;p=thirdparty%2Fstrongswan.git stroke: Drop unneeded [MY|OTHER]_NETBITS --- diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c index e37a4150f9..e289296c14 100644 --- a/src/stroke/stroke.c +++ b/src/stroke/stroke.c @@ -390,7 +390,7 @@ static void exit_usage(char *error) printf("Usage:\n"); printf(" Add a connection:\n"); printf(" stroke add NAME MY_ID OTHER_ID MY_ADDR OTHER_ADDR\\\n"); - printf(" MY_NET OTHER_NET MY_NETBITS OTHER_NETBITS\n"); + printf(" MY_NET OTHER_NET\n"); printf(" where: ID is any IKEv2 ID \n"); printf(" ADDR is a IPv4 address\n"); printf(" NET is a IPv4 subnet in CIDR notation\n"); @@ -471,7 +471,7 @@ int main(int argc, char *argv[]) switch (token->kw) { case STROKE_ADD: - if (argc < 11) + if (argc < 9) { exit_usage("\"add\" needs more parameters..."); }