Home
last modified time | relevance | path

Searched refs:optname (Results 1 – 25 of 119) sorted by relevance

12345

/linux-6.12.1/net/mptcp/
Dsockopt.c70 static void mptcp_sol_socket_sync_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_sync_intval() argument
82 switch (optname) { in mptcp_sol_socket_sync_intval()
123 static int mptcp_sol_socket_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_intval() argument
129 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_sol_socket_intval()
134 mptcp_sol_socket_sync_intval(msk, optname, val); in mptcp_sol_socket_intval()
147 static int mptcp_setsockopt_sol_socket_tstamp(struct mptcp_sock *msk, int optname, int val) in mptcp_setsockopt_sol_socket_tstamp() argument
154 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_setsockopt_sol_socket_tstamp()
164 sock_set_timestamp(sk, optname, !!val); in mptcp_setsockopt_sol_socket_tstamp()
172 static int mptcp_setsockopt_sol_socket_int(struct mptcp_sock *msk, int optname, in mptcp_setsockopt_sol_socket_int() argument
182 switch (optname) { in mptcp_setsockopt_sol_socket_int()
[all …]
/linux-6.12.1/net/rds/
Dinfo.c73 void rds_info_register_func(int optname, rds_info_func func) in rds_info_register_func() argument
75 int offset = optname - RDS_INFO_FIRST; in rds_info_register_func()
77 BUG_ON(optname < RDS_INFO_FIRST || optname > RDS_INFO_LAST); in rds_info_register_func()
86 void rds_info_deregister_func(int optname, rds_info_func func) in rds_info_deregister_func() argument
88 int offset = optname - RDS_INFO_FIRST; in rds_info_deregister_func()
90 BUG_ON(optname < RDS_INFO_FIRST || optname > RDS_INFO_LAST); in rds_info_deregister_func()
158 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval, in rds_info_getsockopt() argument
208 func = rds_info_funcs[optname - RDS_INFO_FIRST]; in rds_info_getsockopt()
Dinfo.h22 void rds_info_register_func(int optname, rds_info_func func);
23 void rds_info_deregister_func(int optname, rds_info_func func);
24 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dsockopt_sk.c50 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt()
58 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt()
66 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
74 if (ctx->level == SOL_TCP && ctx->optname == TCP_ZEROCOPY_RECEIVE) { in _getsockopt()
90 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt()
160 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt()
169 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt()
181 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
193 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
Dsockopt_multi.c16 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child()
45 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent()
74 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
/linux-6.12.1/net/ipv6/
Dipv6_sockglue.c120 static bool setsockopt_needs_rtnl(int optname) in setsockopt_needs_rtnl() argument
122 switch (optname) { in setsockopt_needs_rtnl()
163 static int do_ipv6_mcast_group_source(struct sock *sk, int optname, in do_ipv6_mcast_group_source() argument
178 if (optname == MCAST_BLOCK_SOURCE) { in do_ipv6_mcast_group_source()
181 } else if (optname == MCAST_UNBLOCK_SOURCE) { in do_ipv6_mcast_group_source()
184 } else if (optname == MCAST_JOIN_SOURCE_GROUP) { in do_ipv6_mcast_group_source()
279 static int ipv6_mcast_join_leave(struct sock *sk, int optname, in ipv6_mcast_join_leave() argument
293 if (optname == MCAST_JOIN_GROUP) in ipv6_mcast_join_leave()
299 static int compat_ipv6_mcast_join_leave(struct sock *sk, int optname, in compat_ipv6_mcast_join_leave() argument
313 if (optname == MCAST_JOIN_GROUP) in compat_ipv6_mcast_join_leave()
[all …]
Draw.c944 static int rawv6_seticmpfilter(struct sock *sk, int optname, in rawv6_seticmpfilter() argument
947 switch (optname) { in rawv6_seticmpfilter()
961 static int rawv6_geticmpfilter(struct sock *sk, int optname, in rawv6_geticmpfilter() argument
966 switch (optname) { in rawv6_geticmpfilter()
987 static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, in do_rawv6_setsockopt() argument
999 switch (optname) { in do_rawv6_setsockopt()
1037 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument
1047 return rawv6_seticmpfilter(sk, optname, optval, optlen); in rawv6_setsockopt()
1049 if (optname == IPV6_CHECKSUM || in rawv6_setsockopt()
1050 optname == IPV6_HDRINCL) in rawv6_setsockopt()
[all …]
Dudp_impl.h19 int udpv6_getsockopt(struct sock *sk, int level, int optname,
21 int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
/linux-6.12.1/net/ipv4/
Dip_sockglue.c640 static bool setsockopt_needs_rtnl(int optname) in setsockopt_needs_rtnl() argument
642 switch (optname) { in setsockopt_needs_rtnl()
721 static int do_mcast_group_source(struct sock *sk, int optname, in do_mcast_group_source() argument
743 if (optname == MCAST_BLOCK_SOURCE) { in do_mcast_group_source()
746 } else if (optname == MCAST_UNBLOCK_SOURCE) { in do_mcast_group_source()
749 } else if (optname == MCAST_JOIN_SOURCE_GROUP) { in do_mcast_group_source()
845 static int ip_mcast_join_leave(struct sock *sk, int optname, in ip_mcast_join_leave() argument
862 if (optname == MCAST_JOIN_GROUP) in ip_mcast_join_leave()
867 static int compat_ip_mcast_join_leave(struct sock *sk, int optname, in compat_ip_mcast_join_leave() argument
885 if (optname == MCAST_JOIN_GROUP) in compat_ip_mcast_join_leave()
[all …]
Dudp_impl.h15 int udp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
17 int udp_getsockopt(struct sock *sk, int level, int optname,
/linux-6.12.1/include/linux/
Dbpf-cgroup.h146 int *optname, sockptr_t optval,
150 int optname, sockptr_t optval,
155 int optname, void *optval,
380 #define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \ argument
387 optname, optval, \
393 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, optlen, \ argument
402 level, optname)) \
404 sock, level, optname, optval, optlen, \
409 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \ argument
415 sock, level, optname, optval, optlen, retval); \
[all …]
Dmroute.h27 static inline int ip_mroute_setsockopt(struct sock *sock, int optname, in ip_mroute_setsockopt() argument
33 static inline int ip_mroute_getsockopt(struct sock *sk, int optname, in ip_mroute_getsockopt() argument
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c176 offsetof(struct bpf_sockopt, optname)),
224 offsetof(struct bpf_sockopt, optname)),
562 offsetof(struct bpf_sockopt, optname)),
593 offsetof(struct bpf_sockopt, optname)),
992 static int uring_sockopt(int op, int fd, int level, int optname, in uring_sockopt() argument
1010 io_uring_prep_cmd(sqe, op, fd, level, optname, optval, optlen); in uring_sockopt()
1028 static int uring_setsockopt(int fd, int level, int optname, const void *optval, in uring_setsockopt() argument
1031 return uring_sockopt(SOCKET_URING_OP_SETSOCKOPT, fd, level, optname, in uring_setsockopt()
1035 static int uring_getsockopt(int fd, int level, int optname, void *optval, in uring_getsockopt() argument
1038 int ret = uring_sockopt(SOCKET_URING_OP_GETSOCKOPT, fd, level, optname, in uring_getsockopt()
[all …]
Dsockopt_inherit.c13 static int verify_sockopt(int fd, int optname, const char *msg, char expected) in verify_sockopt() argument
19 err = getsockopt(fd, SOL_CUSTOM, optname, &buf, &optlen); in verify_sockopt()
25 printf("%s %d: got=0x%x ? expected=0x%x\n", msg, optname, buf, expected); in verify_sockopt()
/linux-6.12.1/io_uring/
During_cmd.c292 int optlen, optname, level, err; in io_uring_cmd_getsockopt() local
300 optname = READ_ONCE(cmd->sqe->optname); in io_uring_cmd_getsockopt()
303 err = do_sock_getsockopt(sock, compat, level, optname, in io_uring_cmd_getsockopt()
318 int optname, optlen, level; in io_uring_cmd_setsockopt() local
323 optname = READ_ONCE(cmd->sqe->optname); in io_uring_cmd_setsockopt()
328 return do_sock_setsockopt(sock, compat, level, optname, optval_s, in io_uring_cmd_setsockopt()
/linux-6.12.1/net/dccp/
Dccid.h79 const int optname, int len,
83 const int optname, int len,
242 const int optname, int len, in ccid_hc_rx_getsockopt() argument
247 rc = ccid->ccid_ops->ccid_hc_rx_getsockopt(sk, optname, len, in ccid_hc_rx_getsockopt()
253 const int optname, int len, in ccid_hc_tx_getsockopt() argument
258 rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len, in ccid_hc_tx_getsockopt()
Dproto.c509 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument
515 switch (optname) { in do_dccp_setsockopt()
526 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt()
535 if (optname == DCCP_SOCKOPT_SERVICE) in do_dccp_setsockopt()
539 switch (optname) { in do_dccp_setsockopt()
575 int dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in dccp_setsockopt() argument
580 optname, optval, in dccp_setsockopt()
582 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt()
615 static int do_dccp_getsockopt(struct sock *sk, int level, int optname, in do_dccp_getsockopt() argument
629 switch (optname) { in do_dccp_getsockopt()
[all …]
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_hw.c178 static int get_new_keyid(struct chtls_sock *csk, u32 optname) in get_new_keyid() argument
193 if (optname == TLS_RX) in get_new_keyid()
252 u32 keylen, u32 optname, in chtls_key_info() argument
313 if (optname == TLS_RX) { in chtls_key_info()
358 u32 optname, int cipher_type) in chtls_setkey() argument
378 if (optname == TLS_TX) { in chtls_setkey()
389 keyid = get_new_keyid(csk, optname); in chtls_setkey()
405 kwr->wr.reneg_to_write_rx = optname; in chtls_setkey()
423 ret = chtls_key_info(csk, kctx, keylen, optname, cipher_type); in chtls_setkey()
439 if (optname == TLS_RX) { in chtls_setkey()
Dchtls_main.c478 static int chtls_getsockopt(struct sock *sk, int level, int optname, in chtls_getsockopt() argument
485 optname, optval, optlen); in chtls_getsockopt()
490 static int do_chtls_setsockopt(struct sock *sk, int optname, in do_chtls_setsockopt() argument
564 rc = chtls_setkey(csk, keylen, optname, cipher_type); in do_chtls_setsockopt()
569 static int chtls_setsockopt(struct sock *sk, int level, int optname, in chtls_setsockopt() argument
576 optname, optval, optlen); in chtls_setsockopt()
578 return do_chtls_setsockopt(sk, optname, optval, optlen); in chtls_setsockopt()
/linux-6.12.1/net/atm/
Dpvc.c65 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument
72 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt()
77 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt() argument
84 error = vcc_getsockopt(sock, level, optname, optval, optlen); in pvc_getsockopt()
Dcommon.h23 int vcc_setsockopt(struct socket *sock, int level, int optname,
25 int vcc_getsockopt(struct socket *sock, int level, int optname,
/linux-6.12.1/Documentation/security/
DSCTP.rst37 based on the ``@optname`` that will result in either a bind or connect
43 @optname - Name of the option to validate.
51 | @optname | @address contains |
60 | @optname | @address contains |
68 A summary of the ``@optname`` entries is as follows::
102 ASCONF chunk when the corresponding ``@optname``'s are present::
104 @optname ASCONF Parameter
230 Checks permissions required for ipv4/ipv6 addresses based on the ``@optname``
235 | @optname | @address contains |
244 | @optname | @address contains |
[all …]
/linux-6.12.1/Documentation/bpf/
Dprog_cgroup_sockopt.rst16 all input arguments: ``level``, ``optname``, ``optval`` and ``optlen``.
84 to the input arguments (``level``, ``optname``, ``optval``, ``optlen``),
116 if (ctx->level == MY_SOL && ctx->optname == MY_OPTNAME) {
124 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) {
142 if (ctx->level == MY_SOL && ctx->optname == MY_OPTNAME) {
149 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) {
/linux-6.12.1/security/selinux/
Dnetlabel.c490 static inline int selinux_netlbl_option(int level, int optname) in selinux_netlbl_option() argument
492 return (level == IPPROTO_IP && optname == IP_OPTIONS) || in selinux_netlbl_option()
493 (level == IPPROTO_IPV6 && optname == IPV6_HOPOPTS); in selinux_netlbl_option()
511 int optname) in selinux_netlbl_socket_setsockopt() argument
518 if (selinux_netlbl_option(level, optname) && in selinux_netlbl_socket_setsockopt()
/linux-6.12.1/net/bluetooth/rfcomm/
Dsock.c619 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, in rfcomm_sock_setsockopt_old() argument
630 switch (optname) { in rfcomm_sock_setsockopt_old()
661 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, in rfcomm_sock_setsockopt() argument
672 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt()
679 switch (optname) { in rfcomm_sock_setsockopt()
726 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument
742 switch (optname) { in rfcomm_sock_getsockopt_old()
801 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument
810 return rfcomm_sock_getsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_getsockopt()
820 switch (optname) { in rfcomm_sock_getsockopt()

12345