Home
last modified time | relevance | path

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

123

/kernel/liteos_m/testsuites/unittest/xts/net/
Dacts_net_test.c152 int ret = getsockname(-1, &addr, &addrLen); /* -1, common data for test, no special meaning */
156 ret = getsockname(0, &addr, &addrLen);
160 ret = getsockname(1, &addr, &addrLen); /* 1, common data for test, no special meaning */
164 ret = getsockname(130, &addr, &addrLen); /* 130, common data for test, no special meaning */
168 ret = getsockname(10, NULL, &addrLen); /* 10, common data for test, no special meaning */
172 ret = getsockname(10, &addr, NULL); /* 10, common data for test, no special meaning */
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dnetwork_helpers.c115 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in fastopen_connect()
170 if (getsockname(server_fd, (struct sockaddr *)&addr, &addrlen)) { in connect_to_fd()
203 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_fd_to_fd()
Dtest_socket_cookie.c73 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
110 err = getsockname(client_fd, (struct sockaddr *)&addr, &len); in validate_map()
Dtcp_server.py45 sn = serverSocket.getsockname()
Dtest_tcp_check_syncookie_user.c56 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
/kernel/linux/linux-5.10/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()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_007.cpp68 ret = getsockname(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_USER_ADDR), in TcpTest()
72 ret = getsockname(lsfd, reinterpret_cast<struct sockaddr *>(INVALID_KERNEL_ADDR), in TcpTest()
Dnet_socket_test_012.cpp106 ret = getsockname(sfd, NULL, NULL); in SocketNullTestInternal()
110 ret = getsockname(sfd, NULL, &addrlen); in SocketNullTestInternal()
114 ret = getsockname(sfd, &addr, NULL); in SocketNullTestInternal()
119 ret = getsockname(sfd, bad, &zero); in SocketNullTestInternal()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_skc_cls_ingress.c104 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn()
159 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()
Dsockmap_ktls.c49 err = getsockname(srv, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_disconnect_after_delete()
Dconnect_force_port.c14 if (getsockname(fd, (struct sockaddr *)&addr, &len)) { in verify_ports()
Dsock_fields.c287 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test()
297 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
Dcls_redirect.c103 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn()
114 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
Dsockopt_inherit.c22 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
Dtcp_hdr_options.c141 if (CHECK(getsockname(sk_fds->srv_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
148 if (CHECK(getsockname(sk_fds->active_fd, (struct sockaddr *)&addr6, in sk_fds_connect()
Dbpf_tcp_ca.c124 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test()
Dsk_assign.c113 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
/kernel/linux/build/test/kernel_ltp/syscalls/getsockname/
DBUILD.gn20 "//third_party/ltp/testcases/kernel/syscalls/getsockname/getsockname01.c",
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst108 **getsockname4** call to getsockname(2) for an inet4 socket (since 5.8);
109 **getsockname6** call to getsockname(2) for an inet6 socket (since 5.8).
/kernel/linux/linux-5.10/samples/bpf/
Dtest_probe_write_user_user.c71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
/kernel/liteos_a/compat/posix/src/
Dsocket.c70 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() function
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/
Dsocket.h244 int getsockname(int, struct sockaddr *__restrict, socklen_t *__restrict);
/kernel/liteos_m/components/net/test/
Dnet_socket_test_008.c131 ret = getsockname(sfd, &addr, &addrLen); in SampleTcpClient()
/kernel/liteos_m/testsuites/unittest/fuzz/src/socket/
Dnet_fuzz.c256 (void)getsockname(num1, &addr, &addrLen); in SampleTcpClient()

123