sctp: add SCTP_FUTURE_ASSOC for SCTP_PEER_ADDR_THLDS sockopt
Check with SCTP_FUTURE_ASSOC instead in sctp_set/getsockopt_paddr_thresholds, it's compatible with 0. It also adds pf_retrans in sctp_sock to support SCTP_FUTURE_ASSOC. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
48c072174d
commit
8add543e36
@@ -101,7 +101,7 @@ static struct sctp_association *sctp_association_init(
|
||||
* socket values.
|
||||
*/
|
||||
asoc->max_retrans = sp->assocparams.sasoc_asocmaxrxt;
|
||||
asoc->pf_retrans = net->sctp.pf_retrans;
|
||||
asoc->pf_retrans = sp->pf_retrans;
|
||||
|
||||
asoc->rto_initial = msecs_to_jiffies(sp->rtoinfo.srto_initial);
|
||||
asoc->rto_max = msecs_to_jiffies(sp->rtoinfo.srto_max);
|
||||
|
Reference in New Issue
Block a user