• Home
  • Raw
  • Download

Lines Matching refs:sctp_sk

213 	af = sctp_sockaddr_af(sctp_sk(sk), addr, len);  in sctp_verify_addr()
218 if (!af->addr_valid(addr, sctp_sk(sk), NULL)) in sctp_verify_addr()
221 if (!sctp_sk(sk)->pf->send_verify(sctp_sk(sk), (addr))) in sctp_verify_addr()
244 if (!list_empty(&sctp_sk(sk)->ep->asocs)) in sctp_id2assoc()
245 asoc = list_entry(sctp_sk(sk)->ep->asocs.next, in sctp_id2assoc()
279 addr_asoc = sctp_endpoint_lookup_assoc(sctp_sk(sk)->ep, in sctp_addr_id2transport()
290 sctp_get_pf_specific(sk->sk_family)->addr_to_user(sctp_sk(sk), in sctp_addr_id2transport()
316 if (!sctp_sk(sk)->ep->base.bind_addr.port) in sctp_bind()
376 struct sctp_sock *sp = sctp_sk(sk); in sctp_do_bind()
570 sp = sctp_sk(sk); in sctp_send_asconf_add_ip()
650 sctp_sk(asoc->base.sk)); in sctp_send_asconf_add_ip()
677 struct sctp_sock *sp = sctp_sk(sk); in sctp_bindx_rem()
773 sp = sctp_sk(sk); in sctp_send_asconf_del_ip()
893 sctp_sk(asoc->base.sk)); in sctp_send_asconf_del_ip()
1166 struct sctp_sock *sp = sctp_sk(sk); in __sctp_connect()
1494 ep = sctp_sk(sk)->ep; in sctp_close()
1498 data_was_unread += sctp_queue_purge_ulpevents(&sctp_sk(sk)->pd_lobby); in sctp_close()
1659 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_sendmsg_new_asoc()
1793 struct sctp_sock *sp = sctp_sk(sk); in sctp_sendmsg_to_asoc()
1941 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_sendmsg()
2090 struct sctp_sock *sp = sctp_sk(sk); in sctp_recvmsg()
2206 sctp_sk(sk)->disable_fragments = (*val == 0) ? 0 : 1; in sctp_setsockopt_disable_fragments()
2213 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_events()
2225 asoc->subscribe = sctp_sk(sk)->subscribe; in sctp_setsockopt_events()
2262 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_autoclose()
2611 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_peer_addr_params()
2769 struct sctp_sock *sp = sctp_sk(sk); in __sctp_setsockopt_delayed_ack()
2860 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_initmsg()
2895 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_default_send_param()
2953 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_default_sndinfo()
3050 sctp_sk(sk)->nodelay = (*val == 0) ? 0 : 1; in sctp_setsockopt_nodelay()
3072 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_rtoinfo()
3176 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_associnfo()
3201 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_mappedv4()
3244 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_maxseg()
3310 sp = sctp_sk(sk); in sctp_setsockopt_peer_primary_addr()
3368 sctp_sk(sk)->adaptation_ind = adapt->ssb_adaptation_ind; in sctp_setsockopt_adaptation_layer()
3391 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_context()
3453 sctp_sk(sk)->frag_interleave = !!*val; in sctp_setsockopt_fragment_interleave()
3455 if (!sctp_sk(sk)->frag_interleave) in sctp_setsockopt_fragment_interleave()
3456 sctp_sk(sk)->ep->intl_enable = 0; in sctp_setsockopt_fragment_interleave()
3490 sctp_sk(sk)->pd_point = *val; in sctp_setsockopt_partial_delivery_point()
3510 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_maxburst()
3563 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_chunk()
3593 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_hmac_ident()
3622 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_key()
3683 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_active_key()
3731 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_del_key()
3779 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_deactivate_key()
3835 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_auto_asconf()
3915 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_paddr_thresholds()
3933 sctp_sk(sk)->recvrcvinfo = (*val == 0) ? 0 : 1; in sctp_setsockopt_recvrcvinfo()
3944 sctp_sk(sk)->recvnxtinfo = (*val == 0) ? 0 : 1; in sctp_setsockopt_recvnxtinfo()
3963 sctp_sk(sk)->ep->prsctp_enable = !!params->assoc_value; in sctp_setsockopt_pr_supported()
3972 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_default_prinfo()
4035 sctp_sk(sk)->ep->reconf_enable = !!params->assoc_value; in sctp_setsockopt_reconfig_supported()
4047 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_setsockopt_enable_strreset()
4143 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_scheduler()
4205 list_for_each_entry(asoc, &sctp_sk(sk)->ep->asocs, asocs) { in sctp_setsockopt_scheduler_value()
4221 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_interleaving_supported()
4245 if (sctp_sk(sk)->ep->base.bind_addr.port) in sctp_setsockopt_reuse_port()
4251 sctp_sk(sk)->reuse = !!*val; in sctp_setsockopt_reuse_port()
4280 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_event()
4336 ep = sctp_sk(sk)->ep; in sctp_setsockopt_asconf_supported()
4366 ep = sctp_sk(sk)->ep; in sctp_setsockopt_auth_supported()
4399 sctp_sk(sk)->ep->ecn_enable = !!params->assoc_value; in sctp_setsockopt_ecn_supported()
4427 sctp_sk(sk)->pf_expose = params->assoc_value; in sctp_setsockopt_pf_expose()
4468 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_setsockopt()
4738 sp = sctp_sk(sk); in sctp_accept()
4833 sp = sctp_sk(sk); in sctp_init_sock()
4975 sp = sctp_sk(sk); in sctp_destroy_sock()
4996 struct sctp_sock *sp = sctp_sk(sk); in sctp_destruct_sock()
5028 ep = sctp_sk(sk)->ep; in sctp_shutdown()
5048 struct sctp_sock *sp = sctp_sk(sk); in sctp_get_sctp_info()
5317 sctp_get_pf_specific(sk->sk_family)->addr_to_user(sctp_sk(sk), in sctp_getsockopt_sctp_status()
5426 val = (sctp_sk(sk)->disable_fragments == 1); in sctp_getsockopt_disable_fragments()
5454 sn_type[i] = sctp_ulpevent_type_enabled(sctp_sk(sk)->subscribe, in sctp_getsockopt_events()
5484 if (put_user(sctp_sk(sk)->autoclose, (int __user *)optval)) in sctp_getsockopt_autoclose()
5493 struct sctp_sock *sp = sctp_sk(sk); in sctp_do_peeloff()
5782 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_peer_addr_params()
5925 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_delayed_ack()
6000 if (copy_to_user(optval, &sctp_sk(sk)->initmsg, len)) in sctp_getsockopt_initmsg()
6015 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_peer_addrs()
6083 ->addr_to_user(sctp_sk(sk), &temp); in sctp_copy_laddrs()
6112 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_local_addrs()
6133 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_getsockopt_local_addrs()
6215 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_primary_addr()
6262 adaptation.ssb_adaptation_ind = sctp_sk(sk)->adaptation_ind; in sctp_getsockopt_adaptation_layer()
6295 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_default_send_param()
6341 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_default_sndinfo()
6397 val = (sctp_sk(sk)->nodelay == 1); in sctp_getsockopt_nodelay()
6444 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_rtoinfo()
6509 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_associnfo()
6544 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_mappedv4()
6583 : sctp_sk(sk)->default_rcv_context; in sctp_getsockopt_context()
6648 params.assoc_value = sctp_sk(sk)->user_frag; in sctp_getsockopt_maxseg()
6677 val = sctp_sk(sk)->frag_interleave; in sctp_getsockopt_fragment_interleave()
6701 val = sctp_sk(sk)->pd_point; in sctp_getsockopt_partial_delivery_point()
6740 params.assoc_value = asoc ? asoc->max_burst : sctp_sk(sk)->max_burst; in sctp_getsockopt_maxburst()
6757 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_hmac_ident()
6793 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_active_key()
6873 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_getsockopt_local_auth_chunks()
6929 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_assoc_number()
6966 if (sctp_sk(sk)->do_auto_asconf && sctp_is_ep_boundall(sk)) in sctp_getsockopt_auto_asconf()
6985 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_assoc_ids()
7070 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_paddr_thresholds()
7158 if (sctp_sk(sk)->recvrcvinfo) in sctp_getsockopt_recvrcvinfo()
7178 if (sctp_sk(sk)->recvnxtinfo) in sctp_getsockopt_recvnxtinfo()
7213 : sctp_sk(sk)->ep->prsctp_enable; in sctp_getsockopt_pr_supported()
7255 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_default_prinfo()
7421 : sctp_sk(sk)->ep->reconf_enable; in sctp_getsockopt_reconfig_supported()
7460 : sctp_sk(sk)->ep->strreset_enable; in sctp_getsockopt_enable_strreset()
7499 : sctp_sk(sk)->default_ss; in sctp_getsockopt_scheduler()
7580 : sctp_sk(sk)->ep->intl_enable; in sctp_getsockopt_interleaving_supported()
7604 val = sctp_sk(sk)->reuse; in sctp_getsockopt_reuse_port()
7637 subscribe = asoc ? asoc->subscribe : sctp_sk(sk)->subscribe; in sctp_getsockopt_event()
7674 : sctp_sk(sk)->ep->asconf_enable; in sctp_getsockopt_asconf_supported()
7713 : sctp_sk(sk)->ep->auth_enable; in sctp_getsockopt_auth_supported()
7752 : sctp_sk(sk)->ep->ecn_enable; in sctp_getsockopt_ecn_supported()
7791 : sctp_sk(sk)->pf_expose; in sctp_getsockopt_pf_expose()
7820 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_getsockopt()
8062 struct sctp_sock *sp = sctp_sk(sk); in sctp_get_port_local()
8157 struct sctp_sock *sp2 = sctp_sk(sk2); in sctp_get_port_local()
8231 struct sctp_af *af = sctp_sk(sk)->pf->af; in sctp_get_port()
8246 struct sctp_sock *sp = sctp_sk(sk); in sctp_listen_start()
8260 sctp_sk(sk)->hmac = tfm; in sctp_listen_start()
8306 struct sctp_endpoint *ep = sctp_sk(sk)->ep; in sctp_inet_listen()
8332 if (sk->sk_reuse || sctp_sk(sk)->reuse) in sctp_inet_listen()
8333 sctp_sk(sk)->bind_hash->fastreuse = 1; in sctp_inet_listen()
8368 struct sctp_sock *sp = sctp_sk(sk); in sctp_poll()
8460 pp = sctp_sk(sk)->bind_hash; in __sctp_put_port()
8462 sctp_sk(sk)->bind_hash = NULL; in __sctp_put_port()
8488 af = sctp_sk(sk)->pf->af; in sctp_autobind()
8705 if (list_empty(&sctp_sk(sk)->ep->asocs) && !sctp_sstate(sk, LISTENING)) in sctp_wait_for_packet()
8858 if (&tmp->asocs == &((sctp_sk(sk))->ep->asocs)) in sctp_wake_up_waiters()
9018 list_for_each_entry(asoc, &((sctp_sk(sk))->ep->asocs), asocs) { in sctp_write_space()
9110 ep = sctp_sk(sk)->ep; in sctp_wait_for_accept()
9151 if (list_empty(&sctp_sk(sk)->ep->asocs)) in sctp_wait_for_close()
9181 struct sctp_sock *sp = sctp_sk(sk); in sctp_copy_sock()
9191 sctp_sk(newsk)->reuse = sp->reuse; in sctp_copy_sock()
9249 struct sctp_sock *oldsp = sctp_sk(oldsk); in sctp_sock_migrate()
9250 struct sctp_sock *newsp = sctp_sk(newsk); in sctp_sock_migrate()
9276 pp = sctp_sk(oldsk)->bind_hash; in sctp_sock_migrate()
9278 sctp_sk(newsk)->bind_hash = pp; in sctp_sock_migrate()
9320 atomic_set(&sctp_sk(newsk)->pd_mode, assoc->ulpq.pd_mode); in sctp_sock_migrate()
9322 if (atomic_read(&sctp_sk(oldsk)->pd_mode)) { in sctp_sock_migrate()