Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet (just forgot to commit this file, the message was)



details:   https://anonhg.NetBSD.org/src/rev/6964f0680289
branches:  trunk
changeset: 830192:6964f0680289
user:      maxv <maxv%NetBSD.org@localhost>
date:      Wed Feb 28 11:10:22 2018 +0000

description:
(just forgot to commit this file, the message was)

Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.

diffstat:

 sys/netinet/raw_ip.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 832e9e57cac0 -r 6964f0680289 sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c      Wed Feb 28 11:09:03 2018 +0000
+++ b/sys/netinet/raw_ip.c      Wed Feb 28 11:10:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip.c,v 1.169 2018/02/26 09:04:29 maxv Exp $        */
+/*     $NetBSD: raw_ip.c,v 1.170 2018/02/28 11:10:22 maxv Exp $        */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.169 2018/02/26 09:04:29 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.170 2018/02/28 11:10:22 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -205,7 +205,6 @@
 #if defined(IPSEC)
                /* check AH/ESP integrity. */
                else if (ipsec_used && ipsec_in_reject(m, last)) {
-                       IPSEC_STATINC(IPSEC_STAT_IN_POLVIO);
                        /* do not inject data to pcb */
                }
 #endif /*IPSEC*/
@@ -220,7 +219,6 @@
        /* check AH/ESP integrity. */
        if (ipsec_used && last != NULL && ipsec_in_reject(m, last)) {
                m_freem(m);
-               IPSEC_STATINC(IPSEC_STAT_IN_POLVIO);
                IP_STATDEC(IP_STAT_DELIVERED);
                /* do not inject data to pcb */
        } else



Home | Main Index | Thread Index | Old Index