From 288fc71e386ca4ad0219628adfececd7c9db39d0 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Sat, 23 Jun 2001 18:45:30 +0000 Subject: Count input packets hardware-checksummed. --- sys/netinet/ip_input.c | 5 +++-- 1 file 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. -- cgit v1.2.3