aboutsummaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 13:34:51 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-27 13:34:51 +0200
commit1d8df52d451c2085365dd2a457e498a7891348ee (patch)
tree9eacebaacf287062255d5c53c61a15e746ae3b71 /networking/inetd.c
parent2e01eec4d3bf52bb3f8332bd74a877a317238f92 (diff)
downloadbusybox-1d8df52d451c2085365dd2a457e498a7891348ee.tar.gz
inetd: improve --helpt text and config help text.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c39
1 files changed, 29 insertions, 10 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 2991edc09..91545d0a3 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -161,39 +161,57 @@
//config: Internet superserver daemon
//config:
//config:config FEATURE_INETD_SUPPORT_BUILTIN_ECHO
-//config: bool "Support echo service"
+//config: bool "Support echo service on port 7"
//config: default y
//config: depends on INETD
//config: help
-//config: Echo received data internal inetd service
+//config: Internal service which echoes data back.
+//config: Activated by configuration lines like these:
+//config: echo stream tcp nowait root internal
+//config: echo dgram udp wait root internal
//config:
//config:config FEATURE_INETD_SUPPORT_BUILTIN_DISCARD
-//config: bool "Support discard service"
+//config: bool "Support discard service on port 8"
//config: default y
//config: depends on INETD
//config: help
-//config: Internet /dev/null internal inetd service
+//config: Internal service which discards all input.
+//config: Activated by configuration lines like these:
+//config: discard stream tcp nowait root internal
+//config: discard dgram udp wait root internal
//config:
//config:config FEATURE_INETD_SUPPORT_BUILTIN_TIME
-//config: bool "Support time service"
+//config: bool "Support time service on port 37"
//config: default y
//config: depends on INETD
//config: help
-//config: Return 32 bit time since 1900 internal inetd service
+//config: Internal service which returns big-endian 32-bit number
+//config: of seconds passed since 1900-01-01. The number wraps around
+//config: on overflow.
+//config: Activated by configuration lines like these:
+//config: time stream tcp nowait root internal
+//config: time dgram udp wait root internal
//config:
//config:config FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME
-//config: bool "Support daytime service"
+//config: bool "Support daytime service on port 13"
//config: default y
//config: depends on INETD
//config: help
-//config: Return human-readable time internal inetd service
+//config: Internal service which returns human-readable time.
+//config: Activated by configuration lines like these:
+//config: daytime stream tcp nowait root internal
+//config: daytime dgram udp wait root internal
//config:
//config:config FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN
-//config: bool "Support chargen service"
+//config: bool "Support chargen service on port 19"
//config: default y
//config: depends on INETD
//config: help
-//config: Familiar character generator internal inetd service
+//config: Internal service which generates endless stream
+//config: of all ASCII chars beetween space and char 126.
+//config: Activated by configuration lines like these:
+//config: chargen stream tcp nowait root internal
+//config: chargen dgram udp wait root internal
//config:
//config:config FEATURE_INETD_RPC
//config: bool "Support RPC services"
@@ -216,6 +234,7 @@
//usage: "\n -q N Socket listen queue (default 128)"
//usage: "\n -R N Pause services after N connects/min"
//usage: "\n (default 0 - disabled)"
+//usage: "\n Default CONFFILE is /etc/inetd.conf"
#include <syslog.h>
#include <sys/resource.h> /* setrlimit */