• Home
  • Raw
  • Download

Lines Matching refs:optlen

582 			       sizeof(*inet_opt) + inet_opt->opt.optlen);  in raw_sendmsg()
812 static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen) in raw_seticmpfilter() argument
814 if (optlen > sizeof(struct icmp_filter)) in raw_seticmpfilter()
815 optlen = sizeof(struct icmp_filter); in raw_seticmpfilter()
816 if (copy_from_user(&raw_sk(sk)->filter, optval, optlen)) in raw_seticmpfilter()
821 static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) in raw_geticmpfilter() argument
825 if (get_user(len, optlen)) in raw_geticmpfilter()
833 if (put_user(len, optlen) || in raw_geticmpfilter()
841 char __user *optval, unsigned int optlen) in do_raw_setsockopt() argument
847 return raw_seticmpfilter(sk, optval, optlen); in do_raw_setsockopt()
853 char __user *optval, unsigned int optlen) in raw_setsockopt() argument
856 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
857 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt()
862 char __user *optval, unsigned int optlen) in compat_raw_setsockopt() argument
865 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
866 return do_raw_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt()
871 char __user *optval, int __user *optlen) in do_raw_getsockopt() argument
877 return raw_geticmpfilter(sk, optval, optlen); in do_raw_getsockopt()
883 char __user *optval, int __user *optlen) in raw_getsockopt() argument
886 return ip_getsockopt(sk, level, optname, optval, optlen); in raw_getsockopt()
887 return do_raw_getsockopt(sk, level, optname, optval, optlen); in raw_getsockopt()
892 char __user *optval, int __user *optlen) in compat_raw_getsockopt() argument
895 return compat_ip_getsockopt(sk, level, optname, optval, optlen); in compat_raw_getsockopt()
896 return do_raw_getsockopt(sk, level, optname, optval, optlen); in compat_raw_getsockopt()