comparison svr-runopts.c @ 1511:5916af64acd4 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Sat, 17 Feb 2018 19:29:51 +0800
parents 4afde04f0607 2d450c1056e3
children bb8eaa26bc93
comparison
equal deleted inserted replaced
1457:32f990cc96b1 1511:5916af64acd4
62 #ifdef DISABLE_SYSLOG 62 #ifdef DISABLE_SYSLOG
63 "(Syslog support not compiled in, using stderr)\n" 63 "(Syslog support not compiled in, using stderr)\n"
64 #else 64 #else
65 "-E Log to stderr rather than syslog\n" 65 "-E Log to stderr rather than syslog\n"
66 #endif 66 #endif
67 #ifdef DO_MOTD 67 #if DO_MOTD
68 "-m Don't display the motd on login\n" 68 "-m Don't display the motd on login\n"
69 #endif 69 #endif
70 "-w Disallow root logins\n" 70 "-w Disallow root logins\n"
71 #if DROPBEAR_SVR_PASSWORD_AUTH || DROPBEAR_SVR_PAM_AUTH 71 #if DROPBEAR_SVR_PASSWORD_AUTH || DROPBEAR_SVR_PAM_AUTH
72 "-s Disable password logins\n" 72 "-s Disable password logins\n"
86 " Listen on specified tcp port (and optionally address),\n" 86 " Listen on specified tcp port (and optionally address),\n"
87 " up to %d can be specified\n" 87 " up to %d can be specified\n"
88 " (default port is %s if none specified)\n" 88 " (default port is %s if none specified)\n"
89 "-P PidFile Create pid file PidFile\n" 89 "-P PidFile Create pid file PidFile\n"
90 " (default %s)\n" 90 " (default %s)\n"
91 #ifdef INETD_MODE 91 #if INETD_MODE
92 "-i Start for inetd\n" 92 "-i Start for inetd\n"
93 #endif 93 #endif
94 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n" 94 "-W <receive_window_buffer> (default %d, larger may be faster, max 1MB)\n"
95 "-K <keepalive> (0 is never, default %d, in seconds)\n" 95 "-K <keepalive> (0 is never, default %d, in seconds)\n"
96 "-I <idle_timeout> (0 is never, default %d, in seconds)\n" 96 "-I <idle_timeout> (0 is never, default %d, in seconds)\n"
154 154
155 /* not yet 155 /* not yet
156 opts.ipv4 = 1; 156 opts.ipv4 = 1;
157 opts.ipv6 = 1; 157 opts.ipv6 = 1;
158 */ 158 */
159 #ifdef DO_MOTD 159 #if DO_MOTD
160 svr_opts.domotd = 1; 160 svr_opts.domotd = 1;
161 #endif 161 #endif
162 #ifndef DISABLE_SYSLOG 162 #ifndef DISABLE_SYSLOG
163 opts.usingsyslog = 1; 163 opts.usingsyslog = 1;
164 #endif 164 #endif
208 break; 208 break;
209 case 'a': 209 case 'a':
210 opts.listen_fwd_all = 1; 210 opts.listen_fwd_all = 1;
211 break; 211 break;
212 #endif 212 #endif
213 #ifdef INETD_MODE 213 #if INETD_MODE
214 case 'i': 214 case 'i':
215 svr_opts.inetdmode = 1; 215 svr_opts.inetdmode = 1;
216 break; 216 break;
217 #endif 217 #endif
218 case 'p': 218 case 'p':
219 nextisport = 1; 219 nextisport = 1;
220 break; 220 break;
221 case 'P': 221 case 'P':
222 next = &svr_opts.pidfile; 222 next = &svr_opts.pidfile;
223 break; 223 break;
224 #ifdef DO_MOTD 224 #if DO_MOTD
225 /* motd is displayed by default, -m turns it off */ 225 /* motd is displayed by default, -m turns it off */
226 case 'm': 226 case 'm':
227 svr_opts.domotd = 0; 227 svr_opts.domotd = 0;
228 break; 228 break;
229 #endif 229 #endif