Lines Matching refs:assocparams

3143 				     struct sctp_assocparams *assocparams,  in sctp_setsockopt_associnfo()  argument
3152 asoc = sctp_id2assoc(sk, assocparams->sasoc_assoc_id); in sctp_setsockopt_associnfo()
3154 if (!asoc && assocparams->sasoc_assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_associnfo()
3160 if (assocparams->sasoc_asocmaxrxt != 0) { in sctp_setsockopt_associnfo()
3177 assocparams->sasoc_asocmaxrxt > path_sum) in sctp_setsockopt_associnfo()
3180 asoc->max_retrans = assocparams->sasoc_asocmaxrxt; in sctp_setsockopt_associnfo()
3183 if (assocparams->sasoc_cookie_life != 0) in sctp_setsockopt_associnfo()
3185 ms_to_ktime(assocparams->sasoc_cookie_life); in sctp_setsockopt_associnfo()
3190 if (assocparams->sasoc_asocmaxrxt != 0) in sctp_setsockopt_associnfo()
3191 sp->assocparams.sasoc_asocmaxrxt = in sctp_setsockopt_associnfo()
3192 assocparams->sasoc_asocmaxrxt; in sctp_setsockopt_associnfo()
3193 if (assocparams->sasoc_cookie_life != 0) in sctp_setsockopt_associnfo()
3194 sp->assocparams.sasoc_cookie_life = in sctp_setsockopt_associnfo()
3195 assocparams->sasoc_cookie_life; in sctp_setsockopt_associnfo()
5010 sp->assocparams.sasoc_asocmaxrxt = net->sctp.max_retrans_association; in sctp_init_sock()
5011 sp->assocparams.sasoc_number_peer_destinations = 0; in sctp_init_sock()
5012 sp->assocparams.sasoc_peer_rwnd = 0; in sctp_init_sock()
5013 sp->assocparams.sasoc_local_rwnd = 0; in sctp_init_sock()
5014 sp->assocparams.sasoc_cookie_life = net->sctp.valid_cookie_life; in sctp_init_sock()
6615 struct sctp_assocparams assocparams; in sctp_getsockopt_associnfo() local
6625 if (copy_from_user(&assocparams, optval, len)) in sctp_getsockopt_associnfo()
6628 asoc = sctp_id2assoc(sk, assocparams.sasoc_assoc_id); in sctp_getsockopt_associnfo()
6630 if (!asoc && assocparams.sasoc_assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_associnfo()
6636 assocparams.sasoc_asocmaxrxt = asoc->max_retrans; in sctp_getsockopt_associnfo()
6637 assocparams.sasoc_peer_rwnd = asoc->peer.rwnd; in sctp_getsockopt_associnfo()
6638 assocparams.sasoc_local_rwnd = asoc->a_rwnd; in sctp_getsockopt_associnfo()
6639 assocparams.sasoc_cookie_life = ktime_to_ms(asoc->cookie_life); in sctp_getsockopt_associnfo()
6645 assocparams.sasoc_number_peer_destinations = cnt; in sctp_getsockopt_associnfo()
6650 assocparams.sasoc_asocmaxrxt = sp->assocparams.sasoc_asocmaxrxt; in sctp_getsockopt_associnfo()
6651 assocparams.sasoc_peer_rwnd = sp->assocparams.sasoc_peer_rwnd; in sctp_getsockopt_associnfo()
6652 assocparams.sasoc_local_rwnd = sp->assocparams.sasoc_local_rwnd; in sctp_getsockopt_associnfo()
6653 assocparams.sasoc_cookie_life = in sctp_getsockopt_associnfo()
6654 sp->assocparams.sasoc_cookie_life; in sctp_getsockopt_associnfo()
6655 assocparams.sasoc_number_peer_destinations = in sctp_getsockopt_associnfo()
6656 sp->assocparams. in sctp_getsockopt_associnfo()
6663 if (copy_to_user(optval, &assocparams, len)) in sctp_getsockopt_associnfo()