Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat Update sysctl key in netstat(1)



details:   https://anonhg.NetBSD.org/src/rev/948746332079
branches:  trunk
changeset: 933554:948746332079
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Wed May 27 05:59:16 2020 +0000

description:
Update sysctl key in netstat(1)

diffstat:

 usr.bin/netstat/route.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 301ef3306a87 -r 948746332079 usr.bin/netstat/route.c
--- a/usr.bin/netstat/route.c   Wed May 27 03:25:13 2020 +0000
+++ b/usr.bin/netstat/route.c   Wed May 27 05:59:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.c,v 1.85 2016/04/04 07:37:08 ozaki-r Exp $       */
+/*     $NetBSD: route.c,v 1.86 2020/05/27 05:59:16 yamaguchi Exp $     */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c      8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: route.c,v 1.85 2016/04/04 07:37:08 ozaki-r Exp $");
+__RCSID("$NetBSD: route.c,v 1.86 2020/05/27 05:59:16 yamaguchi Exp $");
 #endif
 #endif /* not lint */
 
@@ -303,7 +303,7 @@
        if (use_sysctl) {
                size_t rtsize = sizeof(rtstats);
 
-               if (sysctlbyname("net.route.stats", &rtstats, &rtsize,
+               if (sysctlbyname("net.rtable.stats", &rtstats, &rtsize,
                    NULL, 0) == -1)
                        err(1, "rt_stats: sysctl");
        } else  if (off == 0) {



Home | Main Index | Thread Index | Old Index