/linux-6.1.9/net/mptcp/ |
D | sockopt.c | 69 static void mptcp_sol_socket_sync_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_sync_intval() argument 81 switch (optname) { in mptcp_sol_socket_sync_intval() 121 static int mptcp_sol_socket_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_intval() argument 127 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_sol_socket_intval() 132 mptcp_sol_socket_sync_intval(msk, optname, val); in mptcp_sol_socket_intval() 145 static int mptcp_setsockopt_sol_socket_tstamp(struct mptcp_sock *msk, int optname, int val) in mptcp_setsockopt_sol_socket_tstamp() argument 152 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_setsockopt_sol_socket_tstamp() 162 sock_set_timestamp(sk, optname, !!val); in mptcp_setsockopt_sol_socket_tstamp() 170 static int mptcp_setsockopt_sol_socket_int(struct mptcp_sock *msk, int optname, in mptcp_setsockopt_sol_socket_int() argument 180 switch (optname) { in mptcp_setsockopt_sol_socket_int() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | sockopt_sk.c | 44 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt() 53 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _getsockopt() 61 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt() 69 if (ctx->level == SOL_TCP && ctx->optname == TCP_ZEROCOPY_RECEIVE) { in _getsockopt() 85 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt() 143 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt() 152 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt() 164 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt() 176 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
|
D | sockopt_multi.c | 14 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child() 37 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent() 60 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
|
D | sockopt_inherit.c | 39 if (ctx->optname == CUSTOM_INHERIT1) in get_storage() 42 else if (ctx->optname == CUSTOM_INHERIT2) in get_storage()
|
/linux-6.1.9/net/rds/ |
D | info.c | 73 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()
|
D | info.h | 22 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.1.9/net/ipv6/ |
D | ipv6_sockglue.c | 121 static bool setsockopt_needs_rtnl(int optname) in setsockopt_needs_rtnl() argument 123 switch (optname) { in setsockopt_needs_rtnl() 164 static int do_ipv6_mcast_group_source(struct sock *sk, int optname, in do_ipv6_mcast_group_source() argument 179 if (optname == MCAST_BLOCK_SOURCE) { in do_ipv6_mcast_group_source() 182 } else if (optname == MCAST_UNBLOCK_SOURCE) { in do_ipv6_mcast_group_source() 185 } else if (optname == MCAST_JOIN_SOURCE_GROUP) { in do_ipv6_mcast_group_source() 280 static int ipv6_mcast_join_leave(struct sock *sk, int optname, in ipv6_mcast_join_leave() argument 294 if (optname == MCAST_JOIN_GROUP) in ipv6_mcast_join_leave() 300 static int compat_ipv6_mcast_join_leave(struct sock *sk, int optname, in compat_ipv6_mcast_join_leave() argument 314 if (optname == MCAST_JOIN_GROUP) in compat_ipv6_mcast_join_leave() [all …]
|
D | raw.c | 944 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument 947 switch (optname) { in rawv6_seticmpfilter() 961 static int rawv6_geticmpfilter(struct sock *sk, int level, 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, level, optname, optval, optlen); in rawv6_setsockopt() 1049 if (optname == IPV6_CHECKSUM || in rawv6_setsockopt() 1050 optname == IPV6_HDRINCL) in rawv6_setsockopt() [all …]
|
D | udp_impl.h | 19 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.1.9/net/ipv4/bpfilter/ |
D | sockopt.c | 24 static int bpfilter_mbox_request(struct sock *sk, int optname, sockptr_t optval, in bpfilter_mbox_request() argument 48 err = bpfilter_ops.sockopt(sk, optname, optval, optlen, is_set); in bpfilter_mbox_request() 54 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, in bpfilter_ip_set_sockopt() argument 57 return bpfilter_mbox_request(sk, optname, optval, optlen, true); in bpfilter_ip_set_sockopt() 60 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, in bpfilter_ip_get_sockopt() argument 68 return bpfilter_mbox_request(sk, optname, USER_SOCKPTR(optval), len, in bpfilter_ip_get_sockopt()
|
/linux-6.1.9/net/ipv4/ |
D | ip_sockglue.c | 639 static bool setsockopt_needs_rtnl(int optname) in setsockopt_needs_rtnl() argument 641 switch (optname) { in setsockopt_needs_rtnl() 720 static int do_mcast_group_source(struct sock *sk, int optname, in do_mcast_group_source() argument 742 if (optname == MCAST_BLOCK_SOURCE) { in do_mcast_group_source() 745 } else if (optname == MCAST_UNBLOCK_SOURCE) { in do_mcast_group_source() 748 } else if (optname == MCAST_JOIN_SOURCE_GROUP) { in do_mcast_group_source() 844 static int ip_mcast_join_leave(struct sock *sk, int optname, in ip_mcast_join_leave() argument 861 if (optname == MCAST_JOIN_GROUP) in ip_mcast_join_leave() 866 static int compat_ip_mcast_join_leave(struct sock *sk, int optname, in compat_ip_mcast_join_leave() argument 884 if (optname == MCAST_JOIN_GROUP) in compat_ip_mcast_join_leave() [all …]
|
D | udp_impl.h | 15 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.1.9/include/linux/ |
D | bpf-cgroup.h | 140 int *optname, char __user *optval, 143 int optname, char __user *optval, 148 int optname, void *optval, 363 #define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \ argument 370 optname, optval, \ 384 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, optlen, \ argument 393 level, optname)) \ 395 sock, level, optname, optval, optlen, \ 400 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \ argument 406 sock, level, optname, optval, optlen, retval); \ [all …]
|
D | bpfilter.h | 10 int bpfilter_ip_set_sockopt(struct sock *sk, int optname, sockptr_t optval, 12 int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, 20 int (*sockopt)(struct sock *sk, int optname, sockptr_t optval,
|
D | mroute.h | 26 static inline int ip_mroute_setsockopt(struct sock *sock, int optname, in ip_mroute_setsockopt() argument 32 static inline int ip_mroute_getsockopt(struct sock *sk, int optname, in ip_mroute_getsockopt() argument
|
D | mroute6.h | 37 static inline int ip6_mroute_setsockopt(struct sock *sock, int optname, in ip6_mroute_setsockopt() argument 45 int optname, sockptr_t optval, sockptr_t optlen) in ip6_mroute_getsockopt() argument
|
/linux-6.1.9/net/dccp/ |
D | ccid.h | 79 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()
|
D | proto.c | 496 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument 502 switch (optname) { in do_dccp_setsockopt() 513 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 522 if (optname == DCCP_SOCKOPT_SERVICE) in do_dccp_setsockopt() 526 switch (optname) { in do_dccp_setsockopt() 562 int dccp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, in dccp_setsockopt() argument 567 optname, optval, in dccp_setsockopt() 569 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt() 602 static int do_dccp_getsockopt(struct sock *sk, int level, int optname, in do_dccp_getsockopt() argument 616 switch (optname) { in do_dccp_getsockopt() [all …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
D | chtls_hw.c | 178 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()
|
D | chtls_main.c | 478 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.1.9/net/atm/ |
D | pvc.c | 65 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()
|
D | common.h | 23 int vcc_setsockopt(struct socket *sock, int level, int optname, 25 int vcc_getsockopt(struct socket *sock, int level, int optname,
|
/linux-6.1.9/Documentation/security/ |
D | SCTP.rst | 37 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.1.9/security/selinux/ |
D | netlabel.c | 485 static inline int selinux_netlbl_option(int level, int optname) in selinux_netlbl_option() argument 487 return (level == IPPROTO_IP && optname == IP_OPTIONS) || in selinux_netlbl_option() 488 (level == IPPROTO_IPV6 && optname == IPV6_HOPOPTS); in selinux_netlbl_option() 506 int optname) in selinux_netlbl_socket_setsockopt() argument 513 if (selinux_netlbl_option(level, optname) && in selinux_netlbl_socket_setsockopt()
|
/linux-6.1.9/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.c | 232 static void do_getsockopt_bogus_sf_data(int fd, int optname) in do_getsockopt_bogus_sf_data() argument 248 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 254 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 264 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 271 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 277 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 285 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 299 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &_olen); in do_getsockopt_bogus_sf_data()
|