/third_party/ltp/testcases/kernel/syscalls/accept/ |
D | accept02.c | 40 static struct sockaddr_in *client_addr; variable 62 TEST(accept(server_sockfd, (struct sockaddr *)client_addr, &addr_len)); in server_thread() 85 SAFE_BIND(client_sockfd, (struct sockaddr *)client_addr, addr_len); in client_thread() 98 client_addr->sin_port = htons(0); in run() 113 client_addr = tst_alloc(sizeof(*client_addr)); in setup() 124 client_addr->sin_family = AF_INET; in setup() 125 client_addr->sin_addr.s_addr = htons(INADDR_ANY); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/connect/ |
D | connect02.c | 41 static struct sockaddr_in bind_addr4, client_addr; variable 57 tst_init_sockaddr_inet(&client_addr, "127.0.0.1", in setup() 86 SAFE_CONNECT(confd1, (struct sockaddr *)&client_addr, in run() 87 sizeof(client_addr)); in run()
|
/third_party/mbedtls/library/ |
D | net_sockets.c | 359 struct sockaddr_storage client_addr; in mbedtls_net_accept() local 364 socklen_t n = (socklen_t) sizeof( client_addr ); in mbedtls_net_accept() 367 int n = (int) sizeof( client_addr ); in mbedtls_net_accept() 383 (struct sockaddr *) &client_addr, &n ); in mbedtls_net_accept() 391 (struct sockaddr *) &client_addr, &n ); in mbedtls_net_accept() 418 if( connect( bind_ctx->fd, (struct sockaddr *) &client_addr, n ) != 0 ) in mbedtls_net_accept() 443 if( client_addr.ss_family == AF_INET ) in mbedtls_net_accept() 445 struct sockaddr_in *addr4 = (struct sockaddr_in *) &client_addr; in mbedtls_net_accept() 455 struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) &client_addr; in mbedtls_net_accept()
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-udpserver.c | 147 struct sockaddr_storage client_addr; /* address of a client */ in respond_to_client() local 167 client_addr_len = sizeof(client_addr); in respond_to_client() 169 (struct sockaddr *)&client_addr, in respond_to_client() 179 (struct sockaddr *)&client_addr, in respond_to_client() 180 sizeof(client_addr)) != msglen) in respond_to_client()
|
D | ns-tcpserver.c | 402 struct sockaddr_storage client_addr; /* address of a client */ in handle_client() local 444 (struct sockaddr *)&client_addr, in handle_client()
|
/third_party/nghttp2/examples/ |
D | libevent-server.c | 101 char *client_addr; member 269 session_data->client_addr = strdup("(unknown)"); in create_http2_session_data() 271 session_data->client_addr = strdup(host); in create_http2_session_data() 280 fprintf(stderr, "%s disconnected\n", session_data->client_addr); in delete_http2_session_data() 291 free(session_data->client_addr); in delete_http2_session_data() 549 fprintf(stderr, "%s GET %s\n", session_data->client_addr, in on_request_recv() 701 fprintf(stderr, "%s connected\n", session_data->client_addr); in eventcb() 715 fprintf(stderr, "%s h2 is not negotiated\n", session_data->client_addr); in eventcb() 731 fprintf(stderr, "%s EOF\n", session_data->client_addr); in eventcb() 733 fprintf(stderr, "%s network error\n", session_data->client_addr); in eventcb() [all …]
|
/third_party/libuv/test/ |
D | test-connection-fail.c | 89 struct sockaddr_in client_addr, server_addr; in connection_fail() local 92 ASSERT(0 == uv_ip4_addr("0.0.0.0", 0, &client_addr)); in connection_fail() 103 ASSERT(0 == uv_tcp_bind(&tcp, (const struct sockaddr*) &client_addr, 0)); in connection_fail()
|
D | benchmark-ping-pongs.c | 180 struct sockaddr_in client_addr; in pinger_new() local 185 ASSERT(0 == uv_ip4_addr("0.0.0.0", 0, &client_addr)); in pinger_new() 198 (const struct sockaddr*) &client_addr, in pinger_new()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/radius/ |
D | radius_das.c | 23 struct hostapd_ip_addr client_addr; member 416 if (das->client_addr.u.v4.s_addr && in radius_das_receive() 417 das->client_addr.u.v4.s_addr != from.sin.sin_addr.s_addr) { in radius_das_receive() 542 conf->client_addr == NULL) in radius_das_init() 557 os_memcpy(&das->client_addr, conf->client_addr, in radius_das_init() 558 sizeof(das->client_addr)); in radius_das_init()
|
D | radius_das.h | 48 const struct hostapd_ip_addr *client_addr; member
|
D | radius_client.h | 171 struct hostapd_ip_addr client_addr; member
|
D | radius_client.c | 1196 switch (conf->client_addr.af) { in radius_change_server() 1200 claddr.sin_addr.s_addr = conf->client_addr.u.v4.s_addr; in radius_change_server() 1209 os_memcpy(&claddr6.sin6_addr, &conf->client_addr.u.v6, in radius_change_server()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/radius/ |
D | radius_das.c | 23 struct hostapd_ip_addr client_addr; member 416 if (das->client_addr.u.v4.s_addr && in radius_das_receive() 417 das->client_addr.u.v4.s_addr != from.sin.sin_addr.s_addr) { in radius_das_receive() 542 conf->client_addr == NULL) in radius_das_init() 557 os_memcpy(&das->client_addr, conf->client_addr, in radius_das_init() 558 sizeof(das->client_addr)); in radius_das_init()
|
D | radius_das.h | 48 const struct hostapd_ip_addr *client_addr; member
|
D | radius_client.h | 171 struct hostapd_ip_addr client_addr; member
|
D | radius_client.c | 1163 switch (conf->client_addr.af) { in radius_change_server() 1167 claddr.sin_addr.s_addr = conf->client_addr.u.v4.s_addr; in radius_change_server() 1176 os_memcpy(&claddr6.sin6_addr, &conf->client_addr.u.v6, in radius_change_server()
|
/third_party/skia/third_party/externals/microhttpd/src/platform/ |
D | w32functions.c | 598 struct sockaddr_in client_addr; in MHD_W32_pair_of_sockets_() local 601 if (0 == getsockname(client_s, (struct sockaddr*) &client_addr, &addr_len) in MHD_W32_pair_of_sockets_() 602 && accepted_from_addr.sin_family == client_addr.sin_family in MHD_W32_pair_of_sockets_() 603 && accepted_from_addr.sin_port == client_addr.sin_port in MHD_W32_pair_of_sockets_() 604 && accepted_from_addr.sin_addr.s_addr == client_addr.sin_addr.s_addr in MHD_W32_pair_of_sockets_()
|
/third_party/rust/crates/tracing/examples/examples/ |
D | futures-proxy-server.rs | 113 while let Ok((inbound, client_addr)) = listener.accept().await { in main() 114 info!(client.addr = %client_addr, "client connected"); in main()
|
/third_party/python/Lib/test/test_asyncio/ |
D | utils.py | 146 request, client_addr = super().get_request() 148 return request, client_addr 231 request, client_addr = super().get_request()
|
/third_party/python/Doc/library/ |
D | contextvars.rst | 245 client_addr_var = contextvars.ContextVar('client_addr') 251 client_addr = client_addr_var.get() 252 return f'Good bye, client @ {client_addr}\n'.encode()
|
/third_party/nghttp2/doc/sources/ |
D | tutorial-server.rst | 123 char *client_addr; 212 fprintf(stderr, "%s connected\n", session_data->client_addr); 224 fprintf(stderr, "%s h2 is not negotiated\n", session_data->client_addr); 240 fprintf(stderr, "%s EOF\n", session_data->client_addr); 242 fprintf(stderr, "%s network error\n", session_data->client_addr); 244 fprintf(stderr, "%s timeout\n", session_data->client_addr);
|
/third_party/python/Lib/ |
D | socketserver.py | 527 data, client_addr = self.socket.recvfrom(self.max_packet_size) 528 return (data, self.socket), client_addr
|
/third_party/nghttp2/src/ |
D | shrpx_worker.h | 296 sockaddr_union client_addr; member
|
D | shrpx_connection_handler.cc | 537 memcpy(&wev.client_addr, addr, addrlen); in handle_connection()
|
/third_party/skia/third_party/externals/microhttpd/src/include/ |
D | microhttpd.h | 1078 struct sockaddr *client_addr; member
|