/net/ipv6/ |
D | ipv6_sockglue.c | 126 static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, in do_ipv6_setsockopt() argument 146 if (ip6_mroute_opt(optname)) in do_ipv6_setsockopt() 147 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt() 151 switch (optname) { in do_ipv6_setsockopt() 390 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in do_ipv6_setsockopt() 394 opt = ipv6_renew_options(sk, opt, optname, in do_ipv6_setsockopt() 404 if (optname == IPV6_RTHDR && opt && opt->srcrt) { in do_ipv6_setsockopt() 599 if (optname == IPV6_ADD_MEMBERSHIP) in do_ipv6_setsockopt() 617 if (optname == IPV6_JOIN_ANYCAST) in do_ipv6_setsockopt() 640 if (optname == MCAST_JOIN_GROUP) in do_ipv6_setsockopt() [all …]
|
D | raw.c | 921 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument 924 switch (optname) { in rawv6_seticmpfilter() 938 static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, in rawv6_geticmpfilter() argument 943 switch (optname) { in rawv6_geticmpfilter() 964 static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, in do_rawv6_setsockopt() argument 973 switch (optname) { in do_rawv6_setsockopt() 1006 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument 1016 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1018 if (optname == IPV6_CHECKSUM) in rawv6_setsockopt() 1021 return ipv6_setsockopt(sk, level, optname, optval, optlen); in rawv6_setsockopt() [all …]
|
D | udp_impl.h | 16 int udpv6_getsockopt(struct sock *sk, int level, int optname, 18 int udpv6_setsockopt(struct sock *sk, int level, int optname, 21 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, 23 int compat_udpv6_getsockopt(struct sock *sk, int level, int optname,
|
D | udp.c | 1384 int udpv6_setsockopt(struct sock *sk, int level, int optname, in udpv6_setsockopt() argument 1388 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt() 1390 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt() 1394 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, in compat_udpv6_setsockopt() argument 1398 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt() 1400 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt() 1404 int udpv6_getsockopt(struct sock *sk, int level, int optname, in udpv6_getsockopt() argument 1408 return udp_lib_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1409 return ipv6_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1413 int compat_udpv6_getsockopt(struct sock *sk, int level, int optname, in compat_udpv6_getsockopt() argument [all …]
|
/net/ipv4/ |
D | ip_sockglue.c | 474 int optname, char __user *optval, unsigned int optlen) in do_ip_setsockopt() argument 479 switch (optname) { in do_ip_setsockopt() 515 if (ip_mroute_opt(optname)) in do_ip_setsockopt() 516 return ip_mroute_setsockopt(sk, optname, optval, optlen); in do_ip_setsockopt() 521 switch (optname) { in do_ip_setsockopt() 767 if (optname == IP_ADD_MEMBERSHIP) in do_ip_setsockopt() 823 if (optname == IP_BLOCK_SOURCE) { in do_ip_setsockopt() 826 } else if (optname == IP_UNBLOCK_SOURCE) { in do_ip_setsockopt() 829 } else if (optname == IP_ADD_SOURCE_MEMBERSHIP) { in do_ip_setsockopt() 866 if (optname == MCAST_JOIN_GROUP) in do_ip_setsockopt() [all …]
|
D | udp_impl.h | 13 int udp_setsockopt(struct sock *sk, int level, int optname, 15 int udp_getsockopt(struct sock *sk, int level, int optname, 19 int compat_udp_setsockopt(struct sock *sk, int level, int optname, 21 int compat_udp_getsockopt(struct sock *sk, int level, int optname,
|
D | raw.c | 792 static int do_raw_setsockopt(struct sock *sk, int level, int optname, in do_raw_setsockopt() argument 795 if (optname == ICMP_FILTER) { in do_raw_setsockopt() 804 static int raw_setsockopt(struct sock *sk, int level, int optname, in raw_setsockopt() argument 808 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 809 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 813 static int compat_raw_setsockopt(struct sock *sk, int level, int optname, in compat_raw_setsockopt() argument 817 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt() 818 return do_raw_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt() 822 static int do_raw_getsockopt(struct sock *sk, int level, int optname, in do_raw_getsockopt() argument 825 if (optname == ICMP_FILTER) { in do_raw_getsockopt() [all …]
|
D | tcp.c | 2368 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument 2376 switch (optname) { in do_tcp_setsockopt() 2407 switch (optname) { in do_tcp_setsockopt() 2647 int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, in tcp_setsockopt() argument 2653 return icsk->icsk_af_ops->setsockopt(sk, level, optname, in tcp_setsockopt() 2655 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in tcp_setsockopt() 2660 int compat_tcp_setsockopt(struct sock *sk, int level, int optname, in compat_tcp_setsockopt() argument 2664 return inet_csk_compat_setsockopt(sk, level, optname, in compat_tcp_setsockopt() 2666 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in compat_tcp_setsockopt() 2747 int optname, char __user *optval, int __user *optlen) in do_tcp_getsockopt() argument [all …]
|
D | udp.c | 2030 int udp_lib_setsockopt(struct sock *sk, int level, int optname, in udp_lib_setsockopt() argument 2047 switch (optname) { in udp_lib_setsockopt() 2123 int udp_setsockopt(struct sock *sk, int level, int optname, in udp_setsockopt() argument 2127 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udp_setsockopt() 2129 return ip_setsockopt(sk, level, optname, optval, optlen); in udp_setsockopt() 2133 int compat_udp_setsockopt(struct sock *sk, int level, int optname, in compat_udp_setsockopt() argument 2137 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udp_setsockopt() 2139 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_udp_setsockopt() 2143 int udp_lib_getsockopt(struct sock *sk, int level, int optname, in udp_lib_getsockopt() argument 2157 switch (optname) { in udp_lib_getsockopt() [all …]
|
/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 209 func = rds_info_funcs[optname - RDS_INFO_FIRST]; in rds_info_getsockopt()
|
D | info.h | 21 void rds_info_register_func(int optname, rds_info_func func); 22 void rds_info_deregister_func(int optname, rds_info_func func); 23 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
|
D | af_rds.c | 273 static int rds_setsockopt(struct socket *sock, int level, int optname, in rds_setsockopt() argument 284 switch (optname) { in rds_setsockopt() 310 static int rds_getsockopt(struct socket *sock, int level, int optname, in rds_getsockopt() argument 324 switch (optname) { in rds_getsockopt() 326 ret = rds_info_getsockopt(sock, optname, optval, in rds_getsockopt()
|
/net/ |
D | compat.c | 342 static int do_set_attach_filter(struct socket *sock, int level, int optname, in do_set_attach_filter() argument 358 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, in do_set_attach_filter() 363 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument 378 err = sock_setsockopt(sock, level, optname, (char *)&ktime, sizeof(ktime)); in do_set_sock_timeout() 384 static int compat_sock_setsockopt(struct socket *sock, int level, int optname, in compat_sock_setsockopt() argument 387 if (optname == SO_ATTACH_FILTER) in compat_sock_setsockopt() 388 return do_set_attach_filter(sock, level, optname, in compat_sock_setsockopt() 390 if (optname == SO_RCVTIMEO || optname == SO_SNDTIMEO) in compat_sock_setsockopt() 391 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 393 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt() [all …]
|
/net/dccp/ |
D | proto.c | 499 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument 505 switch (optname) { in do_dccp_setsockopt() 516 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 525 if (optname == DCCP_SOCKOPT_SERVICE) in do_dccp_setsockopt() 529 switch (optname) { in do_dccp_setsockopt() 565 int dccp_setsockopt(struct sock *sk, int level, int optname, in dccp_setsockopt() argument 570 optname, optval, in dccp_setsockopt() 572 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt() 578 int compat_dccp_setsockopt(struct sock *sk, int level, int optname, in compat_dccp_setsockopt() argument 582 return inet_csk_compat_setsockopt(sk, level, optname, in compat_dccp_setsockopt() [all …]
|
D | ccid.h | 82 const int optname, int len, 86 const int optname, int len, 245 const int optname, int len, in ccid_hc_rx_getsockopt() argument 250 rc = ccid->ccid_ops->ccid_hc_rx_getsockopt(sk, optname, len, in ccid_hc_rx_getsockopt() 256 const int optname, int len, in ccid_hc_tx_getsockopt() argument 261 rc = ccid->ccid_ops->ccid_hc_tx_getsockopt(sk, optname, len, in ccid_hc_tx_getsockopt()
|
D | dccp.h | 302 int dccp_getsockopt(struct sock *sk, int level, int optname, 304 int dccp_setsockopt(struct sock *sk, int level, int optname, 307 int compat_dccp_getsockopt(struct sock *sk, int level, int optname, 309 int compat_dccp_setsockopt(struct sock *sk, int level, int optname,
|
/net/atm/ |
D | pvc.c | 64 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument 71 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() 76 static int pvc_getsockopt(struct socket *sock, int level, int optname, in pvc_getsockopt() argument 83 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,
|
D | common.c | 752 int vcc_setsockopt(struct socket *sock, int level, int optname, in vcc_setsockopt() argument 759 if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname)) in vcc_setsockopt() 763 switch (optname) { in vcc_setsockopt() 796 return vcc->dev->ops->setsockopt(vcc, level, optname, optval, optlen); in vcc_setsockopt() 799 int vcc_getsockopt(struct socket *sock, int level, int optname, in vcc_getsockopt() argument 807 if (__SO_LEVEL_MATCH(optname, level) && len != __SO_SIZE(optname)) in vcc_getsockopt() 811 switch (optname) { in vcc_getsockopt() 840 return vcc->dev->ops->getsockopt(vcc, level, optname, optval, len); in vcc_getsockopt()
|
D | svc.c | 452 static int svc_setsockopt(struct socket *sock, int level, int optname, in svc_setsockopt() argument 460 switch (optname) { in svc_setsockopt() 489 error = vcc_setsockopt(sock, level, optname, optval, optlen); in svc_setsockopt() 497 static int svc_getsockopt(struct socket *sock, int level, int optname, in svc_getsockopt() argument 504 if (!__SO_LEVEL_MATCH(optname, level) || optname != SO_ATMSAP) { in svc_getsockopt() 505 error = vcc_getsockopt(sock, level, optname, optval, optlen); in svc_getsockopt()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 648 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old() argument 658 switch (optname) { in rfcomm_sock_setsockopt_old() 689 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument 700 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt() 707 switch (optname) { in rfcomm_sock_setsockopt() 757 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument 773 switch (optname) { in rfcomm_sock_getsockopt_old() 832 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument 841 return rfcomm_sock_getsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_getsockopt() 851 switch (optname) { in rfcomm_sock_getsockopt()
|
/net/l2tp/ |
D | l2tp_ppp.c | 1267 int optname, int val) in pppol2tp_tunnel_setsockopt() argument 1271 switch (optname) { in pppol2tp_tunnel_setsockopt() 1290 int optname, int val) in pppol2tp_session_setsockopt() argument 1295 switch (optname) { in pppol2tp_session_setsockopt() 1362 static int pppol2tp_setsockopt(struct socket *sock, int level, int optname, in pppol2tp_setsockopt() argument 1401 err = pppol2tp_tunnel_setsockopt(sk, tunnel, optname, val); in pppol2tp_setsockopt() 1404 err = pppol2tp_session_setsockopt(sk, session, optname, val); in pppol2tp_setsockopt() 1418 int optname, int *val) in pppol2tp_tunnel_getsockopt() argument 1422 switch (optname) { in pppol2tp_tunnel_getsockopt() 1441 int optname, int *val) in pppol2tp_session_getsockopt() argument [all …]
|
/net/core/ |
D | sock.c | 676 int sock_setsockopt(struct socket *sock, int level, int optname, in sock_setsockopt() argument 689 if (optname == SO_BINDTODEVICE) in sock_setsockopt() 702 switch (optname) { in sock_setsockopt() 843 if (optname == SO_TIMESTAMP) in sock_setsockopt() 1001 int sock_getsockopt(struct socket *sock, int level, int optname, in sock_getsockopt() argument 1022 switch (optname) { in sock_getsockopt() 2146 int sock_no_setsockopt(struct socket *sock, int level, int optname, in sock_no_setsockopt() argument 2153 int sock_no_getsockopt(struct socket *sock, int level, int optname, in sock_no_getsockopt() argument 2520 int sock_common_getsockopt(struct socket *sock, int level, int optname, in sock_common_getsockopt() argument 2525 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in sock_common_getsockopt() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 386 static int l2cap_sock_getsockopt_old(struct socket *sock, int optname, in l2cap_sock_getsockopt_old() argument 403 switch (optname) { in l2cap_sock_getsockopt_old() 489 static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, in l2cap_sock_getsockopt() argument 501 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt() 511 switch (optname) { in l2cap_sock_getsockopt() 625 static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, in l2cap_sock_setsockopt_old() argument 638 switch (optname) { in l2cap_sock_setsockopt_old() 737 static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, in l2cap_sock_setsockopt() argument 751 return l2cap_sock_setsockopt_old(sock, optname, optval, optlen); in l2cap_sock_setsockopt() 758 switch (optname) { in l2cap_sock_setsockopt()
|
/net/ieee802154/ |
D | dgram.c | 423 static int dgram_getsockopt(struct sock *sk, int level, int optname, in dgram_getsockopt() argument 438 switch (optname) { in dgram_getsockopt() 467 static int dgram_setsockopt(struct sock *sk, int level, int optname, in dgram_setsockopt() argument 483 switch (optname) { in dgram_setsockopt()
|