|
|
@@ -61,7 +61,7 @@ static inline __wsum sctp_csum_combine(__wsum csum, __wsum csum2,
|
|
|
static inline __le32 sctp_compute_cksum(const struct sk_buff *skb,
|
|
|
unsigned int offset)
|
|
|
{
|
|
|
- struct sctphdr *sh = sctp_hdr(skb);
|
|
|
+ struct sctphdr *sh = (struct sctphdr *)(skb->data + offset);
|
|
|
const struct skb_checksum_ops ops = {
|
|
|
.update = sctp_csum_update,
|
|
|
.combine = sctp_csum_combine,
|