summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-16 06:38:26 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-05-16 06:38:26 +0000
commita40b50aa26a5e0e6ecabe96e627ee8677ae06c63 (patch)
treee863c67276c3de1f8d63b77a1f135ee1898bdcf3 /sys/netinet/ip_input.c
parent799a62a28c8a5042b8fc3410fec6d69a2ac37ce0 (diff)
Don't clobber ip_sum; ip_output always sets this to 0 before calling
in_cksum so it's not needed here; itojun@ ok. This makes the ip_sum available in ipfilter.
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 ecb8b7e8730..f300c689251 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.68 2001/05/11 17:20:11 aaron Exp $ */
+/* $OpenBSD: ip_input.c,v 1.69 2001/05/16 06:38:25 fgsch Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -361,7 +361,7 @@ ipv4_input(struct mbuf *m, ...)
}
}
- if ((ip->ip_sum = in_cksum(m, hlen)) != 0) {
+ if (in_cksum(m, hlen) != 0) {
ipstat.ips_badsum++;
goto bad;
}