diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1999-01-21 00:55:32 +0000 |
| commit | 76b5366091f76c9bc73570149ef5055648fc2c39 (patch) | |
| tree | 590d020e0f2a5bea6e09d66d951a674443b21d67 /usr.bin/netstat/main.c | |
| parent | 4b4d01da6f07f7754ff6a6e4f5223e9f0984d1a6 (diff) | |
Diffstat (limited to 'usr.bin/netstat/main.c')
| -rw-r--r-- | usr.bin/netstat/main.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 6680d0785fff7..fd0c5bdb7d527 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.21 1998/08/05 13:54:07 phk Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -105,21 +105,23 @@ static struct nlist nl[] = { { "_nfile" }, #define N_FILE 18 { "_file" }, -#define N_MRTSTAT 19 +#define N_MRTPROTO 19 + { "_ip_mrtproto" }, +#define N_MRTSTAT 20 { "_mrtstat" }, -#define N_MFCTABLE 20 +#define N_MFCTABLE 21 { "_mfctable" }, -#define N_VIFTABLE 21 +#define N_VIFTABLE 22 { "_viftable" }, -#define N_IPX 22 +#define N_IPX 23 { "_ipxpcb"}, -#define N_IPXSTAT 23 +#define N_IPXSTAT 24 { "_ipxstat"}, -#define N_SPXSTAT 24 +#define N_SPXSTAT 25 { "_spx_istat"}, -#define N_DDPSTAT 25 +#define N_DDPSTAT 26 { "_ddpstat"}, -#define N_DDPCB 26 +#define N_DDPCB 27 { "_ddpcb"}, { "" }, }; @@ -388,9 +390,11 @@ main(argc, argv) if (gflag) { kread(0, 0, 0); if (sflag) - mrt_stats(nl[N_MRTSTAT].n_value); + mrt_stats(nl[N_MRTPROTO].n_value, + nl[N_MRTSTAT].n_value); else - mroutepr(nl[N_MFCTABLE].n_value, + mroutepr(nl[N_MRTPROTO].n_value, + nl[N_MFCTABLE].n_value, nl[N_VIFTABLE].n_value); exit(0); } |
