summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 6e521d7748f..d2041d5c5a6 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.78 2001/06/23 03:39:03 angelos Exp $ */
+/* $OpenBSD: ip_input.c,v 1.79 2001/06/23 05:55:40 angelos Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -336,9 +336,11 @@ ipv4_input(m)
if (m->m_pkthdr.csum & M_IPV4_CSUM_IN_BAD ||
in_cksum(m, hlen) != 0) {
ipstat.ips_badsum++;
+ ipstat.ips_inhwcsum++;
goto bad;
}
+ ipstat.ips_inhwcsum++;
m->m_pkthdr.csum &= ~M_IPV4_CSUM_IN_OK;
}