-/* $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 $ */
/*
#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 */
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;
-.\" $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
.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.