Skip to content

Commit

Permalink
Add manpage entry for -z, change help text
Browse files Browse the repository at this point in the history
Fixes #193 on github (with previous patch)
  • Loading branch information
mkj committed Nov 10, 2022
1 parent 2864c3d commit 86ac841
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli-runopts.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ static void printhelp() {
"-W <receive_window_buffer> (default %d, larger may be faster, max 10MB)\n"
"-K <keepalive> (0 is never, default %d)\n"
"-I <idle_timeout> (0 is never, default %d)\n"
"-z disable QoS\n"
#if DROPBEAR_CLI_NETCAT
"-B <endhost:endport> Netcat-alike forwarding\n"
#endif
Expand All @@ -98,7 +99,6 @@ static void printhelp() {
#if DEBUG_TRACE
"-v verbose (repeat for more verbose)\n"
#endif
"-z disable IP Type-Of-Service feature\n"
,DROPBEAR_VERSION, cli_opts.progname,
#if DROPBEAR_CLI_PUBKEY_AUTH
DROPBEAR_DEFAULT_CLI_AUTHKEY,
Expand Down
3 changes: 3 additions & 0 deletions dbclient.1
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ if 0 disables keepalives. If no response is received for 3 consecutive keepalive
.B \-I \fIidle_timeout
Disconnect the session if no traffic is transmitted or received for \fIidle_timeout\fR seconds.
.TP
.B \-z
By default Dropbear will send network traffic with the \fBAF21\fR setting for QoS, letting network devices give it higher priority. Some devices may have problems with that, \fI-z\fR can be used to disable it.
.TP

.\" TODO: how to avoid a line break between these two -J arguments?
.B \-J \fIproxy_command
Expand Down
3 changes: 3 additions & 0 deletions dropbear.8
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ of 0 disables keepalives. If no response is received for 3 consecutive keepalive
.B \-I \fIidle_timeout
Disconnect the session if no traffic is transmitted or received for \fIidle_timeout\fR seconds.
.TP
.B \-z
By default Dropbear will send network traffic with the \fBAF21\fR setting for QoS, letting network devices give it higher priority. Some devices may have problems with that, \fI-z\fR can be used to disable it.
.TP
.B \-T \fImax_authentication_attempts
Set the number of authentication attempts allowed per connection. If unspecified the default is 10 (MAX_AUTH_TRIES)
.TP
Expand Down
2 changes: 1 addition & 1 deletion svr-runopts.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ static void printhelp(const char * progname) {
"-W <receive_window_buffer> (default %d, larger may be faster, max 10MB)\n"
"-K <keepalive> (0 is never, default %d, in seconds)\n"
"-I <idle_timeout> (0 is never, default %d, in seconds)\n"
"-z disable QoS\n"
#if DROPBEAR_PLUGIN
"-A <authplugin>[,<options>]\n"
" Enable external public key auth through <authplugin>\n"
Expand All @@ -112,7 +113,6 @@ static void printhelp(const char * progname) {
#if DEBUG_TRACE
"-v verbose (repeat for more verbose)\n"
#endif
"-z disable IP Type-Of-Service feature\n"
,DROPBEAR_VERSION, progname,
#if DROPBEAR_DSS
DSS_PRIV_FILENAME,
Expand Down

0 comments on commit 86ac841

Please sign in to comment.