/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() 141 static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, in do_ipv6_setsockopt() argument 148 bool needs_rtnl = setsockopt_needs_rtnl(optname); in do_ipv6_setsockopt() 162 if (ip6_mroute_opt(optname)) in do_ipv6_setsockopt() 163 return ip6_mroute_setsockopt(sk, optname, optval, optlen); in do_ipv6_setsockopt() 169 switch (optname) { in do_ipv6_setsockopt() 415 if (optname != IPV6_RTHDR && !ns_capable(net->user_ns, CAP_NET_RAW)) in do_ipv6_setsockopt() 419 opt = ipv6_renew_options(sk, opt, optname, in do_ipv6_setsockopt() 429 if (optname == IPV6_RTHDR && opt && opt->srcrt) { in do_ipv6_setsockopt() [all …]
|
D | raw.c | 939 static int rawv6_seticmpfilter(struct sock *sk, int level, int optname, in rawv6_seticmpfilter() argument 942 switch (optname) { in rawv6_seticmpfilter() 956 static int rawv6_geticmpfilter(struct sock *sk, int level, int optname, in rawv6_geticmpfilter() argument 961 switch (optname) { in rawv6_geticmpfilter() 982 static int do_rawv6_setsockopt(struct sock *sk, int level, int optname, in do_rawv6_setsockopt() argument 991 switch (optname) { in do_rawv6_setsockopt() 1024 static int rawv6_setsockopt(struct sock *sk, int level, int optname, in rawv6_setsockopt() argument 1034 return rawv6_seticmpfilter(sk, level, optname, optval, optlen); in rawv6_setsockopt() 1036 if (optname == IPV6_CHECKSUM) in rawv6_setsockopt() 1039 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 | 1428 int udpv6_setsockopt(struct sock *sk, int level, int optname, in udpv6_setsockopt() argument 1432 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udpv6_setsockopt() 1434 return ipv6_setsockopt(sk, level, optname, optval, optlen); in udpv6_setsockopt() 1438 int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, in compat_udpv6_setsockopt() argument 1442 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udpv6_setsockopt() 1444 return compat_ipv6_setsockopt(sk, level, optname, optval, optlen); in compat_udpv6_setsockopt() 1448 int udpv6_getsockopt(struct sock *sk, int level, int optname, in udpv6_getsockopt() argument 1452 return udp_lib_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1453 return ipv6_getsockopt(sk, level, optname, optval, optlen); in udpv6_getsockopt() 1457 int compat_udpv6_getsockopt(struct sock *sk, int level, int optname, in compat_udpv6_getsockopt() argument [all …]
|
/net/ipv4/ |
D | ip_sockglue.c | 555 static bool setsockopt_needs_rtnl(int optname) in setsockopt_needs_rtnl() argument 557 switch (optname) { in setsockopt_needs_rtnl() 578 int optname, char __user *optval, unsigned int optlen) in do_ip_setsockopt() argument 582 bool needs_rtnl = setsockopt_needs_rtnl(optname); in do_ip_setsockopt() 584 switch (optname) { in do_ip_setsockopt() 622 if (ip_mroute_opt(optname)) in do_ip_setsockopt() 623 return ip_mroute_setsockopt(sk, optname, optval, optlen); in do_ip_setsockopt() 630 switch (optname) { in do_ip_setsockopt() 897 if (optname == IP_ADD_MEMBERSHIP) in do_ip_setsockopt() 953 if (optname == IP_BLOCK_SOURCE) { 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 | 825 static int do_raw_setsockopt(struct sock *sk, int level, int optname, in do_raw_setsockopt() argument 828 if (optname == ICMP_FILTER) { in do_raw_setsockopt() 837 static int raw_setsockopt(struct sock *sk, int level, int optname, in raw_setsockopt() argument 841 return ip_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 842 return do_raw_setsockopt(sk, level, optname, optval, optlen); in raw_setsockopt() 846 static int compat_raw_setsockopt(struct sock *sk, int level, int optname, in compat_raw_setsockopt() argument 850 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt() 851 return do_raw_setsockopt(sk, level, optname, optval, optlen); in compat_raw_setsockopt() 855 static int do_raw_getsockopt(struct sock *sk, int level, int optname, in do_raw_getsockopt() argument 858 if (optname == ICMP_FILTER) { in do_raw_getsockopt() [all …]
|
D | tcp.c | 2356 int optname, char __user *optval, unsigned int optlen) in do_tcp_setsockopt() argument 2364 switch (optname) { in do_tcp_setsockopt() 2395 switch (optname) { in do_tcp_setsockopt() 2641 int tcp_setsockopt(struct sock *sk, int level, int optname, char __user *optval, in tcp_setsockopt() argument 2647 return icsk->icsk_af_ops->setsockopt(sk, level, optname, in tcp_setsockopt() 2649 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in tcp_setsockopt() 2654 int compat_tcp_setsockopt(struct sock *sk, int level, int optname, in compat_tcp_setsockopt() argument 2658 return inet_csk_compat_setsockopt(sk, level, optname, in compat_tcp_setsockopt() 2660 return do_tcp_setsockopt(sk, level, optname, optval, optlen); in compat_tcp_setsockopt() 2756 int optname, char __user *optval, int __user *optlen) in do_tcp_getsockopt() argument [all …]
|
D | udp.c | 2065 int udp_lib_setsockopt(struct sock *sk, int level, int optname, in udp_lib_setsockopt() argument 2082 switch (optname) { in udp_lib_setsockopt() 2158 int udp_setsockopt(struct sock *sk, int level, int optname, in udp_setsockopt() argument 2162 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in udp_setsockopt() 2164 return ip_setsockopt(sk, level, optname, optval, optlen); in udp_setsockopt() 2168 int compat_udp_setsockopt(struct sock *sk, int level, int optname, in compat_udp_setsockopt() argument 2172 return udp_lib_setsockopt(sk, level, optname, optval, optlen, in compat_udp_setsockopt() 2174 return compat_ip_setsockopt(sk, level, optname, optval, optlen); in compat_udp_setsockopt() 2178 int udp_lib_getsockopt(struct sock *sk, int level, int optname, in udp_lib_getsockopt() argument 2192 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 | 280 static int rds_setsockopt(struct socket *sock, int level, int optname, in rds_setsockopt() argument 291 switch (optname) { in rds_setsockopt() 322 static int rds_getsockopt(struct socket *sock, int level, int optname, in rds_getsockopt() argument 337 switch (optname) { in rds_getsockopt() 339 ret = rds_info_getsockopt(sock, optname, optval, in rds_getsockopt()
|
/net/ |
D | compat.c | 314 static int do_set_attach_filter(struct socket *sock, int level, int optname, in do_set_attach_filter() argument 330 return sock_setsockopt(sock, level, optname, (char __user *)kfprog, in do_set_attach_filter() 335 int optname, char __user *optval, unsigned int optlen) in do_set_sock_timeout() argument 350 err = sock_setsockopt(sock, level, optname, (char *)&ktime, sizeof(ktime)); in do_set_sock_timeout() 356 static int compat_sock_setsockopt(struct socket *sock, int level, int optname, in compat_sock_setsockopt() argument 359 if (optname == SO_ATTACH_FILTER) in compat_sock_setsockopt() 360 return do_set_attach_filter(sock, level, optname, in compat_sock_setsockopt() 363 (optname == SO_RCVTIMEO || optname == SO_SNDTIMEO)) in compat_sock_setsockopt() 364 return do_set_sock_timeout(sock, level, optname, optval, optlen); in compat_sock_setsockopt() 366 return sock_setsockopt(sock, level, optname, optval, optlen); in compat_sock_setsockopt() [all …]
|
/net/dccp/ |
D | proto.c | 501 static int do_dccp_setsockopt(struct sock *sk, int level, int optname, in do_dccp_setsockopt() argument 507 switch (optname) { in do_dccp_setsockopt() 518 return dccp_setsockopt_ccid(sk, optname, optval, optlen); in do_dccp_setsockopt() 527 if (optname == DCCP_SOCKOPT_SERVICE) in do_dccp_setsockopt() 531 switch (optname) { in do_dccp_setsockopt() 567 int dccp_setsockopt(struct sock *sk, int level, int optname, in dccp_setsockopt() argument 572 optname, optval, in dccp_setsockopt() 574 return do_dccp_setsockopt(sk, level, optname, optval, optlen); in dccp_setsockopt() 580 int compat_dccp_setsockopt(struct sock *sk, int level, int optname, in compat_dccp_setsockopt() argument 584 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 | 303 int dccp_getsockopt(struct sock *sk, int level, int optname, 305 int dccp_setsockopt(struct sock *sk, int level, int optname, 308 int compat_dccp_getsockopt(struct sock *sk, int level, int optname, 310 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 | 22 int vcc_setsockopt(struct socket *sock, int level, int optname, 24 int vcc_getsockopt(struct socket *sock, int level, int optname,
|
D | common.c | 743 int vcc_setsockopt(struct socket *sock, int level, int optname, in vcc_setsockopt() argument 750 if (__SO_LEVEL_MATCH(optname, level) && optlen != __SO_SIZE(optname)) in vcc_setsockopt() 754 switch (optname) { in vcc_setsockopt() 787 return vcc->dev->ops->setsockopt(vcc, level, optname, optval, optlen); in vcc_setsockopt() 790 int vcc_getsockopt(struct socket *sock, int level, int optname, in vcc_getsockopt() argument 798 if (__SO_LEVEL_MATCH(optname, level) && len != __SO_SIZE(optname)) in vcc_getsockopt() 802 switch (optname) { in vcc_getsockopt() 831 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/decnet/ |
D | af_decnet.c | 160 static int __dn_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsign… 161 static int __dn_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __… 1329 static int dn_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned… in dn_setsockopt() argument 1335 err = __dn_setsockopt(sock, level, optname, optval, optlen, 0); in dn_setsockopt() 1339 if (err == -ENOPROTOOPT && optname != DSO_LINKINFO && in dn_setsockopt() 1340 optname != DSO_STREAM && optname != DSO_SEQPACKET) in dn_setsockopt() 1341 err = nf_setsockopt(sk, PF_DECnet, optname, optval, optlen); in dn_setsockopt() 1347 static int __dn_setsockopt(struct socket *sock, int level,int optname, char __user *optval, unsigne… in __dn_setsockopt() argument 1372 switch (optname) { in __dn_setsockopt() 1508 static int dn_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __us… in dn_getsockopt() argument [all …]
|
/net/bluetooth/rfcomm/ |
D | sock.c | 647 static int rfcomm_sock_setsockopt_old(struct socket *sock, int optname, char __user *optval, unsign… in rfcomm_sock_setsockopt_old() argument 657 switch (optname) { in rfcomm_sock_setsockopt_old() 688 static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_setsockopt() argument 699 return rfcomm_sock_setsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_setsockopt() 706 switch (optname) { in rfcomm_sock_setsockopt() 756 static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __… in rfcomm_sock_getsockopt_old() argument 772 switch (optname) { in rfcomm_sock_getsockopt_old() 831 static int rfcomm_sock_getsockopt(struct socket *sock, int level, int optname, char __user *optval,… in rfcomm_sock_getsockopt() argument 840 return rfcomm_sock_getsockopt_old(sock, optname, optval, optlen); in rfcomm_sock_getsockopt() 850 switch (optname) { in rfcomm_sock_getsockopt()
|
/net/l2tp/ |
D | l2tp_ppp.c | 1322 int optname, int val) in pppol2tp_tunnel_setsockopt() argument 1326 switch (optname) { in pppol2tp_tunnel_setsockopt() 1345 int optname, int val) in pppol2tp_session_setsockopt() argument 1349 switch (optname) { in pppol2tp_session_setsockopt() 1416 static int pppol2tp_setsockopt(struct socket *sock, int level, int optname, in pppol2tp_setsockopt() argument 1455 err = pppol2tp_tunnel_setsockopt(sk, tunnel, optname, val); in pppol2tp_setsockopt() 1458 err = pppol2tp_session_setsockopt(sk, session, optname, val); in pppol2tp_setsockopt() 1472 int optname, int *val) in pppol2tp_tunnel_getsockopt() argument 1476 switch (optname) { in pppol2tp_tunnel_getsockopt() 1495 int optname, int *val) in pppol2tp_session_getsockopt() argument [all …]
|
/net/core/ |
D | sock.c | 689 int sock_setsockopt(struct socket *sock, int level, int optname, in sock_setsockopt() argument 702 if (optname == SO_BINDTODEVICE) in sock_setsockopt() 715 switch (optname) { in sock_setsockopt() 857 if (optname == SO_TIMESTAMP) in sock_setsockopt() 1030 int sock_getsockopt(struct socket *sock, int level, int optname, in sock_getsockopt() argument 1051 switch (optname) { in sock_getsockopt() 2248 int sock_no_setsockopt(struct socket *sock, int level, int optname, in sock_no_setsockopt() argument 2255 int sock_no_getsockopt(struct socket *sock, int level, int optname, in sock_no_getsockopt() argument 2647 int sock_common_getsockopt(struct socket *sock, int level, int optname, in sock_common_getsockopt() argument 2652 return sk->sk_prot->getsockopt(sk, level, optname, optval, optlen); in sock_common_getsockopt() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 391 static int l2cap_sock_getsockopt_old(struct socket *sock, int optname, in l2cap_sock_getsockopt_old() argument 408 switch (optname) { in l2cap_sock_getsockopt_old() 494 static int l2cap_sock_getsockopt(struct socket *sock, int level, int optname, in l2cap_sock_getsockopt() argument 506 return l2cap_sock_getsockopt_old(sock, optname, optval, optlen); in l2cap_sock_getsockopt() 516 switch (optname) { in l2cap_sock_getsockopt() 630 static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, in l2cap_sock_setsockopt_old() argument 643 switch (optname) { in l2cap_sock_setsockopt_old() 742 static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, in l2cap_sock_setsockopt() argument 756 return l2cap_sock_setsockopt_old(sock, optname, optval, optlen); in l2cap_sock_setsockopt() 763 switch (optname) { in l2cap_sock_setsockopt()
|