]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: allow setting SCTP_SACK_IMMEDIATELY by the application
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 22 Jan 2016 20:29:49 +0000 (18:29 -0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jan 2016 06:43:21 +0000 (22:43 -0800)
commit9c436f8c64ca5b39541f2377340afb0e537192a4
treefb1232a621d48ec214484cad838278e679f0ea88
parent8729ef1590192060f3cb529f4041fc2cddb3e6a2
sctp: allow setting SCTP_SACK_IMMEDIATELY by the application

This patch extends commit 89faedb110e4 ("sctp: implement the sender side
for SACK-IMMEDIATELY extension") as it didn't white list
SCTP_SACK_IMMEDIATELY on sctp_msghdr_parse(), causing it to be
understood as an invalid flag and returning -EINVAL to the application.

Note that the actual handling of the flag is already there in
sctp_datamsg_from_user().

https://tools.ietf.org/html/rfc7053#section-7

Fixes: 89faedb110e4 ("sctp: implement the sender side for SACK-IMMEDIATELY extension")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c