summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-03-05 02:29:47 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-03-05 02:29:47 +0000
commite2f6815059665bac422e998eb4ee1377799d29bb (patch)
tree3fa507079645ed04cc264020ec476de7e33afd75 /sys
parentf4d579def91372bbddcfeb479b7a461af7635d66 (diff)
revert unrelated change that snuck into the last commit.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 36fde452909..5582cf9a09a 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_output.c,v 1.174 2006/03/04 22:40:16 brad Exp $ */
+/* $OpenBSD: ip_output.c,v 1.175 2006/03/05 02:29:46 brad Exp $ */
/* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */
/*
@@ -1978,7 +1978,7 @@ in_delayed_cksum(struct mbuf *m)
ip = mtod(m, struct ip *);
offset = ip->ip_hl << 2;
csum = in4_cksum(m, 0, offset, m->m_pkthdr.len - offset);
- if (csum == 0 && (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT) != 0)
+ if (csum == 0 && ip->ip_p == IPPROTO_UDP)
csum = 0xffff;
switch (ip->ip_p) {