Mercurial > dropbear
diff svr-runopts.c @ 309:474c1a700b67 ucc-axis-hack
add inetd server mode
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 26 Mar 2006 08:26:39 +0000 |
parents | 973fccb59ea4 |
children |
line wrap: on
line diff
--- a/svr-runopts.c Sat Mar 25 18:35:35 2006 +0000 +++ b/svr-runopts.c Sun Mar 26 08:26:39 2006 +0000 @@ -75,6 +75,9 @@ #ifdef INETD_MODE "-i Start for inetd\n" #endif +#ifdef INETD_SERVER_MODE + "-x /path/to/binary Start in inetd server mode\n" +#endif #ifdef DEBUG_TRACE "-v verbose\n" #endif @@ -124,6 +127,9 @@ #ifdef ENABLE_SVR_REMOTETCPFWD opts.listen_fwd_all = 0; #endif +#ifdef INETD_SERVER_MODE + svr_opts.inetd_dropbear_path = NULL; +#endif for (i = 1; i < (unsigned int)argc; i++) { if (next) { @@ -137,6 +143,11 @@ if (argv[i][0] == '-') { switch (argv[i][1]) { +#ifdef INETD_SERVER_MODE + case 'x': + next = &svr_opts.inetd_dropbear_path; + break; +#endif case 'b': next = &svr_opts.bannerfile; break;