Lines Matching refs:optlen
1385 int __user *optlen) in sctp_getsockopt_connectx3() argument
1418 if (put_user(sizeof(assoc_id), optlen)) in sctp_getsockopt_connectx3()
2198 unsigned int optlen) in sctp_setsockopt_disable_fragments() argument
2202 if (optlen < sizeof(int)) in sctp_setsockopt_disable_fragments()
2214 unsigned int optlen) in sctp_setsockopt_events() argument
2222 if (optlen > sizeof(struct sctp_event_subscribe)) in sctp_setsockopt_events()
2225 if (copy_from_user(&subscribe, optval, optlen)) in sctp_setsockopt_events()
2228 for (i = 0; i < optlen; i++) in sctp_setsockopt_events()
2268 unsigned int optlen) in sctp_setsockopt_autoclose() argument
2276 if (optlen != sizeof(int)) in sctp_setsockopt_autoclose()
2278 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose()
2617 unsigned int optlen) in sctp_setsockopt_peer_addr_params() argument
2626 if (optlen == sizeof(params)) { in sctp_setsockopt_peer_addr_params()
2627 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_peer_addr_params()
2629 } else if (optlen == ALIGN(offsetof(struct sctp_paddrparams, in sctp_setsockopt_peer_addr_params()
2631 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_peer_addr_params()
2784 char __user *optval, unsigned int optlen) in sctp_setsockopt_delayed_ack() argument
2790 if (optlen == sizeof(struct sctp_sack_info)) { in sctp_setsockopt_delayed_ack()
2791 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_delayed_ack()
2796 } else if (optlen == sizeof(struct sctp_assoc_value)) { in sctp_setsockopt_delayed_ack()
2802 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_delayed_ack()
2870 static int sctp_setsockopt_initmsg(struct sock *sk, char __user *optval, unsigned int optlen) in sctp_setsockopt_initmsg() argument
2875 if (optlen != sizeof(struct sctp_initmsg)) in sctp_setsockopt_initmsg()
2877 if (copy_from_user(&sinit, optval, optlen)) in sctp_setsockopt_initmsg()
2908 unsigned int optlen) in sctp_setsockopt_default_send_param() argument
2914 if (optlen != sizeof(info)) in sctp_setsockopt_default_send_param()
2916 if (copy_from_user(&info, optval, optlen)) in sctp_setsockopt_default_send_param()
2969 unsigned int optlen) in sctp_setsockopt_default_sndinfo() argument
2975 if (optlen != sizeof(info)) in sctp_setsockopt_default_sndinfo()
2977 if (copy_from_user(&info, optval, optlen)) in sctp_setsockopt_default_sndinfo()
3029 unsigned int optlen) in sctp_setsockopt_primary_addr() argument
3036 if (optlen != sizeof(struct sctp_prim)) in sctp_setsockopt_primary_addr()
3071 unsigned int optlen) in sctp_setsockopt_nodelay() argument
3075 if (optlen < sizeof(int)) in sctp_setsockopt_nodelay()
3096 static int sctp_setsockopt_rtoinfo(struct sock *sk, char __user *optval, unsigned int optlen) in sctp_setsockopt_rtoinfo() argument
3103 if (optlen != sizeof (struct sctp_rtoinfo)) in sctp_setsockopt_rtoinfo()
3106 if (copy_from_user(&rtoinfo, optval, optlen)) in sctp_setsockopt_rtoinfo()
3162 static int sctp_setsockopt_associnfo(struct sock *sk, char __user *optval, unsigned int optlen) in sctp_setsockopt_associnfo() argument
3168 if (optlen != sizeof(struct sctp_assocparams)) in sctp_setsockopt_associnfo()
3170 if (copy_from_user(&assocparams, optval, optlen)) in sctp_setsockopt_associnfo()
3230 static int sctp_setsockopt_mappedv4(struct sock *sk, char __user *optval, unsigned int optlen) in sctp_setsockopt_mappedv4() argument
3235 if (optlen < sizeof(int)) in sctp_setsockopt_mappedv4()
3274 static int sctp_setsockopt_maxseg(struct sock *sk, char __user *optval, unsigned int optlen) in sctp_setsockopt_maxseg() argument
3281 if (optlen == sizeof(int)) { in sctp_setsockopt_maxseg()
3287 if (copy_from_user(&val, optval, optlen)) in sctp_setsockopt_maxseg()
3290 } else if (optlen == sizeof(struct sctp_assoc_value)) { in sctp_setsockopt_maxseg()
3291 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_maxseg()
3335 unsigned int optlen) in sctp_setsockopt_peer_primary_addr() argument
3349 if (optlen != sizeof(struct sctp_setpeerprim)) in sctp_setsockopt_peer_primary_addr()
3352 if (copy_from_user(&prim, optval, optlen)) in sctp_setsockopt_peer_primary_addr()
3399 unsigned int optlen) in sctp_setsockopt_adaptation_layer() argument
3403 if (optlen != sizeof(struct sctp_setadaptation)) in sctp_setsockopt_adaptation_layer()
3405 if (copy_from_user(&adaptation, optval, optlen)) in sctp_setsockopt_adaptation_layer()
3428 unsigned int optlen) in sctp_setsockopt_context() argument
3434 if (optlen != sizeof(struct sctp_assoc_value)) in sctp_setsockopt_context()
3436 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_context()
3491 unsigned int optlen) in sctp_setsockopt_fragment_interleave() argument
3495 if (optlen != sizeof(int)) in sctp_setsockopt_fragment_interleave()
3527 unsigned int optlen) in sctp_setsockopt_partial_delivery_point() argument
3531 if (optlen != sizeof(u32)) in sctp_setsockopt_partial_delivery_point()
3560 unsigned int optlen) in sctp_setsockopt_maxburst() argument
3566 if (optlen == sizeof(int)) { in sctp_setsockopt_maxburst()
3572 if (copy_from_user(¶ms.assoc_value, optval, optlen)) in sctp_setsockopt_maxburst()
3575 } else if (optlen == sizeof(struct sctp_assoc_value)) { in sctp_setsockopt_maxburst()
3576 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_maxburst()
3616 unsigned int optlen) in sctp_setsockopt_auth_chunk() argument
3624 if (optlen != sizeof(struct sctp_authchunk)) in sctp_setsockopt_auth_chunk()
3626 if (copy_from_user(&val, optval, optlen)) in sctp_setsockopt_auth_chunk()
3649 unsigned int optlen) in sctp_setsockopt_hmac_ident() argument
3659 if (optlen < sizeof(struct sctp_hmacalgo)) in sctp_setsockopt_hmac_ident()
3661 optlen = min_t(unsigned int, optlen, sizeof(struct sctp_hmacalgo) + in sctp_setsockopt_hmac_ident()
3664 hmacs = memdup_user(optval, optlen); in sctp_setsockopt_hmac_ident()
3670 (idents * sizeof(u16)) > (optlen - sizeof(struct sctp_hmacalgo))) { in sctp_setsockopt_hmac_ident()
3689 unsigned int optlen) in sctp_setsockopt_auth_key() argument
3696 if (optlen <= sizeof(struct sctp_authkey)) in sctp_setsockopt_auth_key()
3701 optlen = min_t(unsigned int, optlen, USHRT_MAX + sizeof(*authkey)); in sctp_setsockopt_auth_key()
3703 authkey = memdup_user(optval, optlen); in sctp_setsockopt_auth_key()
3707 if (authkey->sca_keylength > optlen - sizeof(*authkey)) in sctp_setsockopt_auth_key()
3755 unsigned int optlen) in sctp_setsockopt_active_key() argument
3762 if (optlen != sizeof(struct sctp_authkeyid)) in sctp_setsockopt_active_key()
3764 if (copy_from_user(&val, optval, optlen)) in sctp_setsockopt_active_key()
3806 unsigned int optlen) in sctp_setsockopt_del_key() argument
3813 if (optlen != sizeof(struct sctp_authkeyid)) in sctp_setsockopt_del_key()
3815 if (copy_from_user(&val, optval, optlen)) in sctp_setsockopt_del_key()
3856 unsigned int optlen) in sctp_setsockopt_deactivate_key() argument
3863 if (optlen != sizeof(struct sctp_authkeyid)) in sctp_setsockopt_deactivate_key()
3865 if (copy_from_user(&val, optval, optlen)) in sctp_setsockopt_deactivate_key()
3915 unsigned int optlen) in sctp_setsockopt_auto_asconf() argument
3920 if (optlen < sizeof(int)) in sctp_setsockopt_auto_asconf()
3951 unsigned int optlen) in sctp_setsockopt_paddr_thresholds() argument
3957 if (optlen < sizeof(struct sctp_paddrthlds)) in sctp_setsockopt_paddr_thresholds()
4005 unsigned int optlen) in sctp_setsockopt_recvrcvinfo() argument
4009 if (optlen < sizeof(int)) in sctp_setsockopt_recvrcvinfo()
4021 unsigned int optlen) in sctp_setsockopt_recvnxtinfo() argument
4025 if (optlen < sizeof(int)) in sctp_setsockopt_recvnxtinfo()
4037 unsigned int optlen) in sctp_setsockopt_pr_supported() argument
4042 if (optlen != sizeof(params)) in sctp_setsockopt_pr_supported()
4045 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_pr_supported()
4060 unsigned int optlen) in sctp_setsockopt_default_prinfo() argument
4067 if (optlen != sizeof(info)) in sctp_setsockopt_default_prinfo()
4117 unsigned int optlen) in sctp_setsockopt_reconfig_supported() argument
4123 if (optlen != sizeof(params)) in sctp_setsockopt_reconfig_supported()
4126 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_reconfig_supported()
4146 unsigned int optlen) in sctp_setsockopt_enable_strreset() argument
4153 if (optlen != sizeof(params)) in sctp_setsockopt_enable_strreset()
4156 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_enable_strreset()
4194 unsigned int optlen) in sctp_setsockopt_reset_streams() argument
4200 if (optlen < sizeof(*params)) in sctp_setsockopt_reset_streams()
4203 optlen = min_t(unsigned int, optlen, USHRT_MAX + in sctp_setsockopt_reset_streams()
4206 params = memdup_user(optval, optlen); in sctp_setsockopt_reset_streams()
4211 optlen - sizeof(*params)) in sctp_setsockopt_reset_streams()
4227 unsigned int optlen) in sctp_setsockopt_reset_assoc() argument
4233 if (optlen != sizeof(associd)) in sctp_setsockopt_reset_assoc()
4236 if (copy_from_user(&associd, optval, optlen)) { in sctp_setsockopt_reset_assoc()
4253 unsigned int optlen) in sctp_setsockopt_add_streams() argument
4259 if (optlen != sizeof(params)) in sctp_setsockopt_add_streams()
4262 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_add_streams()
4279 unsigned int optlen) in sctp_setsockopt_scheduler() argument
4286 if (optlen < sizeof(params)) in sctp_setsockopt_scheduler()
4289 optlen = sizeof(params); in sctp_setsockopt_scheduler()
4290 if (copy_from_user(¶ms, optval, optlen)) in sctp_setsockopt_scheduler()
4327 unsigned int optlen) in sctp_setsockopt_scheduler_value() argument
4333 if (optlen < sizeof(params)) in sctp_setsockopt_scheduler_value()
4336 optlen = sizeof(params); in sctp_setsockopt_scheduler_value()
4337 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_scheduler_value()
4368 unsigned int optlen) in sctp_setsockopt_interleaving_supported() argument
4375 if (optlen < sizeof(params)) in sctp_setsockopt_interleaving_supported()
4378 optlen = sizeof(params); in sctp_setsockopt_interleaving_supported()
4379 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_interleaving_supported()
4403 unsigned int optlen) in sctp_setsockopt_reuse_port() argument
4413 if (optlen < sizeof(int)) in sctp_setsockopt_reuse_port()
4446 unsigned int optlen) in sctp_setsockopt_event() argument
4453 if (optlen < sizeof(param)) in sctp_setsockopt_event()
4456 optlen = sizeof(param); in sctp_setsockopt_event()
4457 if (copy_from_user(¶m, optval, optlen)) in sctp_setsockopt_event()
4495 unsigned int optlen) in sctp_setsockopt_asconf_supported() argument
4502 if (optlen != sizeof(params)) in sctp_setsockopt_asconf_supported()
4505 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_asconf_supported()
4531 unsigned int optlen) in sctp_setsockopt_auth_supported() argument
4538 if (optlen != sizeof(params)) in sctp_setsockopt_auth_supported()
4541 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_auth_supported()
4571 unsigned int optlen) in sctp_setsockopt_ecn_supported() argument
4577 if (optlen != sizeof(params)) in sctp_setsockopt_ecn_supported()
4580 if (copy_from_user(¶ms, optval, optlen)) { in sctp_setsockopt_ecn_supported()
4617 char __user *optval, unsigned int optlen) in sctp_setsockopt() argument
4631 retval = af->setsockopt(sk, level, optname, optval, optlen); in sctp_setsockopt()
4641 optlen, SCTP_BINDX_ADD_ADDR); in sctp_setsockopt()
4647 optlen, SCTP_BINDX_REM_ADDR); in sctp_setsockopt()
4654 optlen); in sctp_setsockopt()
4661 optlen); in sctp_setsockopt()
4665 retval = sctp_setsockopt_disable_fragments(sk, optval, optlen); in sctp_setsockopt()
4669 retval = sctp_setsockopt_events(sk, optval, optlen); in sctp_setsockopt()
4673 retval = sctp_setsockopt_autoclose(sk, optval, optlen); in sctp_setsockopt()
4677 retval = sctp_setsockopt_peer_addr_params(sk, optval, optlen); in sctp_setsockopt()
4681 retval = sctp_setsockopt_delayed_ack(sk, optval, optlen); in sctp_setsockopt()
4684 retval = sctp_setsockopt_partial_delivery_point(sk, optval, optlen); in sctp_setsockopt()
4688 retval = sctp_setsockopt_initmsg(sk, optval, optlen); in sctp_setsockopt()
4692 optlen); in sctp_setsockopt()
4695 retval = sctp_setsockopt_default_sndinfo(sk, optval, optlen); in sctp_setsockopt()
4698 retval = sctp_setsockopt_primary_addr(sk, optval, optlen); in sctp_setsockopt()
4701 retval = sctp_setsockopt_peer_primary_addr(sk, optval, optlen); in sctp_setsockopt()
4704 retval = sctp_setsockopt_nodelay(sk, optval, optlen); in sctp_setsockopt()
4707 retval = sctp_setsockopt_rtoinfo(sk, optval, optlen); in sctp_setsockopt()
4710 retval = sctp_setsockopt_associnfo(sk, optval, optlen); in sctp_setsockopt()
4713 retval = sctp_setsockopt_mappedv4(sk, optval, optlen); in sctp_setsockopt()
4716 retval = sctp_setsockopt_maxseg(sk, optval, optlen); in sctp_setsockopt()
4719 retval = sctp_setsockopt_adaptation_layer(sk, optval, optlen); in sctp_setsockopt()
4722 retval = sctp_setsockopt_context(sk, optval, optlen); in sctp_setsockopt()
4725 retval = sctp_setsockopt_fragment_interleave(sk, optval, optlen); in sctp_setsockopt()
4728 retval = sctp_setsockopt_maxburst(sk, optval, optlen); in sctp_setsockopt()
4731 retval = sctp_setsockopt_auth_chunk(sk, optval, optlen); in sctp_setsockopt()
4734 retval = sctp_setsockopt_hmac_ident(sk, optval, optlen); in sctp_setsockopt()
4737 retval = sctp_setsockopt_auth_key(sk, optval, optlen); in sctp_setsockopt()
4740 retval = sctp_setsockopt_active_key(sk, optval, optlen); in sctp_setsockopt()
4743 retval = sctp_setsockopt_del_key(sk, optval, optlen); in sctp_setsockopt()
4746 retval = sctp_setsockopt_deactivate_key(sk, optval, optlen); in sctp_setsockopt()
4749 retval = sctp_setsockopt_auto_asconf(sk, optval, optlen); in sctp_setsockopt()
4752 retval = sctp_setsockopt_paddr_thresholds(sk, optval, optlen); in sctp_setsockopt()
4755 retval = sctp_setsockopt_recvrcvinfo(sk, optval, optlen); in sctp_setsockopt()
4758 retval = sctp_setsockopt_recvnxtinfo(sk, optval, optlen); in sctp_setsockopt()
4761 retval = sctp_setsockopt_pr_supported(sk, optval, optlen); in sctp_setsockopt()
4764 retval = sctp_setsockopt_default_prinfo(sk, optval, optlen); in sctp_setsockopt()
4767 retval = sctp_setsockopt_reconfig_supported(sk, optval, optlen); in sctp_setsockopt()
4770 retval = sctp_setsockopt_enable_strreset(sk, optval, optlen); in sctp_setsockopt()
4773 retval = sctp_setsockopt_reset_streams(sk, optval, optlen); in sctp_setsockopt()
4776 retval = sctp_setsockopt_reset_assoc(sk, optval, optlen); in sctp_setsockopt()
4779 retval = sctp_setsockopt_add_streams(sk, optval, optlen); in sctp_setsockopt()
4782 retval = sctp_setsockopt_scheduler(sk, optval, optlen); in sctp_setsockopt()
4785 retval = sctp_setsockopt_scheduler_value(sk, optval, optlen); in sctp_setsockopt()
4789 optlen); in sctp_setsockopt()
4792 retval = sctp_setsockopt_reuse_port(sk, optval, optlen); in sctp_setsockopt()
4795 retval = sctp_setsockopt_event(sk, optval, optlen); in sctp_setsockopt()
4798 retval = sctp_setsockopt_asconf_supported(sk, optval, optlen); in sctp_setsockopt()
4801 retval = sctp_setsockopt_auth_supported(sk, optval, optlen); in sctp_setsockopt()
4804 retval = sctp_setsockopt_ecn_supported(sk, optval, optlen); in sctp_setsockopt()
5430 int __user *optlen) in sctp_getsockopt_sctp_status() argument
5482 if (put_user(len, optlen)) { in sctp_getsockopt_sctp_status()
5510 int __user *optlen) in sctp_getsockopt_peer_addr_info() argument
5542 if (put_user(len, optlen)) { in sctp_getsockopt_peer_addr_info()
5564 char __user *optval, int __user *optlen) in sctp_getsockopt_disable_fragments() argument
5573 if (put_user(len, optlen)) in sctp_getsockopt_disable_fragments()
5586 int __user *optlen) in sctp_getsockopt_events() argument
5596 if (put_user(len, optlen)) in sctp_getsockopt_events()
5620 …ic int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *optlen) in sctp_getsockopt_autoclose() argument
5628 if (put_user(len, optlen)) in sctp_getsockopt_autoclose()
5722 …atic int sctp_getsockopt_peeloff(struct sock *sk, int len, char __user *optval, int __user *optlen) in sctp_getsockopt_peeloff() argument
5739 if (put_user(len, optlen)) { in sctp_getsockopt_peeloff()
5756 char __user *optval, int __user *optlen) in sctp_getsockopt_peeloff_flags() argument
5774 if (put_user(len, optlen)) { in sctp_getsockopt_peeloff_flags()
5923 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_addr_params() argument
6024 if (put_user(len, optlen)) in sctp_getsockopt_peer_addr_params()
6067 int __user *optlen) in sctp_getsockopt_delayed_ack() argument
6122 if (put_user(len, optlen)) in sctp_getsockopt_delayed_ack()
6139 …atic int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen) in sctp_getsockopt_initmsg() argument
6144 if (put_user(len, optlen)) in sctp_getsockopt_initmsg()
6153 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_addrs() argument
6197 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_peer_addrs()
6249 char __user *optval, int __user *optlen) in sctp_getsockopt_local_addrs() argument
6343 if (put_user(bytes_copied, optlen)) in sctp_getsockopt_local_addrs()
6357 char __user *optval, int __user *optlen) in sctp_getsockopt_primary_addr() argument
6384 if (put_user(len, optlen)) in sctp_getsockopt_primary_addr()
6399 char __user *optval, int __user *optlen) in sctp_getsockopt_adaptation_layer() argument
6410 if (put_user(len, optlen)) in sctp_getsockopt_adaptation_layer()
6439 int __user *optlen) in sctp_getsockopt_default_send_param() argument
6472 if (put_user(len, optlen)) in sctp_getsockopt_default_send_param()
6485 int __user *optlen) in sctp_getsockopt_default_sndinfo() argument
6516 if (put_user(len, optlen)) in sctp_getsockopt_default_sndinfo()
6535 char __user *optval, int __user *optlen) in sctp_getsockopt_nodelay() argument
6544 if (put_user(len, optlen)) in sctp_getsockopt_nodelay()
6565 int __user *optlen) { in sctp_getsockopt_rtoinfo() argument
6597 if (put_user(len, optlen)) in sctp_getsockopt_rtoinfo()
6619 int __user *optlen) in sctp_getsockopt_associnfo() argument
6667 if (put_user(len, optlen)) in sctp_getsockopt_associnfo()
6687 char __user *optval, int __user *optlen) in sctp_getsockopt_mappedv4() argument
6697 if (put_user(len, optlen)) in sctp_getsockopt_mappedv4()
6710 char __user *optval, int __user *optlen) in sctp_getsockopt_context() argument
6731 if (put_user(len, optlen)) in sctp_getsockopt_context()
6767 char __user *optval, int __user *optlen) in sctp_getsockopt_maxseg() argument
6796 if (put_user(len, optlen)) in sctp_getsockopt_maxseg()
6814 char __user *optval, int __user *optlen) in sctp_getsockopt_fragment_interleave() argument
6824 if (put_user(len, optlen)) in sctp_getsockopt_fragment_interleave()
6838 int __user *optlen) in sctp_getsockopt_partial_delivery_point() argument
6848 if (put_user(len, optlen)) in sctp_getsockopt_partial_delivery_point()
6862 int __user *optlen) in sctp_getsockopt_maxburst() argument
6901 char __user *optval, int __user *optlen) in sctp_getsockopt_hmac_ident() argument
6923 if (put_user(len, optlen)) in sctp_getsockopt_hmac_ident()
6937 char __user *optval, int __user *optlen) in sctp_getsockopt_active_key() argument
6964 if (put_user(len, optlen)) in sctp_getsockopt_active_key()
6973 char __user *optval, int __user *optlen) in sctp_getsockopt_peer_auth_chunks() argument
7009 if (put_user(len, optlen)) in sctp_getsockopt_peer_auth_chunks()
7017 char __user *optval, int __user *optlen) in sctp_getsockopt_local_auth_chunks() argument
7059 if (put_user(len, optlen)) in sctp_getsockopt_local_auth_chunks()
7073 char __user *optval, int __user *optlen) in sctp_getsockopt_assoc_number() argument
7091 if (put_user(len, optlen)) in sctp_getsockopt_assoc_number()
7104 char __user *optval, int __user *optlen) in sctp_getsockopt_auto_asconf() argument
7114 if (put_user(len, optlen)) in sctp_getsockopt_auto_asconf()
7129 char __user *optval, int __user *optlen) in sctp_getsockopt_assoc_ids() argument
7161 if (put_user(len, optlen) || copy_to_user(optval, ids, len)) { in sctp_getsockopt_assoc_ids()
7180 int __user *optlen) in sctp_getsockopt_paddr_thresholds() argument
7220 if (put_user(len, optlen) || copy_to_user(optval, &val, len)) in sctp_getsockopt_paddr_thresholds()
7234 int __user *optlen) in sctp_getsockopt_assoc_stats() argument
7279 if (put_user(len, optlen)) in sctp_getsockopt_assoc_stats()
7292 int __user *optlen) in sctp_getsockopt_recvrcvinfo() argument
7302 if (put_user(len, optlen)) in sctp_getsockopt_recvrcvinfo()
7312 int __user *optlen) in sctp_getsockopt_recvnxtinfo() argument
7322 if (put_user(len, optlen)) in sctp_getsockopt_recvnxtinfo()
7332 int __user *optlen) in sctp_getsockopt_pr_supported() argument
7357 if (put_user(len, optlen)) in sctp_getsockopt_pr_supported()
7371 int __user *optlen) in sctp_getsockopt_default_prinfo() argument
7403 if (put_user(len, optlen)) in sctp_getsockopt_default_prinfo()
7417 int __user *optlen) in sctp_getsockopt_pr_assocstatus() argument
7458 if (put_user(len, optlen)) { in sctp_getsockopt_pr_assocstatus()
7476 int __user *optlen) in sctp_getsockopt_pr_streamstatus() argument
7527 if (put_user(len, optlen) || copy_to_user(optval, ¶ms, len)) { in sctp_getsockopt_pr_streamstatus()
7540 int __user *optlen) in sctp_getsockopt_reconfig_supported() argument
7565 if (put_user(len, optlen)) in sctp_getsockopt_reconfig_supported()
7579 int __user *optlen) in sctp_getsockopt_enable_strreset() argument
7604 if (put_user(len, optlen)) in sctp_getsockopt_enable_strreset()
7618 int __user *optlen) in sctp_getsockopt_scheduler() argument
7643 if (put_user(len, optlen)) in sctp_getsockopt_scheduler()
7657 int __user *optlen) in sctp_getsockopt_scheduler_value() argument
7683 if (put_user(len, optlen)) { in sctp_getsockopt_scheduler_value()
7699 int __user *optlen) in sctp_getsockopt_interleaving_supported() argument
7724 if (put_user(len, optlen)) in sctp_getsockopt_interleaving_supported()
7738 int __user *optlen) in sctp_getsockopt_reuse_port() argument
7747 if (put_user(len, optlen)) in sctp_getsockopt_reuse_port()
7757 int __user *optlen) in sctp_getsockopt_event() argument
7782 if (put_user(len, optlen)) in sctp_getsockopt_event()
7793 int __user *optlen) in sctp_getsockopt_asconf_supported() argument
7818 if (put_user(len, optlen)) in sctp_getsockopt_asconf_supported()
7832 int __user *optlen) in sctp_getsockopt_auth_supported() argument
7857 if (put_user(len, optlen)) in sctp_getsockopt_auth_supported()
7871 int __user *optlen) in sctp_getsockopt_ecn_supported() argument
7896 if (put_user(len, optlen)) in sctp_getsockopt_ecn_supported()
7909 char __user *optval, int __user *optlen) in sctp_getsockopt() argument
7925 retval = af->getsockopt(sk, level, optname, optval, optlen); in sctp_getsockopt()
7929 if (get_user(len, optlen)) in sctp_getsockopt()
7939 retval = sctp_getsockopt_sctp_status(sk, len, optval, optlen); in sctp_getsockopt()
7943 optlen); in sctp_getsockopt()
7946 retval = sctp_getsockopt_events(sk, len, optval, optlen); in sctp_getsockopt()
7949 retval = sctp_getsockopt_autoclose(sk, len, optval, optlen); in sctp_getsockopt()
7952 retval = sctp_getsockopt_peeloff(sk, len, optval, optlen); in sctp_getsockopt()
7955 retval = sctp_getsockopt_peeloff_flags(sk, len, optval, optlen); in sctp_getsockopt()
7959 optlen); in sctp_getsockopt()
7963 optlen); in sctp_getsockopt()
7966 retval = sctp_getsockopt_initmsg(sk, len, optval, optlen); in sctp_getsockopt()
7970 optlen); in sctp_getsockopt()
7974 optlen); in sctp_getsockopt()
7977 retval = sctp_getsockopt_connectx3(sk, len, optval, optlen); in sctp_getsockopt()
7981 optval, optlen); in sctp_getsockopt()
7985 optval, optlen); in sctp_getsockopt()
7988 retval = sctp_getsockopt_primary_addr(sk, len, optval, optlen); in sctp_getsockopt()
7991 retval = sctp_getsockopt_nodelay(sk, len, optval, optlen); in sctp_getsockopt()
7994 retval = sctp_getsockopt_rtoinfo(sk, len, optval, optlen); in sctp_getsockopt()
7997 retval = sctp_getsockopt_associnfo(sk, len, optval, optlen); in sctp_getsockopt()
8000 retval = sctp_getsockopt_mappedv4(sk, len, optval, optlen); in sctp_getsockopt()
8003 retval = sctp_getsockopt_maxseg(sk, len, optval, optlen); in sctp_getsockopt()
8007 optlen); in sctp_getsockopt()
8011 optlen); in sctp_getsockopt()
8014 retval = sctp_getsockopt_context(sk, len, optval, optlen); in sctp_getsockopt()
8018 optlen); in sctp_getsockopt()
8022 optlen); in sctp_getsockopt()
8025 retval = sctp_getsockopt_maxburst(sk, len, optval, optlen); in sctp_getsockopt()
8034 retval = sctp_getsockopt_hmac_ident(sk, len, optval, optlen); in sctp_getsockopt()
8037 retval = sctp_getsockopt_active_key(sk, len, optval, optlen); in sctp_getsockopt()
8041 optlen); in sctp_getsockopt()
8045 optlen); in sctp_getsockopt()
8048 retval = sctp_getsockopt_assoc_number(sk, len, optval, optlen); in sctp_getsockopt()
8051 retval = sctp_getsockopt_assoc_ids(sk, len, optval, optlen); in sctp_getsockopt()
8054 retval = sctp_getsockopt_auto_asconf(sk, len, optval, optlen); in sctp_getsockopt()
8057 retval = sctp_getsockopt_paddr_thresholds(sk, optval, len, optlen); in sctp_getsockopt()
8060 retval = sctp_getsockopt_assoc_stats(sk, len, optval, optlen); in sctp_getsockopt()
8063 retval = sctp_getsockopt_recvrcvinfo(sk, len, optval, optlen); in sctp_getsockopt()
8066 retval = sctp_getsockopt_recvnxtinfo(sk, len, optval, optlen); in sctp_getsockopt()
8069 retval = sctp_getsockopt_pr_supported(sk, len, optval, optlen); in sctp_getsockopt()
8073 optlen); in sctp_getsockopt()
8077 optlen); in sctp_getsockopt()
8081 optlen); in sctp_getsockopt()
8085 optlen); in sctp_getsockopt()
8089 optlen); in sctp_getsockopt()
8093 optlen); in sctp_getsockopt()
8097 optlen); in sctp_getsockopt()
8101 optlen); in sctp_getsockopt()
8104 retval = sctp_getsockopt_reuse_port(sk, len, optval, optlen); in sctp_getsockopt()
8107 retval = sctp_getsockopt_event(sk, len, optval, optlen); in sctp_getsockopt()
8111 optlen); in sctp_getsockopt()
8115 optlen); in sctp_getsockopt()
8118 retval = sctp_getsockopt_ecn_supported(sk, len, optval, optlen); in sctp_getsockopt()