/linux/net/mptcp/ |
A D | sockopt.c | 81 switch (optname) { in mptcp_sol_socket_sync_intval() 180 switch (optname) { in mptcp_setsockopt_sol_socket_int() 206 int optname, in mptcp_setsockopt_sol_socket_timestamping() argument 297 switch (optname) { in mptcp_setsockopt_sol_socket() 391 switch (optname) { in mptcp_setsockopt_v6() 414 switch (optname) { in mptcp_supported_sockopt() 459 switch (optname) { in mptcp_supported_sockopt() 518 switch (optname) { in mptcp_supported_sockopt() 603 switch (optname) { in mptcp_setsockopt_sol_tcp() 937 switch (optname) { in mptcp_getsockopt_sol_tcp() [all …]
|
/linux/net/ipv6/ |
A D | ipv6_sockglue.c | 123 switch (optname) { in setsockopt_needs_rtnl() 179 if (optname == MCAST_BLOCK_SOURCE) { in do_ipv6_mcast_group_source() 294 if (optname == MCAST_JOIN_GROUP) in ipv6_mcast_join_leave() 314 if (optname == MCAST_JOIN_GROUP) in compat_ipv6_mcast_join_leave() 415 if (ip6_mroute_opt(optname)) in do_ipv6_setsockopt() 422 switch (optname) { in do_ipv6_setsockopt() 858 if (optname == IPV6_JOIN_ANYCAST) in do_ipv6_setsockopt() 1016 optname != IPV6_XFRM_POLICY) in ipv6_setsockopt() 1031 switch (optname) { in ipv6_getsockopt_sticky() 1133 if (ip6_mroute_opt(optname)) in do_ipv6_getsockopt() [all …]
|
A D | raw.c | 977 switch (optname) { in rawv6_seticmpfilter() 996 switch (optname) { in rawv6_geticmpfilter() 1029 switch (optname) { in do_rawv6_setsockopt() 1079 if (optname == IPV6_CHECKSUM || in rawv6_setsockopt() 1080 optname == IPV6_HDRINCL) in rawv6_setsockopt() 1084 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1087 return do_rawv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1099 switch (optname) { in do_rawv6_getsockopt() 1140 if (optname == IPV6_CHECKSUM || in rawv6_getsockopt() 1141 optname == IPV6_HDRINCL) in rawv6_getsockopt() [all …]
|
A D | udp_impl.h | 18 int udpv6_getsockopt(struct sock *sk, int level, int optname, 20 int udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval,
|
/linux/tools/testing/selftests/bpf/progs/ |
A 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() 84 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt() 142 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt() 151 if (ctx->level == SOL_SOCKET && ctx->optname == SO_SNDBUF) { in _setsockopt() 163 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt() 175 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
|
A 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()
|
/linux/net/rds/ |
A 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()
|
A 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/net/ipv4/ |
A D | ip_sockglue.c | 641 switch (optname) { in setsockopt_needs_rtnl() 899 switch (optname) { in do_ip_setsockopt() 939 if (optname == IP_ROUTER_ALERT) in do_ip_setsockopt() 941 if (ip_mroute_opt(optname)) in do_ip_setsockopt() 949 switch (optname) { in do_ip_setsockopt() 1442 optname != IP_XFRM_POLICY && in ip_setsockopt() 1443 !ip_mroute_opt(optname)) in ip_setsockopt() 1457 switch (optname) { in getsockopt_needs_rtnl() 1535 if (ip_mroute_opt(optname)) in do_ip_getsockopt() 1547 switch (optname) { in do_ip_getsockopt() [all …]
|
A 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/net/ipv4/bpfilter/ |
A 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/include/linux/ |
A D | bpf-cgroup.h | 186 int *optname, char __user *optval, 189 int optname, char __user *optval, 194 int optname, void *optval, 400 #define BPF_CGROUP_RUN_PROG_SETSOCKOPT(sock, level, optname, optval, optlen, \ argument 406 optname, optval, \ 428 level, optname)) \ 430 sock, level, optname, optval, optlen, \ 441 sock, level, optname, optval, optlen, retval); \ 521 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT(sock, level, optname, optval, \ argument 523 #define BPF_CGROUP_RUN_PROG_GETSOCKOPT_KERN(sock, level, optname, optval, \ argument [all …]
|
A 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,
|
A 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 *sock, int optname, in ip_mroute_getsockopt() argument
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A 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()
|
A 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/net/dccp/ |
A 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()
|
A D | proto.c | 514 switch (optname) { in do_dccp_setsockopt() 525 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 534 if (optname == DCCP_SOCKOPT_SERVICE) in do_dccp_setsockopt() 538 switch (optname) { in do_dccp_setsockopt() 579 optname, optval, in dccp_setsockopt() 581 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt() 628 switch (optname) { in do_dccp_getsockopt() 666 return ccid_hc_rx_getsockopt(dp->dccps_hc_rx_ccid, sk, optname, in do_dccp_getsockopt() 682 int dccp_getsockopt(struct sock *sk, int level, int optname, in dccp_getsockopt() argument 687 optname, optval, in dccp_getsockopt() [all …]
|
/linux/net/atm/ |
A 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()
|
/linux/Documentation/security/ |
A D | SCTP.rst | 40 based on the ``@optname`` that will result in either a bind or connect 46 @optname - Name of the option to validate. 54 | @optname | @address contains | 63 | @optname | @address contains | 71 A summary of the ``@optname`` entries is as follows:: 105 ASCONF chunk when the corresponding ``@optname``'s are present:: 107 @optname ASCONF Parameter 232 Checks permissions required for ipv4/ipv6 addresses based on the ``@optname`` 237 | @optname | @address contains | 246 | @optname | @address contains | [all …]
|
/linux/net/tls/ |
A D | tls_main.c | 516 static int do_tls_getsockopt(struct sock *sk, int optname, in do_tls_getsockopt() argument 521 switch (optname) { in do_tls_getsockopt() 525 optname == TLS_TX); in do_tls_getsockopt() 534 static int tls_getsockopt(struct sock *sk, int level, int optname, in tls_getsockopt() argument 541 optname, optval, optlen); in tls_getsockopt() 543 return do_tls_getsockopt(sk, optname, optval, optlen); in tls_getsockopt() 688 switch (optname) { in do_tls_setsockopt() 693 optname == TLS_TX); in do_tls_setsockopt() 703 static int tls_setsockopt(struct sock *sk, int level, int optname, in tls_setsockopt() argument 709 return ctx->sk_proto->setsockopt(sk, level, optname, optval, in tls_setsockopt() [all …]
|
/linux/security/selinux/ |
A 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/tools/testing/selftests/net/mptcp/ |
A D | mptcp_sockopt.c | 230 static void do_getsockopt_bogus_sf_data(int fd, int optname) in do_getsockopt_bogus_sf_data() argument 246 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 252 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 262 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 269 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 275 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 283 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 297 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &_olen); in do_getsockopt_bogus_sf_data()
|
/linux/net/bluetooth/rfcomm/ |
A D | sock.c | 621 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, in rfcomm_sock_setsockopt_old() argument 632 switch (optname) { in rfcomm_sock_setsockopt_old() 663 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, in rfcomm_sock_setsockopt() argument 675 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt() 682 switch (optname) { in rfcomm_sock_setsockopt() 732 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument 748 switch (optname) { in rfcomm_sock_getsockopt_old() 807 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument 816 return rfcomm_sock_getsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_getsockopt() 826 switch (optname) { in rfcomm_sock_getsockopt()
|
/linux/net/l2tp/ |
A D | l2tp_ppp.c | 1152 int optname, int val) in pppol2tp_tunnel_setsockopt() argument 1156 switch (optname) { in pppol2tp_tunnel_setsockopt() 1173 int optname, int val) in pppol2tp_session_setsockopt() argument 1177 switch (optname) { in pppol2tp_session_setsockopt() 1262 err = pppol2tp_tunnel_setsockopt(sk, tunnel, optname, val); in pppol2tp_setsockopt() 1264 err = pppol2tp_session_setsockopt(sk, session, optname, val); in pppol2tp_setsockopt() 1276 int optname, int *val) in pppol2tp_tunnel_getsockopt() argument 1280 switch (optname) { in pppol2tp_tunnel_getsockopt() 1298 int optname, int *val) in pppol2tp_session_getsockopt() argument 1302 switch (optname) { in pppol2tp_session_getsockopt() [all …]
|