Home
last modified time | relevance | path

Searched refs:optval (Results 1 – 25 of 65) sorted by relevance

123

/net/sctp/
Dsocket.c1436 char __user *optval, in sctp_getsockopt_connectx3() argument
1449 if (copy_from_user(&param32, optval, sizeof(param32))) in sctp_getsockopt_connectx3()
1460 if (copy_from_user(&param, optval, sizeof(param))) in sctp_getsockopt_connectx3()
1468 if (copy_to_user(optval, &assoc_id, sizeof(assoc_id))) in sctp_getsockopt_connectx3()
2232 char __user *optval, in sctp_setsockopt_disable_fragments() argument
2240 if (get_user(val, (int __user *)optval)) in sctp_setsockopt_disable_fragments()
2248 static int sctp_setsockopt_events(struct sock *sk, char __user *optval, in sctp_setsockopt_events() argument
2256 if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen)) in sctp_setsockopt_events()
2291 static int sctp_setsockopt_autoclose(struct sock *sk, char __user *optval, in sctp_setsockopt_autoclose() argument
2302 if (copy_from_user(&sp->autoclose, optval, optlen)) in sctp_setsockopt_autoclose()
[all …]
/net/ipv6/
Dipv6_sockglue.c142 char __user *optval, unsigned int optlen) in do_ipv6_setsockopt() argument
150 if (!optval) in do_ipv6_setsockopt()
154 if (get_user(val, (int __user *) optval)) in do_ipv6_setsockopt()
163 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt()
406 optval = NULL; in do_ipv6_setsockopt()
407 else if (!optval) in do_ipv6_setsockopt()
420 (struct ipv6_opt_hdr __user *)optval, in do_ipv6_setsockopt()
461 else if (optlen < sizeof(struct in6_pktinfo) || !optval) in do_ipv6_setsockopt()
464 if (copy_from_user(&pkt, optval, sizeof(struct in6_pktinfo))) { in do_ipv6_setsockopt()
507 if (copy_from_user(opt+1, optval, optlen)) in do_ipv6_setsockopt()
[all …]
Dudp_impl.h17 char __user *optval, int __user *optlen);
19 char __user *optval, unsigned int optlen);
22 char __user *optval, unsigned int optlen);
24 char __user *optval, int __user *optlen);
Draw.c940 char __user *optval, int optlen) in rawv6_seticmpfilter() argument
946 if (copy_from_user(&raw6_sk(sk)->filter, optval, optlen)) in rawv6_seticmpfilter()
957 char __user *optval, int __user *optlen) in rawv6_geticmpfilter() argument
971 if (copy_to_user(optval, &raw6_sk(sk)->filter, len)) in rawv6_geticmpfilter()
983 char __user *optval, unsigned int optlen) in do_rawv6_setsockopt() argument
988 if (get_user(val, (int __user *)optval)) in do_rawv6_setsockopt()
1025 char __user *optval, unsigned int optlen) in rawv6_setsockopt() argument
1034 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1039 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
1042 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt()
[all …]
Dudp.c1429 char __user *optval, unsigned int optlen) in udpv6_setsockopt() argument
1432 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt()
1434 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt()
1439 char __user *optval, unsigned int optlen) in compat_udpv6_setsockopt() argument
1442 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt()
1444 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt()
1449 char __user *optval, int __user *optlen) in udpv6_getsockopt() argument
1452 return udp_lib_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt()
1453 return ipv6_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt()
1458 char __user *optval, int __user *optlen) in compat_udpv6_getsockopt() argument
[all …]
/net/rds/
Daf_rds.c200 static int rds_cancel_sent_to(struct rds_sock *rs, char __user *optval, in rds_cancel_sent_to() argument
217 if (copy_from_user(&sin, optval, sizeof(sin))) { in rds_cancel_sent_to()
227 static int rds_set_bool_option(unsigned char *optvar, char __user *optval, in rds_set_bool_option() argument
234 if (get_user(value, (int __user *) optval)) in rds_set_bool_option()
240 static int rds_cong_monitor(struct rds_sock *rs, char __user *optval, in rds_cong_monitor() argument
245 ret = rds_set_bool_option(&rs->rs_cong_monitor, optval, optlen); in rds_cong_monitor()
258 static int rds_set_transport(struct rds_sock *rs, char __user *optval, in rds_set_transport() argument
269 if (copy_from_user(&t_type, (int __user *)optval, sizeof(t_type))) in rds_set_transport()
281 char __user *optval, unsigned int optlen) in rds_setsockopt() argument
293 ret = rds_cancel_sent_to(rs, optval, optlen); in rds_setsockopt()
[all …]
/net/ipv4/
Dip_sockglue.c578 int optname, char __user *optval, unsigned int optlen) in do_ip_setsockopt() argument
609 if (get_user(val, (int __user *) optval)) in do_ip_setsockopt()
614 if (get_user(ucval, (unsigned char __user *) optval)) in do_ip_setsockopt()
623 return ip_mroute_setsockopt(sk, optname, optval, optlen); in do_ip_setsockopt()
638 optval, optlen); in do_ip_setsockopt()
827 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
832 if (copy_from_user(&mreq, optval, in do_ip_setsockopt()
836 if (copy_from_user(&mreq.imr_address, optval, in do_ip_setsockopt()
889 if (copy_from_user(&mreq, optval, sizeof(mreq))) in do_ip_setsockopt()
893 if (copy_from_user(&mreq, optval, sizeof(struct ip_mreq))) in do_ip_setsockopt()
[all …]
Dudp_impl.h14 char __user *optval, unsigned int optlen);
16 char __user *optval, int __user *optlen);
20 char __user *optval, unsigned int optlen);
22 char __user *optval, int __user *optlen);
Draw.c797 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter() argument
801 if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) in raw_seticmpfilter()
806 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter() argument
819 copy_to_user(optval, &raw_sk(sk)->filter, len)) in raw_geticmpfilter()
826 char __user *optval, unsigned int optlen) in do_raw_setsockopt() argument
832 return raw_seticmpfilter(sk, optval, optlen); in do_raw_setsockopt()
838 char __user *optval, unsigned int optlen) in raw_setsockopt() argument
841 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
842 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
847 char __user *optval, unsigned int optlen) in compat_raw_setsockopt() argument
[all …]
Dtcp.c2356 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument
2371 val = strncpy_from_user(name, optval, in do_tcp_setsockopt()
2390 if (get_user(val, (int __user *)optval)) in do_tcp_setsockopt()
2482 (struct tcp_repair_opt __user *)optval, in do_tcp_setsockopt()
2599 err = tp->af_specific->md5_parse(sk, optval, optlen); in do_tcp_setsockopt()
2641 int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, in tcp_setsockopt() argument
2648 optval, optlen); in tcp_setsockopt()
2649 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in tcp_setsockopt()
2655 char __user *optval, unsigned int optlen) in compat_tcp_setsockopt() argument
2659 optval, optlen); in compat_tcp_setsockopt()
[all …]
/net/dccp/
Dproto.c406 char __user *optval, unsigned int optlen) in dccp_setsockopt_service() argument
422 optval + sizeof(service), in dccp_setsockopt_service()
477 char __user *optval, unsigned int optlen) in dccp_setsockopt_ccid() argument
485 val = memdup_user(optval, optlen); in dccp_setsockopt_ccid()
502 char __user *optval, unsigned int optlen) in do_dccp_setsockopt() argument
518 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt()
524 if (get_user(val, (int __user *)optval)) in do_dccp_setsockopt()
528 return dccp_setsockopt_service(sk, val, optval, optlen); in do_dccp_setsockopt()
568 char __user *optval, unsigned int optlen) in dccp_setsockopt() argument
572 optname, optval, in dccp_setsockopt()
[all …]
Dccid.h83 u32 __user *optval,
87 u32 __user *optval,
246 u32 __user *optval, int __user *optlen) in ccid_hc_rx_getsockopt() argument
251 optval, optlen); in ccid_hc_rx_getsockopt()
257 u32 __user *optval, int __user *optlen) in ccid_hc_tx_getsockopt() argument
262 optval, optlen); in ccid_hc_tx_getsockopt()
/net/
Dcompat.c315 char __user *optval, unsigned int optlen) in do_set_attach_filter() argument
317 struct compat_sock_fprog __user *fprog32 = (struct compat_sock_fprog __user *)optval; in do_set_attach_filter()
335 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument
337 struct compat_timeval __user *up = (struct compat_timeval __user *)optval; in do_set_sock_timeout()
357 char __user *optval, unsigned int optlen) in compat_sock_setsockopt() argument
361 optval, optlen); in compat_sock_setsockopt()
364 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt()
366 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt()
370 char __user *, optval, unsigned int, optlen) in COMPAT_SYSCALL_DEFINE5() argument
384 optname, optval, optlen); in COMPAT_SYSCALL_DEFINE5()
[all …]
/net/dns_resolver/
Ddns_key.c92 char optval[128]; in dns_resolver_preparse() local
96 if (opt_len <= 0 || opt_len > sizeof(optval)) { in dns_resolver_preparse()
106 memcpy(optval, eq, next_opt - eq); in dns_resolver_preparse()
107 optval[next_opt - eq] = '\0'; in dns_resolver_preparse()
110 optval[0] = '\0'; in dns_resolver_preparse()
114 opt_nlen, opt_nlen, opt, optval); in dns_resolver_preparse()
122 ret = kstrtoul(optval, 10, &derrno); in dns_resolver_preparse()
/net/bluetooth/
Dl2cap_sock.c392 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt_old() argument
430 if (copy_to_user(optval, (char *) &opts, len)) in l2cap_sock_getsockopt_old()
462 if (put_user(opt, (u32 __user *) optval)) in l2cap_sock_getsockopt_old()
480 if (copy_to_user(optval, (char *) &cinfo, len)) in l2cap_sock_getsockopt_old()
495 char __user *optval, int __user *optlen) in l2cap_sock_getsockopt() argument
506 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt()
536 if (copy_to_user(optval, (char *) &sec, len)) in l2cap_sock_getsockopt()
548 (u32 __user *) optval)) in l2cap_sock_getsockopt()
555 (u32 __user *) optval)) in l2cap_sock_getsockopt()
570 if (copy_to_user(optval, (char *) &pwr, len)) in l2cap_sock_getsockopt()
[all …]
Dsco.c805 char __user *optval, unsigned int optlen) in sco_sock_setsockopt() argument
824 if (get_user(opt, (u32 __user *) optval)) { in sco_sock_setsockopt()
845 if (copy_from_user((char *)&voice, optval, len)) { in sco_sock_setsockopt()
870 char __user *optval, int __user *optlen) in sco_sock_getsockopt_old() argument
898 if (copy_to_user(optval, (char *)&opts, len)) in sco_sock_getsockopt_old()
916 if (copy_to_user(optval, (char *)&cinfo, len)) in sco_sock_getsockopt_old()
931 char __user *optval, int __user *optlen) in sco_sock_getsockopt() argument
940 return sco_sock_getsockopt_old(sock, optname, optval, optlen); in sco_sock_getsockopt()
956 (u32 __user *)optval)) in sco_sock_getsockopt()
965 if (copy_to_user(optval, (char *)&voice, len)) in sco_sock_getsockopt()
/net/can/
Draw.c509 char __user *optval, unsigned int optlen) in raw_setsockopt() argument
536 filter = memdup_user(optval, optlen); in raw_setsockopt()
540 if (copy_from_user(&sfilter, optval, sizeof(sfilter))) in raw_setsockopt()
600 if (copy_from_user(&err_mask, optval, optlen)) in raw_setsockopt()
644 if (copy_from_user(&ro->loopback, optval, optlen)) in raw_setsockopt()
653 if (copy_from_user(&ro->recv_own_msgs, optval, optlen)) in raw_setsockopt()
662 if (copy_from_user(&ro->fd_frames, optval, optlen)) in raw_setsockopt()
671 if (copy_from_user(&ro->join_filters, optval, optlen)) in raw_setsockopt()
683 char __user *optval, int __user *optlen) in raw_getsockopt() argument
706 if (copy_to_user(optval, ro->filter, len)) in raw_getsockopt()
[all …]
/net/core/
Dsock.c383 static int sock_set_timeout(long *timeo_p, char __user *optval, int optlen) in sock_set_timeout() argument
389 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout()
559 static int sock_setbindtodevice(struct sock *sk, char __user *optval, in sock_setbindtodevice() argument
587 if (copy_from_user(devname, optval, optlen)) in sock_setbindtodevice()
617 static int sock_getbindtodevice(struct sock *sk, char __user *optval, in sock_getbindtodevice() argument
641 if (copy_to_user(optval, devname, len)) in sock_getbindtodevice()
690 char __user *optval, unsigned int optlen) in sock_setsockopt() argument
703 return sock_setbindtodevice(sk, optval, optlen); in sock_setsockopt()
708 if (get_user(val, (int __user *)optval)) in sock_setsockopt()
826 if (copy_from_user(&ling, optval, sizeof(ling))) { in sock_setsockopt()
[all …]
/net/atm/
Dpvc.c65 char __user *optval, unsigned int optlen) in pvc_setsockopt() argument
71 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt()
77 char __user *optval, int __user *optlen) in pvc_getsockopt() argument
83 error = vcc_getsockopt(sock, level, optname, optval, optlen); in pvc_getsockopt()
Dcommon.h23 char __user *optval, unsigned int optlen);
25 char __user *optval, int __user *optlen);
Dsvc.c453 char __user *optval, unsigned int optlen) in svc_setsockopt() argument
466 if (copy_from_user(&vcc->sap, optval, optlen)) { in svc_setsockopt()
477 if (get_user(value, (int __user *)optval)) { in svc_setsockopt()
489 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt()
498 char __user *optval, int __user *optlen) in svc_getsockopt() argument
505 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt()
516 if (copy_to_user(optval, &ATM_SD(sock)->sap, sizeof(struct atm_sap))) { in svc_getsockopt()
Dcommon.c744 char __user *optval, unsigned int optlen) in vcc_setsockopt() argument
759 if (copy_from_user(&qos, optval, sizeof(qos))) in vcc_setsockopt()
773 if (get_user(value, (unsigned long __user *)optval)) in vcc_setsockopt()
787 return vcc->dev->ops->setsockopt(vcc, level, optname, optval, optlen); in vcc_setsockopt()
791 char __user *optval, int __user *optlen) in vcc_getsockopt() argument
806 return copy_to_user(optval, &vcc->qos, sizeof(vcc->qos)) in vcc_getsockopt()
810 (unsigned long __user *)optval) ? -EFAULT : 0; in vcc_getsockopt()
822 return copy_to_user(optval, &pvc, sizeof(pvc)) ? -EFAULT : 0; in vcc_getsockopt()
831 return vcc->dev->ops->getsockopt(vcc, level, optname, optval, len); in vcc_getsockopt()
/net/bluetooth/rfcomm/
Dsock.c647 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old() argument
659 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt_old()
688 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument
699 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt()
716 if (copy_from_user((char *) &sec, optval, len)) { in rfcomm_sock_setsockopt()
735 if (get_user(opt, (u32 __user *) optval)) { in rfcomm_sock_setsockopt()
756 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument
797 if (put_user(opt, (u32 __user *) optval)) in rfcomm_sock_getsockopt_old()
817 if (copy_to_user(optval, (char *) &cinfo, len)) in rfcomm_sock_getsockopt_old()
831 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument
[all …]
/net/irda/
Daf_irda.c1882 char __user *optval, unsigned int optlen) in irda_setsockopt() argument
1919 if (copy_from_user(ias_opt, optval, optlen)) { in irda_setsockopt()
2054 if (copy_from_user(ias_opt, optval, optlen)) { in irda_setsockopt()
2112 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt()
2136 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt()
2158 if (get_user(opt, (int __user *)optval)) { in irda_setsockopt()
2236 char __user *optval, int __user *optlen) in irda_getsockopt() argument
2286 if (copy_to_user(optval, &list, offset)) in irda_getsockopt()
2297 if (copy_to_user(optval+offset, discoveries, total - offset)) in irda_getsockopt()
2315 if (copy_to_user(optval, &val, len)) { in irda_getsockopt()
[all …]
/net/nfc/
Dllcp_sock.c238 char __user *optval, unsigned int optlen) in nfc_llcp_setsockopt() argument
261 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt()
283 if (get_user(opt, (u32 __user *) optval)) { in nfc_llcp_setsockopt()
311 char __user *optval, int __user *optlen) in nfc_llcp_getsockopt() argument
339 if (put_user(rw, (u32 __user *) optval)) in nfc_llcp_getsockopt()
348 if (put_user(miux, (u32 __user *) optval)) in nfc_llcp_getsockopt()
357 if (put_user(remote_miu, (u32 __user *) optval)) in nfc_llcp_getsockopt()
363 if (put_user(local->remote_lto / 10, (u32 __user *) optval)) in nfc_llcp_getsockopt()
369 if (put_user(llcp_sock->remote_rw, (u32 __user *) optval)) in nfc_llcp_getsockopt()

123