summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-23 03:39:03 +0000
committerangelos <angelos@openbsd.org>2001-06-23 03:39:03 +0000
commite29908af685b33d49f5fc9a04a98946b488ef948 (patch)
tree4560a67db1ef201dfe8022908441f0099689f3ec
parentadd /dev/pci (diff)
downloadwireguard-openbsd-e29908af685b33d49f5fc9a04a98946b488ef948.tar.xz
wireguard-openbsd-e29908af685b33d49f5fc9a04a98946b488ef948.zip
Clear IPv4 input checksum OK flag after verification.
-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 18dce3acddc..6e521d7748f 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.77 2001/06/23 02:27:09 angelos Exp $ */
+/* $OpenBSD: ip_input.c,v 1.78 2001/06/23 03:39:03 angelos Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -338,6 +338,8 @@ ipv4_input(m)
ipstat.ips_badsum++;
goto bad;
}
+
+ m->m_pkthdr.csum &= ~M_IPV4_CSUM_IN_OK;
}
/*