No reason to play with IP header before calling sctp_delayed_cksum()

with offset beyond the IP header.
This commit is contained in:
Gleb Smirnoff 2012-10-08 07:21:32 +00:00
parent f7add34cfc
commit b7fb54d8ae

View File

@ -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));