| /Linux-v4.19/tools/testing/selftests/net/ |
| D | tcp_mmap.c | 245 if (rcvbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf() 250 if (sndbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf() 287 if (setsockopt(fdlisten, SOL_SOCKET, SO_RCVLOWAT, in do_accept() 378 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main() 383 setsockopt(fdlisten, IPPROTO_TCP, TCP_MAXSEG, in main() 415 setsockopt(fd, IPPROTO_TCP, TCP_MAXSEG, &mss, sizeof(mss)) == -1) { in main() 424 setsockopt(fd, SOL_SOCKET, SO_MAX_PACING_RATE, in main() 428 if (zflg && setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, in main()
|
| D | reuseport_bpf.c | 126 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf() 148 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &p, sizeof(p))) in attach_cbpf() 165 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_recv_group() 177 if (setsockopt(fd[i], SOL_TCP, TCP_FASTOPEN, &opt, in build_recv_group() 199 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) in send_from() 322 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 324 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter() 378 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport() 383 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &cprog, in test_filter_no_reuseport() 401 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind() [all …]
|
| D | psock_fanout.c | 101 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT, &val, sizeof(val))) { in sock_fanout_open() 123 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog, in sock_fanout_set_cbpf() 179 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &pfd, sizeof(pfd))) { in sock_fanout_set_ebpf() 201 if (setsockopt(fd, SOL_PACKET, PACKET_VERSION, (void *) &val, in sock_fanout_open_ring() 206 if (setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, in sock_fanout_open_ring()
|
| D | reuseaddr_conflict.c | 56 if (ipv6 && setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void*)&v6only, in open_port() 62 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, in open_port()
|
| D | psock_snd.c | 231 setsockopt(fd, SOL_PACKET, PACKET_QDISC_BYPASS, &one, sizeof(one))) in do_tx() 235 setsockopt(fd, SOL_PACKET, PACKET_VNET_HDR, &one, sizeof(one))) in do_tx() 261 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) in setup_rx() 299 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) in setup_sniffer()
|
| D | tcp_inq.c | 138 if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, in main() 156 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
|
| D | udpgso_bench_rx.c | 86 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, sizeof(val))) in do_socket() 89 if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) in do_socket()
|
| D | reuseport_bpf_numa.c | 61 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 100 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_bpf()
|
| D | reuseport_bpf_cpu.c | 65 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 90 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &p, sizeof(p))) in attach_bpf()
|
| D | psock_tpacket.c | 121 ret = setsockopt(sock, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver)); in pfsocket() 360 ret = setsockopt(sock, SOL_PACKET, PACKET_LOSS, (void *) &discard, in __v1_v2_set_packet_loss_discard() 695 ret = setsockopt(sock, SOL_PACKET, type, &ring->req, in setup_ring() 701 ret = setsockopt(sock, SOL_PACKET, type, &ring->req3, in setup_ring()
|
| /Linux-v4.19/arch/um/drivers/ |
| D | umcast_user.c | 87 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)) < 0) { in umcast_open() 96 if (setsockopt(fd, SOL_IP, IP_MULTICAST_TTL, &pri->ttl, in umcast_open() 105 if (setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, in umcast_open() 126 if (setsockopt(fd, SOL_IP, IP_ADD_MEMBERSHIP, in umcast_open() 158 if (setsockopt(fd, SOL_IP, IP_DROP_MEMBERSHIP, in umcast_close()
|
| D | vector_user.c | 280 if (setsockopt(fd, in uml_raw_enable_qdisc_bypass() 292 if (setsockopt(fd, in uml_raw_enable_vnet_headers() 547 int err = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, bpf, bpf_len); in uml_vector_attach_bpf()
|
| /Linux-v4.19/tools/testing/selftests/networking/timestamping/ |
| D | timestamping.c | 414 if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_IF, in main() 419 if (setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, in main() 423 if (setsockopt(sock, IPPROTO_IP, IP_MULTICAST_LOOP, in main() 430 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, in main() 435 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS, in main() 440 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, in main() 446 if (setsockopt(sock, SOL_IP, IP_PKTINFO, in main()
|
| D | rxtimestamp.c | 252 if (setsockopt(rcv, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in config_so_flags() 256 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMP, in config_so_flags() 261 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPNS, in config_so_flags() 266 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPING, in config_so_flags()
|
| D | txtimestamp.c | 299 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, in do_test() 314 if (setsockopt(fd, SOL_IPV6, IPV6_RECVPKTINFO, in do_test() 318 if (setsockopt(fd, SOL_IP, IP_PKTINFO, in do_test() 330 if (setsockopt(fd, SOL_SOCKET, SO_TIMESTAMPING, in do_test()
|
| /Linux-v4.19/tools/usb/usbip/src/ |
| D | usbip_network.c | 219 ret = setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)); in usbip_net_set_reuseaddr() 231 ret = setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, &val, sizeof(val)); in usbip_net_set_nodelay() 243 ret = setsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val)); in usbip_net_set_keepalive() 255 ret = setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, &val, sizeof(val)); in usbip_net_set_v6only()
|
| /Linux-v4.19/Documentation/crypto/ |
| D | userspace-if.rst | 43 addition, the setsockopt option type is SOL_ALG. In case the user space 117 salg_name. Please see below for the setsockopt interface that explains 134 the setsockopt() option of ALG_SET_KEY. If the key is not set the HMAC 156 the setsockopt invocation below. 210 the setsockopt invocation below. 214 To set the authentication tag size, the caller must use the setsockopt 270 sendmsg and setsockopt calls (see there). As the kernel knows the size 305 using the setsockopt interface to set the key. For example, the 355 additional information is set using the setsockopt system call that must 359 Each setsockopt invocation must use the level SOL_ALG. [all …]
|
| /Linux-v4.19/Documentation/networking/ |
| D | packet_mmap.txt | 63 setsockopt() ---> allocation of the circular buffer (ring) 104 setsockopt() ---> allocation of the circular buffer (ring) 177 to make this work it must be enabled previously with setsockopt() 187 setsockopt(fd, SOL_PACKET, PACKET_RX_RING, (void *) &req, sizeof(req)) 189 setsockopt(fd, SOL_PACKET, PACKET_TX_RING, (void *) &req, sizeof(req)) 414 setsockopt(fd, SOL_PACKET, PACKET_RX_RING, &foo, sizeof(foo)); 415 setsockopt(fd, SOL_PACKET, PACKET_TX_RING, &bar, sizeof(bar)); 442 enabled previously with setsockopt() and 525 setsockopt(fd, SOL_PACKET, PACKET_VERSION, &val, sizeof(val)); 531 - Default if not otherwise specified by setsockopt(2) [all …]
|
| /Linux-v4.19/samples/bpf/ |
| D | sockex1_user.c | 26 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, in main()
|
| D | sockex2_user.c | 34 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, in main()
|
| D | sockex3_user.c | 57 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd[4], in main()
|
| D | sock_example.c | 72 if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, in test_sock()
|
| /Linux-v4.19/net/tls/ |
| D | tls_main.c | 543 return ctx->setsockopt(sk, level, optname, optval, optlen); 626 prot[TLS_BASE][TLS_BASE].setsockopt = tls_setsockopt; 688 ctx->setsockopt = sk->sk_prot->setsockopt;
|
| /Linux-v4.19/kernel/ |
| D | sys_ni.c | 232 COND_SYSCALL(setsockopt); 233 COND_SYSCALL_COMPAT(setsockopt);
|
| /Linux-v4.19/net/ipv4/ |
| D | udplite.c | 49 .setsockopt = udp_setsockopt,
|