Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat Show the number of packets dropped by pfil



details:   https://anonhg.NetBSD.org/src/rev/afb7df5c097e
branches:  trunk
changeset: 456535:afb7df5c097e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon May 13 07:48:42 2019 +0000

description:
Show the number of packets dropped by pfil

diffstat:

 usr.bin/netstat/inet.c  |  6 ++++--
 usr.bin/netstat/inet6.c |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r 7fc8ea5f4998 -r afb7df5c097e usr.bin/netstat/inet.c
--- a/usr.bin/netstat/inet.c    Mon May 13 07:47:59 2019 +0000
+++ b/usr.bin/netstat/inet.c    Mon May 13 07:48:42 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet.c,v 1.108 2018/05/03 07:13:48 maxv Exp $  */
+/*     $NetBSD: inet.c,v 1.109 2019/05/13 07:48:42 ozaki-r Exp $       */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)inet.c       8.4 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: inet.c,v 1.108 2018/05/03 07:13:48 maxv Exp $");
+__RCSID("$NetBSD: inet.c,v 1.109 2019/05/13 07:48:42 ozaki-r Exp $");
 #endif
 #endif /* not lint */
 
@@ -630,6 +630,8 @@
        p(IP_STAT_OFRAGMENTS, "\t%" PRIu64 " fragment%s created\n");
        p(IP_STAT_CANTFRAG, "\t%" PRIu64 " datagram%s that can't be fragmented\n");
        p(IP_STAT_BADADDR, "\t%" PRIu64 " datagram%s with bad address in header\n");
+       p(IP_STAT_PFILDROP_IN, "\t%" PRIu64 " input packet%s dropped by pfil\n");
+       p(IP_STAT_PFILDROP_OUT, "\t%" PRIu64 " output packet%s dropped by pfil\n");
 #undef ps
 #undef p
 }
diff -r 7fc8ea5f4998 -r afb7df5c097e usr.bin/netstat/inet6.c
--- a/usr.bin/netstat/inet6.c   Mon May 13 07:47:59 2019 +0000
+++ b/usr.bin/netstat/inet6.c   Mon May 13 07:48:42 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet6.c,v 1.71 2018/05/03 07:13:48 maxv Exp $  */
+/*     $NetBSD: inet6.c,v 1.72 2019/05/13 07:48:42 ozaki-r Exp $       */
 /*     BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp   */
 
 /*
@@ -64,7 +64,7 @@
 #if 0
 static char sccsid[] = "@(#)inet.c     8.4 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: inet6.c,v 1.71 2018/05/03 07:13:48 maxv Exp $");
+__RCSID("$NetBSD: inet6.c,v 1.72 2019/05/13 07:48:42 ozaki-r Exp $");
 #endif
 #endif /* not lint */
 
@@ -798,6 +798,8 @@
 
        p1(IP6_STAT_FORWARD_CACHEHIT, "\t%llu forward cache hit\n");
        p1(IP6_STAT_FORWARD_CACHEMISS, "\t%llu forward cache miss\n");
+       p(IP6_STAT_PFILDROP_IN, "\t%llu input packet%s dropped by pfil\n");
+       p(IP6_STAT_PFILDROP_OUT, "\t%llu output packet%s dropped by pfil\n");
 #undef p
 #undef p1
 }



Home | Main Index | Thread Index | Old Index