diff options
author | Xin Long | 2016-07-09 13:47:40 +0200 |
---|---|---|
committer | David S. Miller | 2016-07-11 22:25:38 +0200 |
commit | 28aa4c26fce2202db8d42ae76b639ca1d9a23d25 (patch) | |
tree | 821624ddb932078c84235eb5b852e282891dbbf6 /net/sctp/endpointola.c | |
parent | Revert "net: ethernet: bcmgenet: use phy_ethtool_{get|set}_link_ksettings" (diff) | |
download | kernel-qcow2-linux-28aa4c26fce2202db8d42ae76b639ca1d9a23d25.tar.gz kernel-qcow2-linux-28aa4c26fce2202db8d42ae76b639ca1d9a23d25.tar.xz kernel-qcow2-linux-28aa4c26fce2202db8d42ae76b639ca1d9a23d25.zip |
sctp: add SCTP_PR_SUPPORTED on sctp sockopt
According to section 4.5 of rfc7496, prsctp_enable should be per asoc.
We will add prsctp_enable to both asoc and ep, and replace the places
where it used net.sctp->prsctp_enable with asoc->prsctp_enable.
ep->prsctp_enable will be initialized with net.sctp->prsctp_enable, and
asoc->prsctp_enable will be initialized with ep->prsctp_enable. We can
also modify it's value through sockopt SCTP_PR_SUPPORTED.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 9d494e35e7f9..1f03065686fe 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -163,6 +163,7 @@ static struct sctp_endpoint *sctp_endpoint_init(struct sctp_endpoint *ep, */ ep->auth_hmacs_list = auth_hmacs; ep->auth_chunk_list = auth_chunks; + ep->prsctp_enable = net->sctp.prsctp_enable; return ep; |