diff options
author | wollman <wollman@FreeBSD.org> | 1996-02-06 20:36:15 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-02-06 20:36:15 +0000 |
commit | 61d8d8e40b45efc45d9bbdf14fe96e565ceb074f (patch) | |
tree | 3775e2813ec951933b9585e48e3c57ba7dca08e2 /usr.bin/netstat/main.c | |
parent | f0d10418a5a87de35e721ce8bbfd0e9353207adc (diff) | |
download | FreeBSD-src-61d8d8e40b45efc45d9bbdf14fe96e565ceb074f.zip FreeBSD-src-61d8d8e40b45efc45d9bbdf14fe96e565ceb074f.tar.gz |
Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)
in preparation for its removal from the kernel source tree. NB: because
a function was deleted, libc is now at version 3.0 (was 2.2 previously).
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 3ff395a..c136305 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -180,6 +180,7 @@ struct protox nsprotox[] = { 0, 0 } }; +#ifdef ISO struct protox isoprotox[] = { { ISO_TP, N_TPSTAT, 1, iso_protopr, tp_stats, "tp" }, @@ -192,8 +193,13 @@ struct protox isoprotox[] = { { -1, -1, 0, 0, 0, 0 } }; +#endif -struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, NULL }; +struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, +#ifdef ISO + isoprotox, +#endif + NULL }; static void printproto __P((struct protox *, char *)); static void usage __P((void)); @@ -246,8 +252,10 @@ main(argc, argv) af = AF_INET; else if (strcmp(optarg, "unix") == 0) af = AF_UNIX; +#ifdef ISO else if (strcmp(optarg, "iso") == 0) af = AF_ISO; +#endif else { errx(1, "%s: unknown address family", optarg); } @@ -419,9 +427,11 @@ main(argc, argv) if (af == AF_NS || af == AF_UNSPEC) for (tp = nsprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); +#ifdef ISO if (af == AF_ISO || af == AF_UNSPEC) for (tp = isoprotox; tp->pr_name; tp++) printproto(tp, tp->pr_name); +#endif if ((af == AF_UNIX || af == AF_UNSPEC) && !sflag) unixpr(nl[N_UNIXSW].n_value); exit(0); |