diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-03-04 22:40:17 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-03-04 22:40:17 +0000 |
commit | b751ff7496fc73fe22ed7d0c2371837c4c2aed2c (patch) | |
tree | bd1ae2cb58e37d25f97c0e7f581ad0b9035bf683 /sys/netinet/ip_output.c | |
parent | 15e7a983128283f9a61840e1ed37255bb4ada6fe (diff) |
With the exception of two other small uncommited diffs this moves
the remainder of the network stack from splimp to splnet.
ok miod@
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index dae7a979b9e..36fde452909 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.173 2005/10/05 17:32:22 norby Exp $ */ +/* $OpenBSD: ip_output.c,v 1.174 2006/03/04 22:40:16 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 && ip->ip_p == IPPROTO_UDP) + if (csum == 0 && (m->m_pkthdr.csum_flags & M_UDPV4_CSUM_OUT) != 0) csum = 0xffff; switch (ip->ip_p) { |