summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/netstat/inet.c6
-rw-r--r--usr.bin/netstat/netstat.16
2 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 1e47e5a593b..b59d4c1e3e9 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.5 1997/02/16 10:22:24 deraadt Exp $ */
+/* $OpenBSD: inet.c,v 1.6 1997/02/16 10:26:36 deraadt Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-static char *rcsid = "$OpenBSD: inet.c,v 1.5 1997/02/16 10:22:24 deraadt Exp $";
+static char *rcsid = "$OpenBSD: inet.c,v 1.6 1997/02/16 10:26:36 deraadt Exp $";
#endif
#endif /* not lint */
@@ -516,7 +516,7 @@ inetprint(in, port, proto, local)
if (sp || port == 0)
sprintf(cp, "%.8s", sp ? sp->s_name : "*");
else if (local && (nam = getrpcportnam(ntohs((u_short)port))))
- sprintf(cp, "%d<%.8s>", ntohs((u_short)port), nam);
+ sprintf(cp, "%d[%.8s]", ntohs((u_short)port), nam);
else
sprintf(cp, "%d", ntohs((u_short)port));
width = Aflag ? 18 : 22;
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index 56f1bdc8b44..c7886b76005 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: netstat.1,v 1.5 1997/02/01 17:31:20 kstailey Exp $
+.\" $OpenBSD: netstat.1,v 1.6 1997/02/16 10:26:39 deraadt Exp $
.\" $NetBSD: netstat.1,v 1.11 1995/10/03 21:42:43 thorpej Exp $
.\"
.\" Copyright (c) 1983, 1990, 1992, 1993
@@ -207,6 +207,10 @@ refer to
.Xr inet 3 ) .
Unspecified,
or ``wildcard'', addresses and ports appear as ``*''.
+If a local port number is registered as being in use for RPC by
+.Xr portmap 8
+it's RPC service name or RPC service number will be printed in
+[ ] immediately after the port number.
.Pp
The interface display provides a table of cumulative
statistics regarding packets transferred, errors, and collisions.