/linux-6.6.21/tools/testing/selftests/bpf/ |
D | network_helpers.c | 170 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) in start_reuseport_server() 204 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect() 293 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd_opts() 341 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_fd_to_fd() 450 err = getsockname(sock_fd, (struct sockaddr *)&addr, &addrlen); in get_socket_local_port()
|
D | test_tcp_check_syncookie_user.c | 209 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in get_port()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | fin_ack_lat.c | 75 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in client() 140 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in main()
|
D | bind_timewait.c | 58 ret = getsockname(server_fd, (struct sockaddr *)&self->addr, &self->addrlen); in create_timewait_socket()
|
D | bind_wildcard.c | 126 ret = getsockname(fd[0], addr1, &addrlen1); in bind_sockets()
|
D | so_incoming_cpu.c | 167 ret = getsockname(self->servers[i], &self->addr, &self->addrlen); in create_servers()
|
D | tls.c | 131 ret = getsockname(sfd, &addr, &len); in ulp_sock_pair() 1910 ret = getsockname(sfd, &addr, &len); in TEST() 2024 ret = getsockname(sfd, &addr, &len); in TEST() 2031 ret = getsockname(fd, &addr, &len); in TEST() 2048 ret = getsockname(fd, &addr2, &len2); in TEST() 2079 ASSERT_EQ(getsockname(sfd, &addr, &len), 0); in TEST()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | sockmap_ktls.c | 46 err = getsockname(srv, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_disconnect_after_delete() 109 err = getsockname(s, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
|
D | btf_skc_cls_ingress.c | 87 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn() 142 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
|
D | socket_cookie.c | 61 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_socket_cookie()
|
D | cgroup_skb_sk_lookup.c | 20 err = getsockname(serv_sk, (struct sockaddr *)&addr, &addr_len); in run_lookup_test()
|
D | bpf_iter_setsockopt_unix.c | 29 err = getsockname(fd, (struct sockaddr *)&addr, &len); in create_unix_socket()
|
D | connect_ping.c | 68 if (!ASSERT_OK(getsockname(sock_fd, sa, &sa_len), in subtest()
|
D | connect_force_port.c | 14 if (getsockname(fd, (struct sockaddr *)&addr, &len)) { in verify_ports()
|
D | sock_fields.c | 286 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test() 296 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
|
D | sockopt_inherit.c | 24 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
|
D | cls_redirect.c | 105 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn() 116 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
|
D | tcp_hdr_options.c | 113 if (!ASSERT_OK(getsockname(sk_fds->srv_fd, (struct sockaddr *)&addr6, in sk_fds_connect() 119 if (!ASSERT_OK(getsockname(sk_fds->active_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
|
D | bpf_iter_setsockopt.c | 98 if (!getsockname(fd, &addr, &addrlen)) in get_local_port()
|
D | assign_reuse.c | 44 ASSERT_EQ(getsockname(fd_cl, (void *)&addr, &len), 0, "getsockname"); in echo_test_udp()
|
D | cgrp_local_storage.c | 109 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_attach_cgroup()
|
D | sk_assign.c | 129 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
|
/linux-6.6.21/samples/bpf/ |
D | test_probe_write_user_user.c | 71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
|
/linux-6.6.21/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 118 **getsockname4** call to getsockname(2) for an inet4 socket (since 5.8); 119 **getsockname6** call to getsockname(2) for an inet6 socket (since 5.8).
|
/linux-6.6.21/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 116 ret = getsockname(sk_fd, (struct sockaddr *)&sk_addr, &sk_addr_len); in uevent_listener()
|