Author: glebius
Date: Mon Oct 8 07:21:32 2012
New Revision: 241342
URL: http://svn.freebsd.org/changeset/base/241342
Log:
No reason to play with IP header before calling sctp_delayed_cksum()
with offset beyond the IP header.
Modified:
head/sys/netinet/ip_divert.c
Modified: head/sys/netinet/ip_divert.c
==============================================================================
--- head/sys/netinet/ip_divert.c Mon Oct 8 07:13:45 2012
(r241341)
+++ head/sys/netinet/ip_divert.c Mon Oct 8 07:21:32 2012
(r241342)
@@ -215,10 +215,8 @@ divert_packet(struct mbuf *m, int incomi
}
#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));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"