linux/include/net/sctp
Xin Long 273160ffc6 sctp: get sctphdr by offset in sctp_compute_cksum
sctp_hdr(skb) only works when skb->transport_header is set properly.

But in Netfilter, skb->transport_header for ipv6 is not guaranteed
to be right value for sctphdr. It would cause to fail to check the
checksum for sctp packets.

So fix it by using offset, which is always right in all places.

v1->v2:
  - Fix the changelog.

Fixes: e6d8b64b34 ("net: sctp: fix and consolidate SCTP checksumming code")
Reported-by: Li Shuang <shuali@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-18 18:16:12 -07:00
..
auth.h
checksum.h sctp: get sctphdr by offset in sctp_compute_cksum 2019-03-18 18:16:12 -07:00
command.h
constants.h sctp: rename enum sctp_event to sctp_event_type 2018-11-19 12:25:43 -08:00
sctp.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-12-09 21:43:31 -08:00
sm.h sctp: rename enum sctp_event to sctp_event_type 2018-11-19 12:25:43 -08:00
stream_interleave.h
stream_sched.h
structs.h sctp: convert to genradix 2019-03-12 10:04:02 -07:00
tsnmap.h
ulpevent.h sctp: define subscribe in sctp_sock as __u16 2018-11-19 12:25:43 -08:00
ulpqueue.h