• Home
  • Raw
  • Download

Lines Matching refs:sp

334 	struct sctp_sock *sp = sctp_sk(sk);  in sctp_do_bind()  local
335 struct sctp_endpoint *ep = sp->ep; in sctp_do_bind()
342 af = sctp_sockaddr_af(sp, addr, len); in sctp_do_bind()
359 if (!sp->pf->bind_verify(sp, addr)) in sctp_do_bind()
383 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind()
514 struct sctp_sock *sp; in sctp_send_asconf_add_ip() local
531 sp = sctp_sk(sk); in sctp_send_asconf_add_ip()
532 ep = sp->ep; in sctp_send_asconf_add_ip()
622 struct sctp_sock *sp = sctp_sk(sk); in sctp_bindx_rem() local
623 struct sctp_endpoint *ep = sp->ep; in sctp_bindx_rem()
653 if (!af->addr_valid(sa_addr, sp, NULL)) { in sctp_bindx_rem()
699 struct sctp_sock *sp; in sctp_send_asconf_del_ip() local
715 sp = sctp_sk(sk); in sctp_send_asconf_del_ip()
716 ep = sp->ep; in sctp_send_asconf_del_ip()
761 addrcnt, sp); in sctp_send_asconf_del_ip()
970 struct sctp_sock *sp; in __sctp_connect() local
987 sp = sctp_sk(sk); in __sctp_connect()
988 ep = sp->ep; in __sctp_connect()
1426 struct sctp_sock *sp; in sctp_sendmsg() local
1449 sp = sctp_sk(sk); in sctp_sendmsg()
1450 ep = sp->ep; in sctp_sendmsg()
1606 sp->initmsg.sinit_num_ostreams) { in sctp_sendmsg()
1883 struct sctp_sock *sp = sctp_sk(sk); in sctp_recvmsg() local
1924 sp->pf->event_msgname(event, msg->msg_name, addr_len); in sctp_recvmsg()
1926 sp->pf->skb_msgname(skb, msg->msg_name, addr_len); in sctp_recvmsg()
1930 if (sp->subscribe.sctp_data_io_event) in sctp_recvmsg()
2029 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_autoclose() local
2036 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose()
2142 struct sctp_sock *sp, in sctp_apply_peer_addr_params() argument
2177 sp->hbinterval = params->spp_hbinterval; in sctp_apply_peer_addr_params()
2190 sp->param_flags = in sctp_apply_peer_addr_params()
2191 (sp->param_flags & ~SPP_HB) | hb_change; in sctp_apply_peer_addr_params()
2206 sctp_frag_point(sp, params->spp_pathmtu); in sctp_apply_peer_addr_params()
2208 sp->pathmtu = params->spp_pathmtu; in sctp_apply_peer_addr_params()
2226 sp->param_flags = in sctp_apply_peer_addr_params()
2227 (sp->param_flags & ~SPP_PMTUD) | pmtud_change; in sctp_apply_peer_addr_params()
2243 sp->sackdelay = params->spp_sackdelay; in sctp_apply_peer_addr_params()
2257 sp->param_flags = in sctp_apply_peer_addr_params()
2258 (sp->param_flags & ~SPP_SACKDELAY) | in sctp_apply_peer_addr_params()
2273 sp->pathmaxrxt = params->spp_pathmaxrxt; in sctp_apply_peer_addr_params()
2286 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_peer_addr_params() local
2334 error = sctp_apply_peer_addr_params(&params, trans, asoc, sp, in sctp_setsockopt_peer_addr_params()
2347 sctp_apply_peer_addr_params(&params, trans, asoc, sp, in sctp_setsockopt_peer_addr_params()
2398 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_delayed_ack() local
2440 sp->sackdelay = params.sack_delay; in sctp_setsockopt_delayed_ack()
2441 sp->param_flags = in sctp_setsockopt_delayed_ack()
2442 (sp->param_flags & ~SPP_SACKDELAY) | in sctp_setsockopt_delayed_ack()
2453 sp->param_flags = in sctp_setsockopt_delayed_ack()
2454 (sp->param_flags & ~SPP_SACKDELAY) | in sctp_setsockopt_delayed_ack()
2464 sp->sackfreq = params.sack_freq; in sctp_setsockopt_delayed_ack()
2465 sp->param_flags = in sctp_setsockopt_delayed_ack()
2466 (sp->param_flags & ~SPP_SACKDELAY) | in sctp_setsockopt_delayed_ack()
2512 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_initmsg() local
2520 sp->initmsg.sinit_num_ostreams = sinit.sinit_num_ostreams; in sctp_setsockopt_initmsg()
2522 sp->initmsg.sinit_max_instreams = sinit.sinit_max_instreams; in sctp_setsockopt_initmsg()
2524 sp->initmsg.sinit_max_attempts = sinit.sinit_max_attempts; in sctp_setsockopt_initmsg()
2526 sp->initmsg.sinit_max_init_timeo = sinit.sinit_max_init_timeo; in sctp_setsockopt_initmsg()
2550 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_default_send_param() local
2568 sp->default_stream = info.sinfo_stream; in sctp_setsockopt_default_send_param()
2569 sp->default_flags = info.sinfo_flags; in sctp_setsockopt_default_send_param()
2570 sp->default_ppid = info.sinfo_ppid; in sctp_setsockopt_default_send_param()
2571 sp->default_context = info.sinfo_context; in sctp_setsockopt_default_send_param()
2572 sp->default_timetolive = info.sinfo_timetolive; in sctp_setsockopt_default_send_param()
2667 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_rtoinfo() local
2670 sp->rtoinfo.srto_initial = rtoinfo.srto_initial; in sctp_setsockopt_rtoinfo()
2672 sp->rtoinfo.srto_max = rtoinfo.srto_max; in sctp_setsockopt_rtoinfo()
2674 sp->rtoinfo.srto_min = rtoinfo.srto_min; in sctp_setsockopt_rtoinfo()
2741 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_associnfo() local
2744 sp->assocparams.sasoc_asocmaxrxt = in sctp_setsockopt_associnfo()
2747 sp->assocparams.sasoc_cookie_life = in sctp_setsockopt_associnfo()
2766 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_mappedv4() local
2773 sp->v4mapped = 1; in sctp_setsockopt_mappedv4()
2775 sp->v4mapped = 0; in sctp_setsockopt_mappedv4()
2811 struct sctp_sock *sp = sctp_sk(sk); in sctp_setsockopt_maxseg() local
2839 val -= sp->pf->af->net_header_len; in sctp_setsockopt_maxseg()
2846 sp->user_frag = val; in sctp_setsockopt_maxseg()
2849 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_setsockopt_maxseg()
2850 asoc->frag_point = sctp_frag_point(sp, asoc->pathmtu); in sctp_setsockopt_maxseg()
2869 struct sctp_sock *sp; in sctp_setsockopt_peer_primary_addr() local
2876 sp = sctp_sk(sk); in sctp_setsockopt_peer_primary_addr()
2877 ep = sp->ep; in sctp_setsockopt_peer_primary_addr()
2950 struct sctp_sock *sp; in sctp_setsockopt_context() local
2958 sp = sctp_sk(sk); in sctp_setsockopt_context()
2966 sp->default_rcv_context = params.assoc_value; in sctp_setsockopt_context()
3067 struct sctp_sock *sp; in sctp_setsockopt_maxburst() local
3090 sp = sctp_sk(sk); in sctp_setsockopt_maxburst()
3098 sp->max_burst = val; in sctp_setsockopt_maxburst()
3497 struct sctp_sock *sp; in sctp_accept() local
3506 sp = sctp_sk(sk); in sctp_accept()
3507 ep = sp->ep; in sctp_accept()
3530 newsk = sp->pf->create_accept_sk(sk, asoc); in sctp_accept()
3560 struct sctp_sock *sp; in sctp_init_sock() local
3564 sp = sctp_sk(sk); in sctp_init_sock()
3569 sp->type = SCTP_SOCKET_UDP; in sctp_init_sock()
3572 sp->type = SCTP_SOCKET_TCP; in sctp_init_sock()
3581 sp->default_stream = 0; in sctp_init_sock()
3582 sp->default_ppid = 0; in sctp_init_sock()
3583 sp->default_flags = 0; in sctp_init_sock()
3584 sp->default_context = 0; in sctp_init_sock()
3585 sp->default_timetolive = 0; in sctp_init_sock()
3587 sp->default_rcv_context = 0; in sctp_init_sock()
3588 sp->max_burst = sctp_max_burst; in sctp_init_sock()
3594 sp->initmsg.sinit_num_ostreams = sctp_max_outstreams; in sctp_init_sock()
3595 sp->initmsg.sinit_max_instreams = sctp_max_instreams; in sctp_init_sock()
3596 sp->initmsg.sinit_max_attempts = sctp_max_retrans_init; in sctp_init_sock()
3597 sp->initmsg.sinit_max_init_timeo = sctp_rto_max; in sctp_init_sock()
3602 sp->rtoinfo.srto_initial = sctp_rto_initial; in sctp_init_sock()
3603 sp->rtoinfo.srto_max = sctp_rto_max; in sctp_init_sock()
3604 sp->rtoinfo.srto_min = sctp_rto_min; in sctp_init_sock()
3609 sp->assocparams.sasoc_asocmaxrxt = sctp_max_retrans_association; in sctp_init_sock()
3610 sp->assocparams.sasoc_number_peer_destinations = 0; in sctp_init_sock()
3611 sp->assocparams.sasoc_peer_rwnd = 0; in sctp_init_sock()
3612 sp->assocparams.sasoc_local_rwnd = 0; in sctp_init_sock()
3613 sp->assocparams.sasoc_cookie_life = sctp_valid_cookie_life; in sctp_init_sock()
3618 memset(&sp->subscribe, 0, sizeof(struct sctp_event_subscribe)); in sctp_init_sock()
3623 sp->hbinterval = sctp_hb_interval; in sctp_init_sock()
3624 sp->pathmaxrxt = sctp_max_retrans_path; in sctp_init_sock()
3625 sp->pathmtu = 0; // allow default discovery in sctp_init_sock()
3626 sp->sackdelay = sctp_sack_timeout; in sctp_init_sock()
3627 sp->sackfreq = 2; in sctp_init_sock()
3628 sp->param_flags = SPP_HB_ENABLE | in sctp_init_sock()
3635 sp->disable_fragments = 0; in sctp_init_sock()
3638 sp->nodelay = 0; in sctp_init_sock()
3641 sp->v4mapped = 1; in sctp_init_sock()
3648 sp->autoclose = 0; in sctp_init_sock()
3651 sp->user_frag = 0; in sctp_init_sock()
3653 sp->adaptation_ind = 0; in sctp_init_sock()
3655 sp->pf = sctp_get_pf_specific(sk->sk_family); in sctp_init_sock()
3658 atomic_set(&sp->pd_mode, 0); in sctp_init_sock()
3659 skb_queue_head_init(&sp->pd_lobby); in sctp_init_sock()
3660 sp->frag_interleave = 0; in sctp_init_sock()
3670 sp->ep = ep; in sctp_init_sock()
3671 sp->hmac = NULL; in sctp_init_sock()
4120 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_peer_addr_params() local
4170 params.spp_hbinterval = sp->hbinterval; in sctp_getsockopt_peer_addr_params()
4171 params.spp_pathmtu = sp->pathmtu; in sctp_getsockopt_peer_addr_params()
4172 params.spp_sackdelay = sp->sackdelay; in sctp_getsockopt_peer_addr_params()
4173 params.spp_pathmaxrxt = sp->pathmaxrxt; in sctp_getsockopt_peer_addr_params()
4176 params.spp_flags = sp->param_flags; in sctp_getsockopt_peer_addr_params()
4229 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_delayed_ack() local
4266 if (sp->param_flags & SPP_SACKDELAY_ENABLE) { in sctp_getsockopt_delayed_ack()
4267 params.sack_delay = sp->sackdelay; in sctp_getsockopt_delayed_ack()
4268 params.sack_freq = sp->sackfreq; in sctp_getsockopt_delayed_ack()
4350 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_peer_addrs_old() local
4375 sctp_get_pf_specific(sk->sk_family)->addr_v4map(sp, &temp); in sctp_getsockopt_peer_addrs_old()
4401 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_peer_addrs() local
4423 sctp_get_pf_specific(sk->sk_family)->addr_v4map(sp, &temp); in sctp_getsockopt_peer_addrs()
4618 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_local_addrs_old() local
4686 sctp_get_pf_specific(sk->sk_family)->addr_v4map(sp, &temp); in sctp_getsockopt_local_addrs_old()
4722 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_local_addrs() local
4782 sctp_get_pf_specific(sk->sk_family)->addr_v4map(sp, &temp); in sctp_getsockopt_local_addrs()
4822 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_primary_addr() local
4842 sctp_get_pf_specific(sk->sk_family)->addr_v4map(sp, in sctp_getsockopt_primary_addr()
4904 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_default_send_param() local
4925 info.sinfo_stream = sp->default_stream; in sctp_getsockopt_default_send_param()
4926 info.sinfo_flags = sp->default_flags; in sctp_getsockopt_default_send_param()
4927 info.sinfo_ppid = sp->default_ppid; in sctp_getsockopt_default_send_param()
4928 info.sinfo_context = sp->default_context; in sctp_getsockopt_default_send_param()
4929 info.sinfo_timetolive = sp->default_timetolive; in sctp_getsockopt_default_send_param()
5005 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_rtoinfo() local
5007 rtoinfo.srto_initial = sp->rtoinfo.srto_initial; in sctp_getsockopt_rtoinfo()
5008 rtoinfo.srto_max = sp->rtoinfo.srto_max; in sctp_getsockopt_rtoinfo()
5009 rtoinfo.srto_min = sp->rtoinfo.srto_min; in sctp_getsockopt_rtoinfo()
5072 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_associnfo() local
5074 assocparams.sasoc_asocmaxrxt = sp->assocparams.sasoc_asocmaxrxt; in sctp_getsockopt_associnfo()
5075 assocparams.sasoc_peer_rwnd = sp->assocparams.sasoc_peer_rwnd; in sctp_getsockopt_associnfo()
5076 assocparams.sasoc_local_rwnd = sp->assocparams.sasoc_local_rwnd; in sctp_getsockopt_associnfo()
5078 sp->assocparams.sasoc_cookie_life; in sctp_getsockopt_associnfo()
5080 sp->assocparams. in sctp_getsockopt_associnfo()
5107 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_mappedv4() local
5113 val = sp->v4mapped; in sctp_getsockopt_mappedv4()
5130 struct sctp_sock *sp; in sctp_getsockopt_context() local
5141 sp = sctp_sk(sk); in sctp_getsockopt_context()
5149 params.assoc_value = sp->default_rcv_context; in sctp_getsockopt_context()
5284 struct sctp_sock *sp; in sctp_getsockopt_maxburst() local
5302 sp = sctp_sk(sk); in sctp_getsockopt_maxburst()
5310 params.assoc_value = sp->max_burst; in sctp_getsockopt_maxburst()
5484 struct sctp_sock *sp = sctp_sk(sk); in sctp_getsockopt_assoc_number() local
5496 list_for_each_entry(asoc, &(sp->ep->asocs), asocs) { in sctp_getsockopt_assoc_number()
5860 struct sctp_sock *sp = sctp_sk(sk); in sctp_seqpacket_listen() local
5861 struct sctp_endpoint *ep = sp->ep; in sctp_seqpacket_listen()
5919 struct sctp_sock *sp = sctp_sk(sk); in sctp_stream_listen() local
5920 struct sctp_endpoint *ep = sp->ep; in sctp_stream_listen()
6029 struct sctp_sock *sp = sctp_sk(sk); in sctp_poll() local
6038 return (!list_empty(&sp->ep->asocs)) ? in sctp_poll()