summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-23 18:45:30 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-23 18:45:30 +0000
commit288fc71e386ca4ad0219628adfececd7c9db39d0 (patch)
treec3df3850b2be8faac36062f284af5a42be036b9b /sys/netinet
parentd06a0e8100553df0cdac5aaf71dc8375cbb8e69e (diff)
Count input packets hardware-checksummed.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 1157935fcf1..52e2a6683b7 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.80 2001/06/23 16:15:56 fgsch Exp $ */
+/* $OpenBSD: ip_input.c,v 1.81 2001/06/23 18:45:29 angelos Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -342,7 +342,8 @@ ipv4_input(m)
ipstat.ips_inhwcsum++;
m->m_pkthdr.csum &= ~M_IPV4_CSUM_IN_OK;
- }
+ } else
+ ipstat.ips_inhwcsum++;
/*
* Convert fields to host representation.