Mercurial > dropbear
comparison svr-runopts.c @ 71:ac96bc733e71
adding inetd mode back from 0.43
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 12 Aug 2004 17:18:53 +0000 |
parents | eee77ac31ccc |
children | dc68f7624f17 |
comparison
equal
deleted
inserted
replaced
70:b0316ce64e4b | 71:ac96bc733e71 |
---|---|
71 #ifndef DISABLE_REMOTETCPFWD | 71 #ifndef DISABLE_REMOTETCPFWD |
72 "-k Disable remote port forwarding\n" | 72 "-k Disable remote port forwarding\n" |
73 #endif | 73 #endif |
74 "-p port Listen on specified tcp port, up to %d can be specified\n" | 74 "-p port Listen on specified tcp port, up to %d can be specified\n" |
75 " (default %d if none specified)\n" | 75 " (default %d if none specified)\n" |
76 /* "-4/-6 Disable listening on ipv4/ipv6 respectively\n"*/ | 76 #ifdef INETD_MODE |
77 | 77 "-i Start for inetd\n" |
78 #endif | |
78 ,DROPBEAR_VERSION, progname, | 79 ,DROPBEAR_VERSION, progname, |
79 #ifdef DROPBEAR_DSS | 80 #ifdef DROPBEAR_DSS |
80 DSS_PRIV_FILENAME, | 81 DSS_PRIV_FILENAME, |
81 #endif | 82 #endif |
82 #ifdef DROPBEAR_RSA | 83 #ifdef DROPBEAR_RSA |
100 svr_opts.banner = NULL; | 101 svr_opts.banner = NULL; |
101 svr_opts.forkbg = 1; | 102 svr_opts.forkbg = 1; |
102 svr_opts.norootlogin = 0; | 103 svr_opts.norootlogin = 0; |
103 svr_opts.noauthpass = 0; | 104 svr_opts.noauthpass = 0; |
104 svr_opts.norootpass = 0; | 105 svr_opts.norootpass = 0; |
106 svr_opts.inetdmode = 0; | |
105 opts.nolocaltcp = 0; | 107 opts.nolocaltcp = 0; |
106 opts.noremotetcp = 0; | 108 opts.noremotetcp = 0; |
107 /* not yet | 109 /* not yet |
108 opts.ipv4 = 1; | 110 opts.ipv4 = 1; |
109 opts.ipv6 = 1; | 111 opts.ipv6 = 1; |
154 break; | 156 break; |
155 #endif | 157 #endif |
156 #ifndef DISABLE_REMOTETCPFWD | 158 #ifndef DISABLE_REMOTETCPFWD |
157 case 'k': | 159 case 'k': |
158 opts.noremotetcp = 1; | 160 opts.noremotetcp = 1; |
161 break; | |
162 #endif | |
163 #ifdef INETD_MODE | |
164 case 'i': | |
165 svr_opts.inetdmode = 1; | |
159 break; | 166 break; |
160 #endif | 167 #endif |
161 case 'p': | 168 case 'p': |
162 if (portnum < DROPBEAR_MAX_PORTS) { | 169 if (portnum < DROPBEAR_MAX_PORTS) { |
163 portstring[portnum] = NULL; | 170 portstring[portnum] = NULL; |