From 6ef18ba88dfdae0ebad9ea4ad3943d65fd767561 Mon Sep 17 00:00:00 2001 From: David Malone Date: Mon, 22 Jan 2001 23:11:02 +0000 Subject: [PATCH] Don't mention /etc/protocols in inetd documentation or comments, as inetd doesn't actually use it. PR: 24307 Submitted by: opentrax@email.com --- usr.sbin/inetd/inetd.8 | 5 ++--- usr.sbin/inetd/inetd.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/usr.sbin/inetd/inetd.8 b/usr.sbin/inetd/inetd.8 index 7a4c03bc79dc..7b7d5d95fcc8 100644 --- a/usr.sbin/inetd/inetd.8 +++ b/usr.sbin/inetd/inetd.8 @@ -250,9 +250,8 @@ TCPMUX services must use .Pp The .Em protocol -must be a valid protocol as given in -.Pa /etc/protocols . -Examples might be +must be a valid protocol. +Examples are .Dq tcp or .Dq udp , diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index fa956629fee5..d43da3d773e2 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -71,7 +71,7 @@ static const char rcsid[] = * service name must be in /etc/services or must * name a tcpmux service * socket type stream/dgram/raw/rdm/seqpacket - * protocol must be in /etc/protocols + * protocol tcp[4][6][/faith,ttcp], udp[4][6] * wait/nowait single-threaded/multi-threaded * user user to run daemon as * server program full path name @@ -95,7 +95,7 @@ static const char rcsid[] = * For RPC services * service name/version must be in /etc/rpc * socket type stream/dgram/raw/rdm/seqpacket - * protocol must be in /etc/protocols + * protocol rpc/tcp, rpc/udp * wait/nowait single-threaded/multi-threaded * user user to run daemon as * server program full path name