diff 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
line wrap: on
line diff
--- a/svr-runopts.c	Thu Aug 12 16:41:58 2004 +0000
+++ b/svr-runopts.c	Thu Aug 12 17:18:53 2004 +0000
@@ -73,8 +73,9 @@
 #endif
 					"-p port	Listen on specified tcp port, up to %d can be specified\n"
 					"		(default %d if none specified)\n"
-/*					"-4/-6		Disable listening on ipv4/ipv6 respectively\n"*/
-
+#ifdef INETD_MODE
+					"-i		Start for inetd\n"
+#endif
 					,DROPBEAR_VERSION, progname,
 #ifdef DROPBEAR_DSS
 					DSS_PRIV_FILENAME,
@@ -102,6 +103,7 @@
 	svr_opts.norootlogin = 0;
 	svr_opts.noauthpass = 0;
 	svr_opts.norootpass = 0;
+	svr_opts.inetdmode = 0;
 	opts.nolocaltcp = 0;
 	opts.noremotetcp = 0;
 	/* not yet
@@ -158,6 +160,11 @@
 					opts.noremotetcp = 1;
 					break;
 #endif
+#ifdef INETD_MODE
+				case 'i':
+					svr_opts.inetdmode = 1;
+					break;
+#endif
 				case 'p':
 					if (portnum < DROPBEAR_MAX_PORTS) {
 						portstring[portnum] = NULL;