Searched refs:socket_fd (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/tools/testing/selftests/net/ |
D | ncdevmem.c | 257 int socket_fd; in do_server() local 303 socket_fd = socket(server_sin.sin_family, SOCK_STREAM, 0); in do_server() 307 ret = setsockopt(socket_fd, SOL_SOCKET, SO_REUSEPORT, &opt, in do_server() 312 ret = setsockopt(socket_fd, SOL_SOCKET, SO_REUSEADDR, &opt, in do_server() 320 ret = bind(socket_fd, &server_sin, sizeof(server_sin)); in do_server() 324 ret = listen(socket_fd, 1); in do_server() 334 client_fd = accept(socket_fd, &client_addr, &client_addr_len); in do_server() 456 close(socket_fd); in do_server()
|
/linux-6.12.1/tools/testing/selftests/landlock/ |
D | net_test.c | 159 static uint16_t get_binded_port(int socket_fd, in get_binded_port() argument 171 getsockname(socket_fd, &ipv4_addr, &ipv4_addr_len); in get_binded_port() 176 getsockname(socket_fd, &ipv6_addr, &ipv6_addr_len); in get_binded_port()
|