Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 25 of 88) sorted by relevance

1234

/tools/testing/selftests/bpf/
Dtcp_client.py7 import socket, time
16 except (socket.error) as e: return b''
25 except (socket.error) as e: n = 0
35 sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
38 except socket.error as e:
Dtcp_server.py7 import socket, time
16 except (socket.error) as e: return b''
25 except (socket.error) as e: n = 0
39 serverSocket = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
42 except socket.error as msg:
Dtest_socket_cookie.c31 fd = socket(AF_INET6, SOCK_STREAM, 0); in start_server()
67 fd = socket(AF_INET6, SOCK_STREAM, 0); in connect_to_server()
Dtest_tcp_check_syncookie_user.c25 fd = socket(addr->sa_family, SOCK_STREAM, 0); in start_server()
61 fd = socket(addr.ss_family, SOCK_STREAM, 0); in connect_to_server()
/tools/perf/tests/
Dhists_filter.c21 int socket; member
27 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_KERNEL_SCHEDULE, .socket = 0 },
29 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_PERF_MAIN, .socket = 0 },
31 { .pid = FAKE_PID_PERF1, .ip = FAKE_IP_LIBC_MALLOC, .socket = 0 },
33 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_MAIN, .socket = 0 }, /* will be merged */
35 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_PERF_CMD_RECORD, .socket = 1 },
37 { .pid = FAKE_PID_PERF2, .ip = FAKE_IP_KERNEL_PAGE_FAULT, .socket = 1 },
39 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_MAIN, .socket = 2 },
41 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_BASH_XMALLOC, .socket = 2 },
43 { .pid = FAKE_PID_BASH, .ip = FAKE_IP_LIBC_MALLOC, .socket = 3 },
[all …]
/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst83 **ingress** ingress path of the inet socket (since 4.10);
84 **egress** egress path of the inet socket (since 4.10);
85 **sock_create** opening of an inet socket (since 4.10);
86 **sock_ops** various socket operations (since 4.12);
88 **bind4** call to bind(2) for an inet4 socket (since 4.17);
89 **bind6** call to bind(2) for an inet6 socket (since 4.17);
90 **post_bind4** return from bind(2) for an inet4 socket (since 4.17);
91 **post_bind6** return from bind(2) for an inet6 socket (since 4.17);
92 **connect4** call to connect(2) for an inet4 socket (since 4.17);
93 **connect6** call to connect(2) for an inet6 socket (since 4.17);
[all …]
/tools/testing/selftests/net/
Drun_netsocktests7 ./socket
D.gitignore2 socket
Dpsock_lib.h79 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
80 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
Dreuseport_bpf.c160 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group()
194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from()
314 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter()
317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter()
370 fd = socket(p.recv_family, p.protocol, 0); in test_filter_no_reuseport()
395 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
398 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
Dtxring_overwrite.c79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
Dreuseport_addr_any.c75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
147 fd = socket(family, proto, 0); in connect_and_send()
249 test_fd = socket(AF_INET, proto, 0); in test_proto()
Dtcp_inq.c124 server_fd = socket(family, SOCK_STREAM, 0); in main()
140 fd = socket(family, SOCK_STREAM, 0); in main()
Dpsock_snd.c223 fd = socket(PF_PACKET, cfg_use_dgram ? SOCK_DGRAM : SOCK_RAW, 0); in do_tx()
257 fd = socket(PF_INET, SOCK_DGRAM, 0); in setup_rx()
295 fd = socket(PF_PACKET, SOCK_RAW, 0); in setup_sniffer()
Dsocket.c48 fd = socket(s->domain, s->type, s->protocol); in run_tests()
Dipv6_flowlabel.c191 fdt = socket(PF_INET6, SOCK_DGRAM, 0); in main()
195 fdr = socket(PF_INET6, SOCK_DGRAM, 0); in main()
DMakefile15 TEST_GEN_FILES = socket nettest
Dreuseport_dualstack.c56 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
86 fd = socket(AF_INET, proto, 0); in send_from_v4()
/tools/perf/trace/beauty/
DBuild17 perf-y += socket.o
/tools/testing/selftests/proc/
Dsetns-dcache.c61 if (socket(AF_UNIX, SOCK_STREAM, 0) == -1) { in main()
/tools/testing/selftests/bpf/prog_tests/
Dsockopt_inherit.c16 fd = socket(AF_INET, SOCK_STREAM, 0); in connect_to_server()
114 fd = socket(AF_INET, SOCK_STREAM, 0); in start_server()
Dsockmap_basic.c21 s = socket(AF_INET, SOCK_STREAM, 0); in connected_socket_v4()
Dtcp_rtt.c96 fd = socket(AF_INET, SOCK_STREAM, 0); in connect_to_server()
191 fd = socket(AF_INET, SOCK_STREAM, 0); in start_server()
/tools/usb/usbip/
Dconfigure.ac32 string.h sys/socket.h syslog.h unistd.h])
44 AC_CHECK_FUNCS([memset mkdir regcomp socket strchr strerror strstr dnl
/tools/testing/vsock/
Dvsock_diag_test.c269 fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in read_vsock_stat()
365 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_listen_socket_server()
406 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_connect_client()
455 fd = socket(AF_VSOCK, SOCK_STREAM, 0); in test_connect_server()

1234