From ada9cef5f64d23c4c424d2825f90a044ef38d1d5 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 29 Jun 2001 09:08:24 +0000 Subject: Make `rttrash' variable (#routes not in table but not freed) visible through ``netstat -rs''. --- usr.bin/netstat/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/netstat/main.c') diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index a6e9966..4f373d1 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -163,6 +163,8 @@ static struct nlist nl[] = { { "_pagesize" }, #define N_MBPSTAT 46 { "_mb_statpcpu" }, +#define N_RTTRASH 47 + { "_rttrash" }, { "" }, }; @@ -532,7 +534,7 @@ main(argc, argv) if (rflag) { kread(0, 0, 0); if (sflag) - rt_stats(nl[N_RTSTAT].n_value); + rt_stats(nl[N_RTSTAT].n_value, nl[N_RTTRASH].n_value); else routepr(nl[N_RTREE].n_value); exit(0); -- cgit v1.1