Lines Matching refs:optval

141 		sockptr_t optval, int optlen)  in copy_group_source_from_sockptr()  argument
148 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in copy_group_source_from_sockptr()
156 if (copy_from_sockptr(greqs, optval, sizeof(*greqs))) in copy_group_source_from_sockptr()
164 sockptr_t optval, int optlen) in do_ipv6_mcast_group_source() argument
170 ret = copy_group_source_from_sockptr(&greqs, optval, optlen); in do_ipv6_mcast_group_source()
204 static int ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in ipv6_set_mcast_msfilter() argument
215 gsf = memdup_sockptr(optval, optlen); in ipv6_set_mcast_msfilter()
235 static int compat_ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in compat_ipv6_set_mcast_msfilter() argument
255 if (copy_from_sockptr(gf32, optval, optlen)) in compat_ipv6_set_mcast_msfilter()
280 sockptr_t optval, int optlen) in ipv6_mcast_join_leave() argument
287 if (copy_from_sockptr(&greq, optval, sizeof(greq))) in ipv6_mcast_join_leave()
300 sockptr_t optval, int optlen) in compat_ipv6_mcast_join_leave() argument
307 if (copy_from_sockptr(&gr32, optval, sizeof(gr32))) in compat_ipv6_mcast_join_leave()
319 static int ipv6_set_opt_hdr(struct sock *sk, int optname, sockptr_t optval, in ipv6_set_opt_hdr() argument
336 if (sockptr_is_null(optval)) in ipv6_set_opt_hdr()
343 new = memdup_sockptr(optval, optlen); in ipv6_set_opt_hdr()
394 sockptr_t optval, unsigned int optlen) in do_ipv6_setsockopt() argument
402 if (sockptr_is_null(optval)) in do_ipv6_setsockopt()
406 if (copy_from_sockptr(&val, optval, sizeof(val))) in do_ipv6_setsockopt()
415 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt()
806 retv = ipv6_set_opt_hdr(sk, optname, optval, optlen); in do_ipv6_setsockopt()
816 sockptr_is_null(optval)) in do_ipv6_setsockopt()
819 if (copy_from_sockptr(&pkt, optval, sizeof(pkt))) { in do_ipv6_setsockopt()
862 if (copy_from_sockptr(opt + 1, optval, optlen)) in do_ipv6_setsockopt()
897 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
915 if (copy_from_sockptr(&mreq, optval, sizeof(struct ipv6_mreq))) in do_ipv6_setsockopt()
927 retv = compat_ipv6_mcast_join_leave(sk, optname, optval, in do_ipv6_setsockopt()
930 retv = ipv6_mcast_join_leave(sk, optname, optval, in do_ipv6_setsockopt()
937 retv = do_ipv6_mcast_group_source(sk, optname, optval, optlen); in do_ipv6_setsockopt()
941 retv = compat_ipv6_set_mcast_msfilter(sk, optval, in do_ipv6_setsockopt()
944 retv = ipv6_set_mcast_msfilter(sk, optval, optlen); in do_ipv6_setsockopt()
954 retv = ipv6_flowlabel_opt(sk, optval, optlen); in do_ipv6_setsockopt()
961 retv = xfrm_user_policy(sk, optname, optval, optlen); in do_ipv6_setsockopt()
982 int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in ipv6_setsockopt() argument
988 return ip_setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
993 err = do_ipv6_setsockopt(sk, level, optname, optval, optlen); in ipv6_setsockopt()
998 err = nf_setsockopt(sk, PF_INET6, optname, optval, optlen); in ipv6_setsockopt()
1005 int optname, sockptr_t optval, int len) in ipv6_getsockopt_sticky() argument
1033 if (copy_to_sockptr(optval, hdr, len)) in ipv6_getsockopt_sticky()
1038 static int ipv6_get_msfilter(struct sock *sk, sockptr_t optval, in ipv6_get_msfilter() argument
1048 if (copy_from_sockptr(&gsf, optval, size0)) in ipv6_get_msfilter()
1054 err = ip6_mc_msfget(sk, &gsf, optval, size0); in ipv6_get_msfilter()
1060 copy_to_sockptr(optval, &gsf, size0)) in ipv6_get_msfilter()
1067 static int compat_ipv6_get_msfilter(struct sock *sk, sockptr_t optval, in compat_ipv6_get_msfilter() argument
1079 if (copy_from_sockptr(&gf32, optval, size0)) in compat_ipv6_get_msfilter()
1090 err = ip6_mc_msfget(sk, &gf, optval, size0); in compat_ipv6_get_msfilter()
1098 copy_to_sockptr_offset(optval, offsetof(struct compat_group_filter, gf_fmode), in compat_ipv6_get_msfilter()
1100 copy_to_sockptr_offset(optval, offsetof(struct compat_group_filter, gf_numsrc), in compat_ipv6_get_msfilter()
1107 sockptr_t optval, sockptr_t optlen) in do_ipv6_getsockopt() argument
1114 return ip6_mroute_getsockopt(sk, optname, optval, optlen); in do_ipv6_getsockopt()
1130 return compat_ipv6_get_msfilter(sk, optval, optlen, len); in do_ipv6_getsockopt()
1131 return ipv6_get_msfilter(sk, optval, optlen, len); in do_ipv6_getsockopt()
1140 if (optval.is_kernel) { in do_ipv6_getsockopt()
1142 msg.msg_control = optval.kernel; in do_ipv6_getsockopt()
1145 msg.msg_control_user = optval.user; in do_ipv6_getsockopt()
1252 len = ipv6_getsockopt_sticky(sk, opt, optname, optval, len); in do_ipv6_getsockopt()
1313 if (copy_to_sockptr(optval, &mtuinfo, len)) in do_ipv6_getsockopt()
1390 if (copy_from_sockptr(&freq, optval, sizeof(freq))) in do_ipv6_getsockopt()
1407 if (copy_to_sockptr(optval, &freq, len)) in do_ipv6_getsockopt()
1467 if (copy_to_sockptr(optval, &val, len)) in do_ipv6_getsockopt()
1473 char __user *optval, int __user *optlen) in ipv6_getsockopt() argument
1478 return ip_getsockopt(sk, level, optname, optval, optlen); in ipv6_getsockopt()
1484 USER_SOCKPTR(optval), USER_SOCKPTR(optlen)); in ipv6_getsockopt()
1493 err = nf_getsockopt(sk, PF_INET6, optname, optval, &len); in ipv6_getsockopt()