summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-23 18:54:44 +0000
committerangelos <angelos@openbsd.org>2001-06-23 18:54:44 +0000
commit63a9613b54118af5e0e5c383b9ec570b754b24a8 (patch)
tree407dc9862ad09d66f3527c6b3ff5d040e3dbcd69 /sys/netinet/tcp_input.c
parentCount input packets hardware-checksummed. (diff)
downloadwireguard-openbsd-63a9613b54118af5e0e5c383b9ec570b754b24a8.tar.xz
wireguard-openbsd-63a9613b54118af5e0e5c383b9ec570b754b24a8.zip
Clear the checksum flags after verification. Also, don't count
checksum errors as hardware checksum packets as well.
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index e8e31446c94..77e378964e7 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.96 2001/06/23 06:03:11 angelos Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.97 2001/06/23 18:54:44 angelos Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -521,8 +521,10 @@ tcp_input(m, va_alist)
tcpstat.tcps_rcvbadsum++;
goto drop;
}
- } else
+ } else {
+ m->m_pkthdr.csum &= ~M_TCP_CSUM_IN_OK;
tcpstat.tcps_inhwcsum++;
+ }
break;
}
#ifdef INET6