diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-03-28 21:08:44 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-04-01 06:48:02 +0400 |
commit | 7d8b15e2a328ebe426897bff9dadc3081fc9465e (patch) | |
tree | 38337393119c71c64c211110a44700085f31a18e | |
parent | 4b04c2f3eff53747de70204c02257790f391b413 (diff) | |
download | accel-ppp-7d8b15e2a328ebe426897bff9dadc3081fc9465e.tar.gz accel-ppp-7d8b15e2a328ebe426897bff9dadc3081fc9465e.zip |
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 <g.nault@alphalink.fr>
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 2befbb8..8313664 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 <ip_addr> [peer-port <port>]" - " [host-addr <ip_addr>] [host-port <port>]" - " [hide-avps <0|1>] [mode <lac|lns>]" - " - initiate new tunnel to peer\r\n"); + "l2tp create tunnel peer-addr <ip_addr> [OPTIONS...]" + " - initiate new tunnel to peer\r\n" + "\tOPTIONS:\r\n" + "\t\tpeer-port <port> - destination port (default 1701)\r\n" + "\t\thost-addr <ip_addr> - source address\r\n" + "\t\thost-port <port> - source port\r\n" + "\t\tsecret <secret> - tunnel secret\r\n" + "\t\thide-avps <0|1> - activation of AVP hiding\r\n" + "\t\tmode <lac|lns> - tunnel mode\r\n"); } static void l2tp_create_session_help(char * const *fields, int fields_cnt, |