Home
last modified time | relevance | path

Searched refs:server_sin (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/tools/testing/selftests/net/
Dncdevmem.c246 struct sockaddr_in server_sin; in do_server() local
296 server_sin.sin_family = AF_INET; in do_server()
297 server_sin.sin_port = htons(atoi(port)); in do_server()
299 ret = inet_pton(server_sin.sin_family, server_ip, &server_sin.sin_addr); in do_server()
303 socket_fd = socket(server_sin.sin_family, SOCK_STREAM, 0); in do_server()
318 ntohs(server_sin.sin_port)); in do_server()
320 ret = bind(socket_fd, &server_sin, sizeof(server_sin)); in do_server()
330 inet_ntop(server_sin.sin_family, &server_sin.sin_addr, buffer, in do_server()
333 ntohs(server_sin.sin_port)); in do_server()