/openbmc/linux/include/linux/ |
H A D | sockptr.h | 20 } sockptr_t; typedef 22 static inline bool sockptr_is_kernel(sockptr_t sockptr) in sockptr_is_kernel() 27 static inline sockptr_t KERNEL_SOCKPTR(void *p) in KERNEL_SOCKPTR() 29 return (sockptr_t) { .kernel = p, .is_kernel = true }; in KERNEL_SOCKPTR() 32 static inline sockptr_t USER_SOCKPTR(void __user *p) in USER_SOCKPTR() 34 return (sockptr_t) { .user = p }; in USER_SOCKPTR() 37 static inline bool sockptr_is_null(sockptr_t sockptr) in sockptr_is_null() 44 static inline int copy_from_sockptr_offset(void *dst, sockptr_t src, in copy_from_sockptr_offset() 76 sockptr_t optval, unsigned int optlen) in copy_safe_from_sockptr() 99 static inline void *memdup_sockptr(sockptr_t src, size_t len) in memdup_sockptr() [all …]
|
H A D | mroute.h | 19 int ip_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int); 20 int ip_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t); 28 sockptr_t optval, unsigned int optlen) in ip_mroute_setsockopt() 34 sockptr_t optval, sockptr_t optlen) in ip_mroute_getsockopt()
|
H A D | mroute6.h | 29 extern int ip6_mroute_setsockopt(struct sock *, int, sockptr_t, unsigned int); 30 extern int ip6_mroute_getsockopt(struct sock *, int, sockptr_t, sockptr_t); 38 sockptr_t optval, unsigned int optlen) in ip6_mroute_setsockopt() 45 int optname, sockptr_t optval, sockptr_t optlen) in ip6_mroute_getsockopt()
|
H A D | bpfilter.h | 10 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, 19 int (*sockopt)(struct sock *sk, int optname, sockptr_t optval,
|
H A D | igmp.h | 122 sockptr_t optval, sockptr_t optlen); 124 sockptr_t optval, size_t offset);
|
H A D | bpfptr.h | 9 typedef sockptr_t bpfptr_t; 65 return copy_to_sockptr_offset((sockptr_t) dst, offset, src, size); in copy_to_bpfptr_offset()
|
H A D | bpf-cgroup.h | 141 int *optname, sockptr_t optval, 145 int optname, sockptr_t optval, 146 sockptr_t optlen, int max_optlen,
|
/openbmc/linux/include/net/ |
H A D | ipv6_stubs.h | 85 sockptr_t optval, unsigned int optlen); 87 sockptr_t optval, sockptr_t optlen);
|
H A D | ip.h | 751 sockptr_t data, int optlen); 766 int do_ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, 768 int ip_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, 771 sockptr_t optval, sockptr_t optlen);
|
H A D | ipv6.h | 426 int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen); 1195 int do_ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, 1197 int ipv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, 1200 sockptr_t optval, sockptr_t optlen); 1253 sockptr_t optval, size_t ss_offset);
|
H A D | sock.h | 1272 int optname, sockptr_t optval, 1877 sockptr_t optval, unsigned int optlen); 1879 sockptr_t optval, unsigned int optlen); 1881 int optname, sockptr_t optval, int optlen); 1883 int optname, sockptr_t optval, sockptr_t optlen); 1886 sockptr_t optval, sockptr_t optlen); 1958 sockptr_t optval, unsigned int optlen); 3033 sockptr_t optval, int optlen, bool old_timeval);
|
/openbmc/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 142 sockptr_t optval, int optlen) in copy_group_source_from_sockptr() 165 sockptr_t optval, int optlen) in do_ipv6_mcast_group_source() 205 static int ipv6_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in ipv6_set_mcast_msfilter() 281 sockptr_t optval, int optlen) in ipv6_mcast_join_leave() 301 sockptr_t optval, int optlen) in compat_ipv6_mcast_join_leave() 395 sockptr_t optval, unsigned int optlen) in do_ipv6_setsockopt() 1024 int optname, sockptr_t optval, int len) in ipv6_getsockopt_sticky() 1057 static int ipv6_get_msfilter(struct sock *sk, sockptr_t optval, in ipv6_get_msfilter() 1058 sockptr_t optlen, int len) in ipv6_get_msfilter() 1087 sockptr_t optlen, int len) in compat_ipv6_get_msfilter() [all …]
|
H A D | udp_impl.h | 21 int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
|
/openbmc/linux/net/ipv4/bpfilter/ |
H A D | sockopt.c | 15 static int bpfilter_mbox_request(struct sock *sk, int optname, sockptr_t optval, in bpfilter_mbox_request() 45 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, in bpfilter_ip_set_sockopt()
|
/openbmc/linux/net/mptcp/ |
H A D | sockopt.c | 125 sockptr_t optval = KERNEL_SOCKPTR(&val); in mptcp_sol_socket_intval() 149 sockptr_t optval = KERNEL_SOCKPTR(&val); in mptcp_setsockopt_sol_socket_tstamp() 173 sockptr_t optval, in mptcp_setsockopt_sol_socket_int() 207 sockptr_t optval, in mptcp_setsockopt_sol_socket_timestamping() 255 sockptr_t kopt; in mptcp_setsockopt_sol_socket_linger() 291 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_sol_socket() 388 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_v6() 689 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_sol_ip_set_transparent() 769 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_first_sf_only() 791 sockptr_t optval, unsigned int optlen) in mptcp_setsockopt_sol_tcp() [all …]
|
/openbmc/linux/net/rds/ |
H A D | af_rds.c | 293 static int rds_cancel_sent_to(struct rds_sock *rs, sockptr_t optval, int len) in rds_cancel_sent_to() 330 static int rds_set_bool_option(unsigned char *optvar, sockptr_t optval, in rds_set_bool_option() 343 static int rds_cong_monitor(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_cong_monitor() 360 static int rds_set_transport(struct rds_sock *rs, sockptr_t optval, int optlen) in rds_set_transport() 381 static int rds_enable_recvtstamp(struct sock *sk, sockptr_t optval, in rds_enable_recvtstamp() 405 static int rds_recv_track_latency(struct rds_sock *rs, sockptr_t optval, in rds_recv_track_latency() 433 sockptr_t optval, unsigned int optlen) in rds_setsockopt()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_sockglue.c | 701 sockptr_t optval, int optlen) in copy_group_source_from_sockptr() 724 sockptr_t optval, int optlen) in do_mcast_group_source() 803 static int compat_ip_set_mcast_msfilter(struct sock *sk, sockptr_t optval, in compat_ip_set_mcast_msfilter() 848 sockptr_t optval, int optlen) in ip_mcast_join_leave() 870 sockptr_t optval, int optlen) in compat_ip_mcast_join_leave() 895 sockptr_t optval, unsigned int optlen) in do_ip_setsockopt() 1452 static int ip_get_mcast_msfilter(struct sock *sk, sockptr_t optval, in ip_get_mcast_msfilter() 1453 sockptr_t optlen, int len) in ip_get_mcast_msfilter() 1479 static int compat_ip_get_mcast_msfilter(struct sock *sk, sockptr_t optval, in compat_ip_get_mcast_msfilter() 1480 sockptr_t optlen, int len) in compat_ip_get_mcast_msfilter() [all …]
|
H A D | udp_impl.h | 15 int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
|
/openbmc/linux/net/atm/ |
H A D | common.h | 24 sockptr_t optval, unsigned int optlen);
|
H A D | pvc.c | 66 sockptr_t optval, unsigned int optlen) in pvc_setsockopt()
|
/openbmc/linux/net/bpfilter/ |
H A D | bpfilter_kern.c | 63 sockptr_t optval, unsigned int optlen, in bpfilter_process_sockopt()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_sockopt.c | 92 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, sockptr_t opt, in nf_setsockopt()
|
/openbmc/linux/net/rxrpc/ |
H A D | server_key.c | 121 int rxrpc_server_keyring(struct rxrpc_sock *rx, sockptr_t optval, int optlen) in rxrpc_server_keyring()
|
/openbmc/linux/net/tls/ |
H A D | tls_main.c | 588 static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval, in do_tls_setsockopt_conf() 715 static int do_tls_setsockopt_tx_zc(struct sock *sk, sockptr_t optval, in do_tls_setsockopt_tx_zc() 735 static int do_tls_setsockopt_no_pad(struct sock *sk, sockptr_t optval, in do_tls_setsockopt_no_pad() 767 static int do_tls_setsockopt(struct sock *sk, int optname, sockptr_t optval, in do_tls_setsockopt() 796 sockptr_t optval, unsigned int optlen) in tls_setsockopt()
|
/openbmc/linux/include/crypto/ |
H A D | if_alg.h | 47 int (*setentropy)(void *private, sockptr_t entropy, unsigned int len);
|