]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sctp: cleanup the SCTP_MAXSEG socket option.
authorMichael Tuexen <tuexen@FreeBSD.org>
Mon, 27 Dec 2021 22:40:31 +0000 (23:40 +0100)
committerMichael Tuexen <tuexen@FreeBSD.org>
Mon, 27 Dec 2021 22:40:31 +0000 (23:40 +0100)
commit989453da0589b8dc5c1948fd81f986a37ea385eb
tree89674e03c62e24ba465372db909f8ffbe089ebf2
parent7b36da48435d6c2571329d6a1f04f0a290403af8
sctp: cleanup the SCTP_MAXSEG socket option.

This patch makes the handling of the SCTP_MAXSEG socket option
compliant with RFC 6458 (SCTP socket API) and fixes an issue
found by syzkaller.

Reported by: syzbot+a2791b89ab99121e3333@syzkaller.appspotmail.com
MFC after: 3 days
sys/netinet/sctp_constants.h
sys/netinet/sctp_output.c
sys/netinet/sctp_output.h
sys/netinet/sctp_pcb.c
sys/netinet/sctp_usrreq.c
sys/netinet/sctputil.c