aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>1999-03-10 17:32:26 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>1999-03-10 17:32:26 +0000
commit3592c1b3d5a457f083310d1cca8bbc7d4345c918 (patch)
treeb0c507449dc26da9c8a50ab8dd056aa752b7f2dc /usr.bin
parentb3983ee3c14b72f1635d3e8d62d35b45773178b1 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 314ada559f81..5bdd409b9f41 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -36,7 +36,7 @@
static char sccsid[] = "@(#)inet.c 8.5 (Berkeley) 5/24/95";
*/
static const char rcsid[] =
- "$Id: inet.c,v 1.29 1998/06/09 04:13:01 imp Exp $";
+ "$Id: inet.c,v 1.31 1999/03/10 17:25:42 des Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -170,8 +170,12 @@ protopr(proto, name)
"Local Address", "Foreign Address", "(state)");
first = 0;
}
- if (Aflag)
- printf("%8lx ", (u_long)so->so_pcb);
+ if (Aflag) {
+ if (istcp)
+ printf("%8lx ", (u_long)inp->inp_ppcb);
+ else
+ printf("%8lx ", (u_long)so->so_pcb);
+ }
printf("%-5.5s %6ld %6ld ", name, so->so_rcv.sb_cc,
so->so_snd.sb_cc);
if (nflag) {