diff options
author | wollman <wollman@FreeBSD.org> | 1995-06-13 19:18:40 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-06-13 19:18:40 +0000 |
commit | 5146b472bbd6909653d09e71ccd3b2b1e1bd752f (patch) | |
tree | f7bf050df0a3594578665f4a1650241542f91d65 /usr.bin/netstat/main.c | |
parent | 4dcec62f4cf9c417cd7fd6d00d8ba60c156f5b10 (diff) | |
download | FreeBSD-src-5146b472bbd6909653d09e71ccd3b2b1e1bd752f.zip FreeBSD-src-5146b472bbd6909653d09e71ccd3b2b1e1bd752f.tar.gz |
Re-write `netstat -g' code to match the 3.5 data structures.
Diffstat (limited to 'usr.bin/netstat/main.c')
-rw-r--r-- | usr.bin/netstat/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 5e59f37..f03974a 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -121,8 +121,8 @@ struct nlist nl[] = { { "_ip_mrtproto" }, #define N_MRTSTAT 28 { "_mrtstat" }, -#define N_MRTTABLE 29 - { "_mrttable" }, +#define N_MFCTABLE 29 + { "_mfctable" }, #define N_VIFTABLE 30 { "_viftable" }, "", @@ -261,7 +261,7 @@ main(argc, argv) break; case 'p': if ((tp = name2protox(optarg)) == NULL) { - errx(1, + errx(1, "%s: unknown or uninstrumented protocol", optarg); } @@ -367,7 +367,7 @@ main(argc, argv) nl[N_MRTSTAT].n_value); else mroutepr(nl[N_MRTPROTO].n_value, - nl[N_MRTTABLE].n_value, + nl[N_MFCTABLE].n_value, nl[N_VIFTABLE].n_value); exit(0); } |