Home
last modified time | relevance | path

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

123

/linux-6.6.21/tools/testing/selftests/bpf/
Dnetwork_helpers.c170 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()
Dtest_tcp_check_syncookie_user.c209 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in get_port()
/linux-6.6.21/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()
Dbind_wildcard.c126 ret = getsockname(fd[0], addr1, &addrlen1); in bind_sockets()
Dso_incoming_cpu.c167 ret = getsockname(self->servers[i], &self->addr, &self->addrlen); in create_servers()
Dtls.c131 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/
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()
Dsocket_cookie.c61 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_socket_cookie()
Dcgroup_skb_sk_lookup.c20 err = getsockname(serv_sk, (struct sockaddr *)&addr, &addr_len); in run_lookup_test()
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()
Dconnect_force_port.c14 if (getsockname(fd, (struct sockaddr *)&addr, &len)) { in verify_ports()
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()
Dsockopt_inherit.c24 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
Dcls_redirect.c105 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn()
116 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
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, &addr, &addrlen)) in get_local_port()
Dassign_reuse.c44 ASSERT_EQ(getsockname(fd_cl, (void *)&addr, &len), 0, "getsockname"); in echo_test_udp()
Dcgrp_local_storage.c109 err = getsockname(client_fd, (struct sockaddr *)&addr, &addr_len); in test_attach_cgroup()
Dsk_assign.c129 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
/linux-6.6.21/samples/bpf/
Dtest_probe_write_user_user.c71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
/linux-6.6.21/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst118 **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/
Duevent_filtering.c116 ret = getsockname(sk_fd, (struct sockaddr *)&sk_addr, &sk_addr_len); in uevent_listener()

123