Home
last modified time | relevance | path

Searched refs:setsockopt (Results 1 – 25 of 159) sorted by relevance

1234567

/Linux-v4.19/tools/testing/selftests/net/
Dtcp_mmap.c245 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()
Dreuseport_bpf.c126 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 …]
Dpsock_fanout.c101 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()
Dreuseaddr_conflict.c56 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()
Dpsock_snd.c231 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()
Dtcp_inq.c138 if (setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, in main()
156 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
Dudpgso_bench_rx.c86 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()
Dreuseport_bpf_numa.c61 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()
Dreuseport_bpf_cpu.c65 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()
Dpsock_tpacket.c121 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/
Dumcast_user.c87 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()
Dvector_user.c280 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/
Dtimestamping.c414 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()
Drxtimestamp.c252 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()
Dtxtimestamp.c299 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/
Dusbip_network.c219 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/
Duserspace-if.rst43 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/
Dpacket_mmap.txt63 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/
Dsockex1_user.c26 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, in main()
Dsockex2_user.c34 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, in main()
Dsockex3_user.c57 assert(setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd[4], in main()
Dsock_example.c72 if (setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, in test_sock()
/Linux-v4.19/net/tls/
Dtls_main.c543 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/
Dsys_ni.c232 COND_SYSCALL(setsockopt);
233 COND_SYSCALL_COMPAT(setsockopt);
/Linux-v4.19/net/ipv4/
Dudplite.c49 .setsockopt = udp_setsockopt,

1234567