summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2006-03-05 02:29:46 +0000
committerbrad <brad@openbsd.org>2006-03-05 02:29:46 +0000
commit4524b2d0b59f76e03792fd0919f9c2acbf57ba83 (patch)
tree01facf5e51639a4059e2d3693b55ae1844c0bf99
parenttabs are holier than spaces. (diff)
downloadwireguard-openbsd-4524b2d0b59f76e03792fd0919f9c2acbf57ba83.tar.xz
wireguard-openbsd-4524b2d0b59f76e03792fd0919f9c2acbf57ba83.zip
revert unrelated change that snuck into the last commit.
-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) {