diff options
author | 2001-06-23 18:45:29 +0000 | |
---|---|---|
committer | 2001-06-23 18:45:29 +0000 | |
commit | be2a7f01f97ace84cd2ff650f15e3a29971031d5 (patch) | |
tree | 178594f3690b74745da9dee0682507488026c662 | |
parent | duh (diff) | |
download | wireguard-openbsd-be2a7f01f97ace84cd2ff650f15e3a29971031d5.tar.xz wireguard-openbsd-be2a7f01f97ace84cd2ff650f15e3a29971031d5.zip |
Count input packets hardware-checksummed.
-rw-r--r-- | sys/netinet/ip_input.c | 5 |
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. |