diff options
author | wollman <wollman@FreeBSD.org> | 1996-02-13 17:30:37 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-02-13 17:30:37 +0000 |
commit | 379b9b388fc8788659993af038bb322bfbcea8b2 (patch) | |
tree | 0853393f80e81ab72567bd7838b4c2b218a67558 /usr.bin/netstat/main.c | |
parent | 45f8e7f5c1b5de36c0bce4e71f98e7bb5fa9236f (diff) | |
download | FreeBSD-src-379b9b388fc8788659993af038bb322bfbcea8b2.zip FreeBSD-src-379b9b388fc8788659993af038bb322bfbcea8b2.tar.gz |
XNS sort-of-support is no more.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index c136305..fb05caa 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -169,6 +169,7 @@ struct protox ipxprotox[] = { 0, 0 } }; +#ifdef NS struct protox nsprotox[] = { { N_IDP, N_IDPSTAT, 1, nsprotopr, idp_stats, "idp" }, @@ -179,6 +180,7 @@ struct protox nsprotox[] = { { -1, -1, 0, 0, 0, 0 } }; +#endif #ifdef ISO struct protox isoprotox[] = { @@ -195,7 +197,10 @@ struct protox isoprotox[] = { }; #endif -struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, +struct protox *protoprotox[] = { protox, ipxprotox, +#ifdef NS + nsprotox, +#endif #ifdef ISO isoprotox, #endif @@ -244,9 +249,12 @@ main(argc, argv) dflag = 1; break; case 'f': +#ifdef NS if (strcmp(optarg, "ns") == 0) af = AF_NS; - else if (strcmp(optarg, "ipx") == 0) + else +#endif + if (strcmp(optarg, "ipx") == 0) af = AF_IPX; else if (strcmp(optarg, "inet") == 0) af = AF_INET; @@ -424,9 +432,11 @@ main(argc, argv) if (af == AF_IPX || af == AF_UNSPEC) for (tp = ipxprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); +#ifdef NS if (af == AF_NS || af == AF_UNSPEC) for (tp = nsprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); +#endif #ifdef ISO if (af == AF_ISO || af == AF_UNSPEC) for (tp = isoprotox; tp->pr_name; tp++) |