diff options
author | Xin Long <lucien.xin@gmail.com> | 2018-11-18 10:21:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-23 10:20:34 +0300 |
commit | 6bab51ff62cea6c9e0455aa748cb097a4a4ccd0a (patch) | |
tree | 7f8cced515229da8173157a3d6ce22e753e53568 /drivers/bluetooth/Makefile | |
parent | 4a80b1feaee77c9108765cf696c1bc2196393126 (diff) | |
download | linux-6bab51ff62cea6c9e0455aa748cb097a4a4ccd0a.tar.xz |
sctp: not allow to set asoc prsctp_enable by sockopt
[ Upstream commit cc3ccf26f0649089b3a34a2781977755ea36e72c ]
As rfc7496#section4.5 says about SCTP_PR_SUPPORTED:
This socket option allows the enabling or disabling of the
negotiation of PR-SCTP support for future associations. For existing
associations, it allows one to query whether or not PR-SCTP support
was negotiated on a particular association.
It means only sctp sock's prsctp_enable can be set.
Note that for the limitation of SCTP_{CURRENT|ALL}_ASSOC, we will
add it when introducing SCTP_{FUTURE|CURRENT|ALL}_ASSOC for linux
sctp in another patchset.
v1->v2:
- drop the params.assoc_id check as Neil suggested.
Fixes: 28aa4c26fce2 ("sctp: add SCTP_PR_SUPPORTED on sctp sockopt")
Reported-by: Ying Xu <yinxu@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bluetooth/Makefile')
0 files changed, 0 insertions, 0 deletions