summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-10-08 07:21:32 +0000
committerglebius <glebius@FreeBSD.org>2012-10-08 07:21:32 +0000
commitef52d4e59159a8d7ac2696b26d1b1cd23f0e74fb (patch)
treee981857fef3f0ef1ff72d75c830a9dd4c76d5893 /sys/netinet
parent6bef1434c3158a056f9b2dabf4803f9ef1055563 (diff)
downloadFreeBSD-src-ef52d4e59159a8d7ac2696b26d1b1cd23f0e74fb.zip
FreeBSD-src-ef52d4e59159a8d7ac2696b26d1b1cd23f0e74fb.tar.gz
No reason to play with IP header before calling sctp_delayed_cksum()
with offset beyond the IP header.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_divert.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index b366a65..99d598c 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -215,10 +215,8 @@ divert_packet(struct mbuf *m, int incoming)
}
#ifdef SCTP
if (m->m_pkthdr.csum_flags & CSUM_SCTP) {
- ip->ip_len = ntohs(ip->ip_len);
sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2));
m->m_pkthdr.csum_flags &= ~CSUM_SCTP;
- ip->ip_len = htons(ip->ip_len);
}
#endif
bzero(&divsrc, sizeof(divsrc));
OpenPOWER on IntegriCloud