diff options
| author | John Hay <jhay@FreeBSD.org> | 1999-02-06 19:12:48 +0000 |
|---|---|---|
| committer | John Hay <jhay@FreeBSD.org> | 1999-02-06 19:12:48 +0000 |
| commit | e30e913cf7fd64859d2af008e8099f2f0fb2c7a5 (patch) | |
| tree | cf0e1cde372328c8aee474ef61aaa1f21b9b3b8d /usr.bin/netstat | |
| parent | db909d8274aa4d620340ead393d39cb04e961a42 (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat')
| -rw-r--r-- | usr.bin/netstat/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 6680d0785fff..8f9998fc4691 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -42,7 +42,7 @@ char const copyright[] = static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 3/1/94"; #endif static const char rcsid[] = - "$Id: main.c,v 1.22 1998/08/08 08:13:04 phk Exp $"; + "$Id: main.c,v 1.23 1999/01/18 02:09:15 fenner Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -158,11 +158,11 @@ struct protox atalkprotox[] = { struct protox ipxprotox[] = { { N_IPX, N_IPXSTAT, 1, ipxprotopr, - ipx_stats, "ipx" }, + ipx_stats, "ipx", 0 }, { N_IPX, N_SPXSTAT, 1, ipxprotopr, - spx_stats, "spx" }, + spx_stats, "spx", 0 }, { -1, -1, 0, 0, - 0, 0 } + 0, 0, 0 } }; #ifdef NS @@ -408,9 +408,11 @@ main(argc, argv) } endprotoent(); } - if (af == AF_IPX || af == AF_UNSPEC) + if (af == AF_IPX || af == AF_UNSPEC) { + kread(0, 0, 0); for (tp = ipxprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); + } if (af == AF_APPLETALK || af == AF_UNSPEC) for (tp = atalkprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); |
