diff options
author | 2006-03-04 22:40:15 +0000 | |
---|---|---|
committer | 2006-03-04 22:40:15 +0000 | |
commit | aaed91e5ef42bd30ba3177914c849703310a8bc1 (patch) | |
tree | d3dfc90d75405e26b2cdca7e11dde2ea26c23fca /sys/netinet/ip_output.c | |
parent | | -> || (diff) | |
download | wireguard-openbsd-aaed91e5ef42bd30ba3177914c849703310a8bc1.tar.xz wireguard-openbsd-aaed91e5ef42bd30ba3177914c849703310a8bc1.zip |
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) { |