From 7d8b15e2a328ebe426897bff9dadc3081fc9465e Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Fri, 28 Mar 2014 21:08:44 +0100 Subject: l2tp: describe option "secret" in tunnel help command * Add "secret" to the list of options accepted by the "l2tp create tunnel" command. * Display one option per line to avoid too long help message. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2befbb8f..83136641 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -4174,10 +4174,15 @@ static void l2tp_create_tunnel_help(char * const *fields, int fields_cnt, void *client) { cli_send(client, - "l2tp create tunnel peer-addr [peer-port ]" - " [host-addr ] [host-port ]" - " [hide-avps <0|1>] [mode ]" - " - initiate new tunnel to peer\r\n"); + "l2tp create tunnel peer-addr [OPTIONS...]" + " - initiate new tunnel to peer\r\n" + "\tOPTIONS:\r\n" + "\t\tpeer-port - destination port (default 1701)\r\n" + "\t\thost-addr - source address\r\n" + "\t\thost-port - source port\r\n" + "\t\tsecret - tunnel secret\r\n" + "\t\thide-avps <0|1> - activation of AVP hiding\r\n" + "\t\tmode - tunnel mode\r\n"); } static void l2tp_create_session_help(char * const *fields, int fields_cnt, -- cgit v1.2.3