summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-02-06 19:12:48 +0000
committerjhay <jhay@FreeBSD.org>1999-02-06 19:12:48 +0000
commit735c50d2bab5974bbfed914db4cdd388166b6fdf (patch)
tree0640cff5d30f4757a9c30a98df70dd8bb1e600b3 /usr.bin/netstat
parent1dd5304c324f3a43b19e8cf7a8c5f894f8fa84e3 (diff)
downloadFreeBSD-src-735c50d2bab5974bbfed914db4cdd388166b6fdf.zip
FreeBSD-src-735c50d2bab5974bbfed914db4cdd388166b6fdf.tar.gz
Make the ipx part of netstat work again.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 6680d07..8f9998f 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);
OpenPOWER on IntegriCloud