summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1999-01-19 21:58:40 +0000
committermycroft <mycroft@NetBSD.org>1999-01-19 21:58:40 +0000
commitfc1211a6abd377660b11181cd45ea0ff3f4fd136 (patch)
tree31f452e89e238d70a25eae827d4b76e6e6ccfded /sys/netinet/ip_input.c
parentbef0af53111a63eff076a98619fa750d19ced51b (diff)
Don't overwrite the checksum fields when checking them. There's no reason to
do this, and it screws up ICMP replies. XXX The returned IP checksum and length are still wrong.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 088ac419d86..821433e3a39 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.77 1999/01/11 22:35:06 thorpej Exp $ */
+/* $NetBSD: ip_input.c,v 1.78 1999/01/19 21:58:40 mycroft Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -340,7 +340,7 @@ next:
}
ip = mtod(m, struct ip *);
}
- if ((ip->ip_sum = in_cksum(m, hlen)) != 0) {
+ if (in_cksum(m, hlen) != 0) {
ipstat.ips_badsum++;
goto bad;
}