Home
last modified time | relevance | path

Searched refs:getsockname (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.12.1/tools/testing/selftests/net/
Dfin_ack_lat.c75 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in client()
140 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in main()
Dbind_timewait.c58 ret = getsockname(server_fd, (struct sockaddr *)&self->addr, &self->addrlen); in create_timewait_socket()
Dsk_so_peek_off.c86 if (getsockname(s[0], &a.sa, &((socklen_t) { sizeof(a) })) < 0) { in sk_peek_offset_test()
Dso_incoming_cpu.c167 ret = getsockname(self->servers[i], &self->addr, &self->addrlen); in create_servers()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dsockmap_ktls.c46 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()
Dbtf_skc_cls_ingress.c87 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()
Dcgroup_skb_sk_lookup.c20 err = getsockname(serv_sk, (struct sockaddr *)&addr, &addr_len); in run_lookup_test()
Dsocket_cookie.c61 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_socket_cookie()
Dsock_addr.c288 int (*getsockname)(int fd, struct sockaddr *addr, socklen_t *addrlen); member
324 .getsockname = getsockname,
335 .getsockname = kernel_getsockname,
346 .getsockname = kernel_getsockname,
2303 err = cmp_sock_addr(test->ops->getsockname, serv, &expected_addr, in test_bind()
2367 err = cmp_sock_addr(test->ops->getsockname, client, in test_connect()
2506 err = cmp_sock_addr(test->ops->getsockname, serv, &expected_addr, expected_addr_len, true); in test_getsockname()
Dbpf_iter_setsockopt_unix.c29 err = getsockname(fd, (struct sockaddr *)&addr, &len); in create_unix_socket()
Dconnect_ping.c68 if (!ASSERT_OK(getsockname(sock_fd, sa, &sa_len), in subtest()
Dsock_fields.c286 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test()
296 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
Dcls_redirect.c73 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn()
84 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
Dconnect_force_port.c14 if (getsockname(fd, (struct sockaddr *)&addr, &len)) { in verify_ports()
Dtcp_hdr_options.c113 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()
Dbpf_iter_setsockopt.c98 if (!getsockname(fd, (struct sockaddr *)&addr, &addrlen)) in get_local_port()
Dassign_reuse.c44 ASSERT_EQ(getsockname(fd_cl, (void *)&addr, &len), 0, "getsockname"); in echo_test_udp()
Dsk_assign.c82 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
Dcgrp_local_storage.c126 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_attach_cgroup()
/linux-6.12.1/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst119 - **getsockname4** call to getsockname(2) for an inet4 socket (since 5.8)
120 - **getsockname6** call to getsockname(2) for an inet6 socket (since 5.8)
121 - **getsockname_unix** call to getsockname(2) for a unix socket (since 6.7)
/linux-6.12.1/tools/testing/selftests/bpf/
Dnetwork_helpers.c198 if (getsockname(fds[0], (struct sockaddr *)&addr, &addrlen)) in start_reuseport_server()
231 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect()
342 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd_opts()
376 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_fd_to_fd()
557 err = getsockname(sock_fd, (struct sockaddr *)&addr, &addrlen); in get_socket_local_port()
/linux-6.12.1/samples/bpf/
Dtest_probe_write_user_user.c71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dscm_rights.c144 ret = getsockname(self->fd[i], (struct sockaddr *)&addr, &addrlen); in create_listeners()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Drepair.c82 if (getsockname(sk, addr, &len) || len != addr_size) in __test_sock_checkpoint()
/linux-6.12.1/tools/testing/selftests/uevent/
Duevent_filtering.c116 ret = getsockname(sk_fd, (struct sockaddr *)&sk_addr, &sk_addr_len); in uevent_listener()

123