Source-Changes-HG archive

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

[src/trunk]: src/sys/net ipsecif(4) support input drop packet counter.



details:   https://anonhg.NetBSD.org/src/rev/3162f6fab4d7
branches:  trunk
changeset: 837480:3162f6fab4d7
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Fri Dec 07 05:09:39 2018 +0000

description:
ipsecif(4) support input drop packet counter.

diffstat:

 sys/net/if_ipsec.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a8656a0134e2 -r 3162f6fab4d7 sys/net/if_ipsec.c
--- a/sys/net/if_ipsec.c        Thu Dec 06 19:17:13 2018 +0000
+++ b/sys/net/if_ipsec.c        Fri Dec 07 05:09:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ipsec.c,v 1.18 2018/10/19 00:12:56 knakahara Exp $  */
+/*     $NetBSD: if_ipsec.c,v 1.19 2018/12/07 05:09:39 knakahara Exp $  */
 
 /*
  * Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ipsec.c,v 1.18 2018/10/19 00:12:56 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ipsec.c,v 1.19 2018/12/07 05:09:39 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -509,6 +509,7 @@
                ifp->if_ibytes += pktlen;
                ifp->if_ipackets++;
        } else {
+               ifp->if_iqdrops++;
                m_freem(m);
        }
 



Home | Main Index | Thread Index | Old Index