(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.
This commit is contained in:
parent
e9a0140794
commit
f05cdaa5c6
|
@ -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 @@ rip_input(struct mbuf *m, ...)
|
|||
#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 @@ rip_input(struct mbuf *m, ...)
|
|||
/* 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
|
||||
|
|
Loading…
Reference in New Issue