summaryrefslogtreecommitdiffstats
path: root/contrib/telnet
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2005-01-05 09:59:38 +0000
committermaxim <maxim@FreeBSD.org>2005-01-05 09:59:38 +0000
commita8c761470712b651fd849bb0b645a0b9af5f9d4c (patch)
tree2c06f9b2f5d90d61e948d7cce46e93a4d01d328c /contrib/telnet
parent92e2810f3d7a7b31d47c5a9d66ab4812c4ef6352 (diff)
downloadFreeBSD-src-a8c761470712b651fd849bb0b645a0b9af5f9d4c.zip
FreeBSD-src-a8c761470712b651fd849bb0b645a0b9af5f9d4c.tar.gz
o Add -4 and -6 flags to a man page and usage(). Bump the man page
date.
Diffstat (limited to 'contrib/telnet')
-rw-r--r--contrib/telnet/telnetd/telnetd.812
-rw-r--r--contrib/telnet/telnetd/telnetd.c3
2 files changed, 12 insertions, 3 deletions
diff --git a/contrib/telnet/telnetd/telnetd.8 b/contrib/telnet/telnetd/telnetd.8
index b11fbac..0f3a15c 100644
--- a/contrib/telnet/telnetd/telnetd.8
+++ b/contrib/telnet/telnetd/telnetd.8
@@ -32,7 +32,7 @@
.\" @(#)telnetd.8 8.4 (Berkeley) 6/1/94
.\" $FreeBSD$
.\"
-.Dd January 27, 2000
+.Dd January 5, 2005
.Dt TELNETD 8
.Os
.Sh NAME
@@ -42,7 +42,7 @@
protocol server
.Sh SYNOPSIS
.Nm /usr/libexec/telnetd
-.Op Fl BUhlkn
+.Op Fl 46BUhlkn
.Op Fl D Ar debugmode
.Op Fl S Ar tos
.Op Fl X Ar authtype
@@ -86,6 +86,14 @@ The
.Nm
command accepts the following options:
.Bl -tag -width indent
+.It Fl 4
+Forces
+.Nm
+to use IPv4 addresses only.
+.It Fl 6
+Forces
+.Nm
+to use IPv6 addresses only.
.It Fl a Ar authmode
This option may be used for specifying what mode should
be used for authentication.
diff --git a/contrib/telnet/telnetd/telnetd.c b/contrib/telnet/telnetd/telnetd.c
index 1189574..6e4bd4f 100644
--- a/contrib/telnet/telnetd/telnetd.c
+++ b/contrib/telnet/telnetd/telnetd.c
@@ -412,7 +412,8 @@ usage()
{
fprintf(stderr, "usage: telnetd");
#ifdef AUTHENTICATION
- fprintf(stderr, " [-a (debug|other|user|valid|off|none)]\n\t");
+ fprintf(stderr,
+ " [-4] [-6] [-a (debug|other|user|valid|off|none)]\n\t");
#endif
#ifdef BFTPDAEMON
fprintf(stderr, " [-B]");
OpenPOWER on IntegriCloud