diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 07:03:28 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-23 07:03:28 +0000 |
commit | 6c7ff16062098d9d58e84c7c641eb38ae8648194 (patch) | |
tree | b7d7299eedd30bd5e5a291d7ca84e55046b638b1 /sys/netinet/ip_output.c | |
parent | 3effbef88c1f8b7bacadbbef39485c754acc74de (diff) |
m_copyback(), not m_copydata()
Diffstat (limited to 'sys/netinet/ip_output.c')
-rw-r--r-- | sys/netinet/ip_output.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 2efb36c66b1..daff4f58fef 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_output.c,v 1.109 2001/06/23 06:42:37 angelos Exp $ */ +/* $OpenBSD: ip_output.c,v 1.110 2001/06/23 07:03:27 angelos Exp $ */ /* $NetBSD: ip_output.c,v 1.28 1996/02/13 23:43:07 christos Exp $ */ /* @@ -340,7 +340,7 @@ ip_output(m0, va_alist) if (m->m_pkthdr.csum & M_TCPV4_CSUM_OUT && !(ifp->if_capabilities & IFCAP_CSUM_TCPv4)) { csums = in4_cksum(m, IPPROTO_TCP, 0, m->m_pkthdr.len); - m_copydata(m, hlen + offsetof(struct tcphdr, th_sum), + m_copyback(m, hlen + offsetof(struct tcphdr, th_sum), sizeof(short), (caddr_t)&csums); m->m_pkthdr.csum &= ~M_TCPV4_CSUM_OUT; /* Clear */ } @@ -348,7 +348,7 @@ ip_output(m0, va_alist) if (m->m_pkthdr.csum & M_UDPV4_CSUM_OUT && !(ifp->if_capabilities & IFCAP_CSUM_UDPv4)) { csums = in4_cksum(m, IPPROTO_UDP, 0, m->m_pkthdr.len); - m_copydata(m, hlen + offsetof(struct udphdr, uh_sum), + m_copyback(m, hlen + offsetof(struct udphdr, uh_sum), sizeof(short), (caddr_t)&csums); m->m_pkthdr.csum &= ~M_UDPV4_CSUM_OUT; /* Clear */ } @@ -613,7 +613,7 @@ sendit: if (m->m_pkthdr.csum & M_TCPV4_CSUM_OUT && !(ifp->if_capabilities & IFCAP_CSUM_TCPv4)) { csums = in4_cksum(m, IPPROTO_TCP, 0, m->m_pkthdr.len); - m_copydata(m, hlen + offsetof(struct tcphdr, th_sum), + m_copyback(m, hlen + offsetof(struct tcphdr, th_sum), sizeof(short), (caddr_t)&csums); m->m_pkthdr.csum &= ~M_TCPV4_CSUM_OUT; /* Clear */ } @@ -621,7 +621,7 @@ sendit: if (m->m_pkthdr.csum & M_UDPV4_CSUM_OUT && !(ifp->if_capabilities & IFCAP_CSUM_UDPv4)) { csums = in4_cksum(m, IPPROTO_UDP, 0, m->m_pkthdr.len); - m_copydata(m, hlen + offsetof(struct udphdr, uh_sum), + m_copyback(m, hlen + offsetof(struct udphdr, uh_sum), sizeof(short), (caddr_t)&csums); m->m_pkthdr.csum &= ~M_UDPV4_CSUM_OUT; /* Clear */ } |