/kernel/liteos_m/testsuites/unittest/xts/net/ |
D | acts_net_test.c | 152 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/ |
D | network_helpers.c | 115 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()
|
D | test_socket_cookie.c | 73 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server() 110 err = getsockname(client_fd, (struct sockaddr *)&addr, &len); in validate_map()
|
D | tcp_server.py | 45 sn = serverSocket.getsockname()
|
D | test_tcp_check_syncookie_user.c | 56 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
|
/kernel/linux/linux-5.10/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()
|
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/ |
D | net_socket_test_007.cpp | 68 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()
|
D | net_socket_test_012.cpp | 106 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/ |
D | btf_skc_cls_ingress.c | 104 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()
|
D | cgroup_skb_sk_lookup.c | 20 err = getsockname(serv_sk, (struct sockaddr *)&addr, &addr_len); in run_lookup_test()
|
D | sockmap_ktls.c | 49 err = getsockname(srv, (struct sockaddr *)&addr, &len); in test_sockmap_ktls_disconnect_after_delete()
|
D | connect_force_port.c | 14 if (getsockname(fd, (struct sockaddr *)&addr, &len)) { in verify_ports()
|
D | sock_fields.c | 287 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test() 297 err = getsockname(cli_fd, (struct sockaddr *)&cli_sa6, &addrlen); in test()
|
D | cls_redirect.c | 103 if (CHECK_FAIL(getsockname(*server, sa, &slen))) in set_up_conn() 114 if (CHECK_FAIL(getsockname(*conn, sa, &slen))) in set_up_conn()
|
D | sockopt_inherit.c | 22 if (getsockname(server_fd, (struct sockaddr *)&addr, &len)) { in connect_to_server()
|
D | tcp_hdr_options.c | 141 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()
|
D | bpf_tcp_ca.c | 124 err = getsockname(lfd, (struct sockaddr *)&sa6, &addrlen); in do_test()
|
D | sk_assign.c | 113 if (CHECK_FAIL(getsockname(fd, (struct sockaddr *)&ss, &slen))) in get_port()
|
/kernel/linux/build/test/kernel_ltp/syscalls/getsockname/ |
D | BUILD.gn | 20 "//third_party/ltp/testcases/kernel/syscalls/getsockname/getsockname01.c",
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 108 **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/ |
D | test_probe_write_user_user.c | 71 assert(getsockname(serverfd, &serv_addr, &sockaddr_len) == 0); in main()
|
/kernel/liteos_a/compat/posix/src/ |
D | socket.c | 70 int getsockname(int s, struct sockaddr *name, socklen_t *namelen) in getsockname() function
|
/kernel/liteos_m/kal/libc/newlib/porting/include/sys/ |
D | socket.h | 244 int getsockname(int, struct sockaddr *__restrict, socklen_t *__restrict);
|
/kernel/liteos_m/components/net/test/ |
D | net_socket_test_008.c | 131 ret = getsockname(sfd, &addr, &addrLen); in SampleTcpClient()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/socket/ |
D | net_fuzz.c | 256 (void)getsockname(num1, &addr, &addrLen); in SampleTcpClient()
|