mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
No reason to play with IP header before calling sctp_delayed_cksum()
with offset beyond the IP header.
This commit is contained in:
parent
f7add34cfc
commit
b7fb54d8ae
1 changed files with 0 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue