Lines Matching refs:assoc_id
1165 int addrs_size, int flags, sctp_assoc_t *assoc_id) in __sctp_connect() argument
1226 if (assoc_id) { in __sctp_connect()
1241 if (assoc_id) in __sctp_connect()
1242 *assoc_id = asoc->assoc_id; in __sctp_connect()
1310 int addrs_size, sctp_assoc_t *assoc_id) in __sctp_setsockopt_connectx() argument
1334 return __sctp_connect(sk, kaddrs, addrs_size, flags, assoc_id); in __sctp_setsockopt_connectx()
1358 sctp_assoc_t assoc_id = 0; in sctp_setsockopt_connectx() local
1361 err = __sctp_setsockopt_connectx(sk, kaddrs, addrs_size, &assoc_id); in sctp_setsockopt_connectx()
1366 return assoc_id; in sctp_setsockopt_connectx()
1379 sctp_assoc_t assoc_id; member
1390 sctp_assoc_t assoc_id = 0; in sctp_getsockopt_connectx3() local
1403 param.assoc_id = param32.assoc_id; in sctp_getsockopt_connectx3()
1419 err = __sctp_setsockopt_connectx(sk, kaddrs, param.addr_num, &assoc_id); in sctp_getsockopt_connectx3()
1422 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3()
1424 if (put_user(sizeof(assoc_id), optlen)) in sctp_getsockopt_connectx3()
2831 p.sack_assoc_id = v->assoc_id; in sctp_setsockopt_delayed_ack()
3244 sctp_assoc_t assoc_id; in sctp_setsockopt_maxseg() local
3253 assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_maxseg()
3256 assoc_id = params->assoc_id; in sctp_setsockopt_maxseg()
3262 asoc = sctp_id2assoc(sk, assoc_id); in sctp_setsockopt_maxseg()
3263 if (!asoc && assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_maxseg()
3395 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_context()
3396 if (!asoc && params->assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_context()
3407 params->assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_context()
3409 if (params->assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_context()
3410 params->assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_context()
3413 if (params->assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_context()
3414 params->assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_context()
3510 sctp_assoc_t assoc_id; in sctp_setsockopt_maxburst() local
3519 assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_maxburst()
3522 assoc_id = params->assoc_id; in sctp_setsockopt_maxburst()
3527 asoc = sctp_id2assoc(sk, assoc_id); in sctp_setsockopt_maxburst()
3528 if (!asoc && assoc_id > SCTP_ALL_ASSOC && sctp_style(sk, UDP)) in sctp_setsockopt_maxburst()
3538 assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_maxburst()
3540 if (assoc_id == SCTP_FUTURE_ASSOC || assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_maxburst()
3543 if (assoc_id == SCTP_CURRENT_ASSOC || assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_maxburst()
3956 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_pr_supported()
3957 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_pr_supported()
4028 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_reconfig_supported()
4029 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_reconfig_supported()
4055 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_enable_strreset()
4056 if (!asoc && params->assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_enable_strreset()
4068 params->assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_enable_strreset()
4070 if (params->assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_enable_strreset()
4071 params->assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_enable_strreset()
4074 if (params->assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_enable_strreset()
4075 params->assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_enable_strreset()
4151 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_scheduler()
4152 if (!asoc && params->assoc_id > SCTP_ALL_ASSOC && in sctp_setsockopt_scheduler()
4160 params->assoc_id = SCTP_FUTURE_ASSOC; in sctp_setsockopt_scheduler()
4162 if (params->assoc_id == SCTP_FUTURE_ASSOC || in sctp_setsockopt_scheduler()
4163 params->assoc_id == SCTP_ALL_ASSOC) in sctp_setsockopt_scheduler()
4166 if (params->assoc_id == SCTP_CURRENT_ASSOC || in sctp_setsockopt_scheduler()
4167 params->assoc_id == SCTP_ALL_ASSOC) { in sctp_setsockopt_scheduler()
4190 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_scheduler_value()
4191 if (!asoc && params->assoc_id != SCTP_CURRENT_ASSOC && in sctp_setsockopt_scheduler_value()
4225 asoc = sctp_id2assoc(sk, p->assoc_id); in sctp_setsockopt_interleaving_supported()
4226 if (!asoc && p->assoc_id != SCTP_FUTURE_ASSOC && sctp_style(sk, UDP)) in sctp_setsockopt_interleaving_supported()
4329 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_asconf_supported()
4330 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_asconf_supported()
4359 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_auth_supported()
4360 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_auth_supported()
4392 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_ecn_supported()
4393 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_ecn_supported()
4417 asoc = sctp_id2assoc(sk, params->assoc_id); in sctp_setsockopt_pf_expose()
4418 if (!asoc && params->assoc_id != SCTP_FUTURE_ASSOC && in sctp_setsockopt_pf_expose()
6142 asoc = sctp_id2assoc(sk, getaddrs.assoc_id); in sctp_getsockopt_peer_addrs()
6247 if (0 == getaddrs.assoc_id) { in sctp_getsockopt_local_addrs()
6250 asoc = sctp_id2assoc(sk, getaddrs.assoc_id); in sctp_getsockopt_local_addrs()
6692 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_context()
6693 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_context()
6747 params.assoc_id = SCTP_FUTURE_ASSOC; in sctp_getsockopt_maxseg()
6755 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_maxseg()
6756 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_maxseg()
6842 params.assoc_id = SCTP_FUTURE_ASSOC; in sctp_getsockopt_maxburst()
6850 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_maxburst()
6851 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_maxburst()
7127 ids->gaids_assoc_id[num++] = asoc->assoc_id; in sctp_getsockopt_assoc_ids()
7320 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_pr_supported()
7321 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_pr_supported()
7528 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_reconfig_supported()
7529 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_reconfig_supported()
7567 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_enable_strreset()
7568 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_enable_strreset()
7606 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_scheduler()
7607 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_scheduler()
7645 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_scheduler_value()
7687 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_interleaving_supported()
7688 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_interleaving_supported()
7781 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_asconf_supported()
7782 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_asconf_supported()
7820 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_auth_supported()
7821 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_auth_supported()
7859 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_ecn_supported()
7860 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_ecn_supported()
7898 asoc = sctp_id2assoc(sk, params.assoc_id); in sctp_getsockopt_pf_expose()
7899 if (!asoc && params.assoc_id != SCTP_FUTURE_ASSOC && in sctp_getsockopt_pf_expose()