NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/52412: inetd(8) lacks information
>Number: 52412
>Category: misc
>Synopsis: inetd(8) lacks information
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 16 20:10:00 +0000 2017
>Originator: Edgar Pettijohn
>Release: NetBSD 7.1 Sun Jul 16 14:46:42 CDT 2017
>Organization:
>Environment:
NetBSD 7.1 (GENERIC.201703111743Z) amd64
>Description:
I'm guessing since inetd switched to getaddrinfo() its possible to do the following in inetd.conf
10.99.0.10:8080 stream tcp nowait _httpd /usr/libexec/httpd httpd -v /var/vroot /var/www
Or without the [ipv4:]. To sum it up you aren't restricted to service names from /etc/services.
>How-To-Repeat:
man inetd.conf
>Fix:
Index: inetd.8
===================================================================
RCS file: /cvsroot/src/usr.sbin/inetd/inetd.8,v
retrieving revision 1.57
diff -u -r1.57 inetd.8
--- inetd.8 25 Apr 2011 22:12:05 -0000 1.57
+++ inetd.8 16 Jul 2017 19:45:42 -0000
@@ -115,7 +115,7 @@
The fields of the configuration file are as follows:
.Pp
.Bd -unfilled -offset indent -compact
-[addr:]service-name
+[addr:]service-name/port number
socket-type[:accept_filter]
protocol[,sndbuf=size][,rcvbuf=size]
wait/nowait[:max]
@@ -152,9 +152,9 @@
.Ed
.Pp
For Internet services, the first field of the line may also have a host
-address specifier prefixed to it, separated from the service name by a colon.
-If this is done, the string before the colon in the first field
-indicates what local address
+address specifier prefixed to it, separated from the service name or port
+number by a colon. If this is done, the string before the colon in the
+first field indicates what local address
.Nm
should use when listening for that service, or the single character
.Dq \&*
@@ -175,11 +175,11 @@
on all local addresses.
.Pp
The
-.Em service-name
+.Em service-name/port number
entry is the name of a valid service in
the file
.Pa /etc/services .
-For
+Or an alternate port number. For
.Dq internal
services (discussed below), the service
name
Home |
Main Index |
Thread Index |
Old Index