Permalink
Browse files

OpenBSD 2.9

  • Loading branch information...
1 parent b89f891 commit d8edac3a45a38077c2ae09d9ecd1e7815f6652c4 itojun committed Jul 4, 2001
Showing with 304 additions and 475 deletions.
  1. +11 −80 openbsd/usr.sbin/inetd/inetd.8
  2. +293 −395 openbsd/usr.sbin/inetd/inetd.c
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)inetd.8 6.7 (Berkeley) 3/16/91
-.\" $Id: inetd.8,v 1.15 2000/04/15 02:15:18 aaron Exp $
+.\" $Id: inetd.8,v 1.18 2001/01/29 11:38:32 deraadt Exp $
.\"
.Dd March 16, 1991
.Dt INETD 8
@@ -62,8 +62,7 @@ Essentially,
allows running one daemon to invoke several others,
reducing load on the system.
.Pp
-The option available for
-.Nm inetd:
+The options are as follows:
.Bl -tag -width Ds
.It Fl d
Turns on debugging.
@@ -252,7 +251,7 @@ spawned from
within an interval of 60 seconds.
When omitted,
.Dq max
-defaults to 40.
+defaults to 256.
.Pp
Stream servers are usually marked as
.Dq nowait
@@ -335,72 +334,18 @@ creates a file
.Em /var/run/inetd.pid
that contains its process identifier.
.Ss IPv6 TCP/UDP behavior
-If you run servers for IPv4 and IPv6 traffic, you'll need to specify
-.Dq tcp4
-and
-.Dq tcp6
-properly on the
-.Pa inetd.conf
-lines.
-For safety reasons the author recommends you to run
-two separate process for the same server program,
-specified as two separate lines on
+If you wish to run a server for IPv4 and IPv6 traffic,
+you'll need to run two separate process for the same server program,
+specified as two separate lines on
.Pa inetd.conf ,
for
-.Dq tcp6
+.Dq tcp4
and
-.Dq tcp4 .
-For detailed description please read on.
-.Pp
-The behavior of
-.Dv AF_INET6
-socket is documented in RFC2553.
-Basically, it says as follows:
-.Bl -bullet -compact
-.It
-Specific bind on
-.Dv AF_INET6
-socket
-.Po
-.Xr bind 2
-with address specified
-.Pc
-should accept IPv6 traffic to that address only.
-.It
-If you perform wildcard bind
-on
-.Dv AF_INET6
-socket
-.Po
-.Xr bind 2
-to IPv6 address
-.Li ::
-.Pc ,
-and there is no wildcard bind
-.Dv AF_INET
-socket on that TCP/UDP port, IPv6 traffic as well as IPv4 traffic
-should be routed to that
-.Dv AF_INET6
-socket.
-IPv4 traffic should be seen as if it came from IPv6 address like
-.Li ::ffff:10.1.1.1 .
-This is called IPv4 mapped address.
-.It
-If there are both wildcard bind
-.Dv AF_INET
-socket and wildcard bind
-.Dv AF_INET6
-socket on one TCP/UDP port, they should behave separately.
-IPv4 traffic should be routed to
-.Dv AF_INET
-socket and IPv6 should be routed to
-.Dv AF_INET6
-socket.
-.El
+.Dq tcp6 .
.Pp
-Because of this,
+Under various combination of IPv4/v6 daemon settings,
.Nm
-will behave as follows.
+will behave as follows:
.Bl -bullet -compact
.It
If you have only one server on
@@ -419,22 +364,8 @@ and IPv6 traffic will go to server on
.It
If you have only one server on
.Dq tcp6 ,
-Both IPv4 and IPv6 traffic will be routed to the server.
+only IPv6 traffic will be routed to the server.
.El
-.Pp
-The author do not recommend the third option on the above bullets.
-RFC2553 does not define the constraint between the order of
-.Xr bind 2 ,
-nor how IPv4 TCP/UDP port number and IPv6 TCP/UDP port number
-relate each other
-.Po
-should they be integrated or separated
-.Pc .
-Implemented behavior is very different across kernel to kernel.
-Many of the servers do not properly handle IPv4 mapped address.
-Therefore, it is unwise to rely too much upon the behavior of
-.Dv AF_INET6
-wildcard bind socket.
.Sh BUGS
Host address specifiers, while they make conceptual sense for RPC
services, do not work entirely correctly.
Oops, something went wrong.

0 comments on commit d8edac3

Please sign in to comment.