Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/tests/net/socket/udp/src/
Dmain.c60 struct sockaddr *client_addr, in comm_sendto_recvfrom() argument
74 zassert_not_null(client_addr, "null client addr"); in comm_sendto_recvfrom()
114 if (net_sin(client_addr)->sin_port != ANY_PORT) { in comm_sendto_recvfrom()
115 zassert_equal(net_sin(client_addr)->sin_port, in comm_sendto_recvfrom()
174 struct sockaddr_in client_addr; in ZTEST() local
177 prepare_sock_udp_v4(MY_IPV4_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST()
186 (struct sockaddr *)&client_addr, in ZTEST()
187 sizeof(client_addr), in ZTEST()
203 struct sockaddr_in6 client_addr; in ZTEST() local
206 prepare_sock_udp_v6(MY_IPV6_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/samples/net/sockets/echo/src/
Dsocket_echo.c75 struct sockaddr_in6 client_addr; in main() local
76 socklen_t client_addr_len = sizeof(client_addr); in main()
78 int client = accept(serv, (struct sockaddr *)&client_addr, in main()
86 inet_ntop(client_addr.sin6_family, &client_addr.sin6_addr, in main()
/Zephyr-Core-3.7.0/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c79 struct sockaddr_in client_addr; in main() local
80 socklen_t client_addr_len = sizeof(client_addr); in main()
86 int client = accept(serv, (struct sockaddr *)&client_addr, in main()
94 inet_ntop(client_addr.sin_family, &client_addr.sin_addr, in main()
/Zephyr-Core-3.7.0/samples/subsys/modbus/tcp_gateway/src/
Dmain.c126 struct sockaddr_in client_addr; in main() local
127 socklen_t client_addr_len = sizeof(client_addr); in main()
132 client = accept(serv, (struct sockaddr *)&client_addr, in main()
140 inet_ntop(client_addr.sin_family, &client_addr.sin_addr, in main()
/Zephyr-Core-3.7.0/samples/net/sockets/echo_async/src/
Dsocket_echo.c181 struct sockaddr_storage client_addr; in main() local
182 socklen_t client_addr_len = sizeof(client_addr); in main()
198 int client = accept(fd, (struct sockaddr *)&client_addr, in main()
200 void *addr = &((struct sockaddr_in *)&client_addr)->sin_addr; in main()
206 inet_ntop(client_addr.ss_family, addr, in main()
/Zephyr-Core-3.7.0/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c162 struct sockaddr_storage client_addr; local
163 socklen_t client_addr_len = sizeof(client_addr);
192 int client = accept(fd, (struct sockaddr *)&client_addr,
194 void *addr = &((struct sockaddr_in *)&client_addr)->sin_addr;
196 inet_ntop(client_addr.ss_family, addr,
/Zephyr-Core-3.7.0/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c271 struct sockaddr_in6 client_addr; in process_tcp() local
272 socklen_t client_addr_len = sizeof(client_addr); in process_tcp()
274 client = accept(*sock, (struct sockaddr *)&client_addr, in process_tcp()
292 if (client_addr.sin6_family == AF_INET6) { in process_tcp()
307 if (client_addr.sin6_family == AF_INET) { in process_tcp()
324 net_addr_ntop(client_addr.sin6_family, in process_tcp()
325 &client_addr.sin6_addr, in process_tcp()
/Zephyr-Core-3.7.0/samples/net/sockets/echo_service/src/
Dmain.c219 struct sockaddr_in6 client_addr; in main() local
220 socklen_t client_addr_len = sizeof(client_addr); in main()
223 client = accept(tcp_sock, (struct sockaddr *)&client_addr, in main()
230 inet_ntop(client_addr.sin6_family, &client_addr.sin6_addr, in main()
/Zephyr-Core-3.7.0/samples/net/mdns_responder/src/
Dservice.c41 struct sockaddr client_addr; in service() local
112 len = sizeof(client_addr); in service()
113 r = accept(server_fd, (struct sockaddr *)&client_addr, &len); in service()
/Zephyr-Core-3.7.0/samples/subsys/video/tcpserversink/src/
Dmain.c39 struct sockaddr_in addr, client_addr; in main() local
40 socklen_t client_addr_len = sizeof(client_addr); in main()
107 client = accept(sock, (struct sockaddr *)&client_addr, &client_addr_len); in main()
/Zephyr-Core-3.7.0/samples/subsys/modbus/tcp_server/src/
Dmain.c304 struct sockaddr_in client_addr; in main() local
305 socklen_t client_addr_len = sizeof(client_addr); in main()
310 client = accept(serv, (struct sockaddr *)&client_addr, in main()
318 inet_ntop(client_addr.sin_family, &client_addr.sin_addr, in main()
/Zephyr-Core-3.7.0/samples/net/sockets/echo_server/src/
Dudp.c111 struct sockaddr client_addr; in process_udp() local
118 client_addr_len = sizeof(client_addr); in process_udp()
121 &client_addr, &client_addr_len); in process_udp()
134 &client_addr, client_addr_len); in process_udp()
Dtcp.c229 struct sockaddr_in client_addr; in process_tcp() local
230 socklen_t client_addr_len = sizeof(client_addr); in process_tcp()
235 client = accept(data->tcp.sock, (struct sockaddr *)&client_addr, in process_tcp()
256 if (client_addr.sin_family == AF_INET6) { in process_tcp()
280 if (client_addr.sin_family == AF_INET) { in process_tcp()
/Zephyr-Core-3.7.0/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c760 struct sockaddr client_addr; in test_reuseport_udp_server_client_common() local
770 prepare_sock_udp(family, ip, 0, &client_sock, &client_addr); in test_reuseport_udp_server_client_common()
781 test_bind_success(client_sock, (struct sockaddr *) &client_addr, sizeof(client_addr)); in test_reuseport_udp_server_client_common()
916 struct sockaddr client_addr; in test_reuseport_tcp_identical_clients_common() local
924 prepare_sock_tcp(family, client_ip, LOCAL_PORT + 1, &client_sock1, &client_addr); in test_reuseport_tcp_identical_clients_common()
938 test_bind_success(client_sock1, &client_addr, sizeof(client_addr)); in test_reuseport_tcp_identical_clients_common()
939 test_bind_success(client_sock2, &client_addr, sizeof(client_addr)); in test_reuseport_tcp_identical_clients_common()
/Zephyr-Core-3.7.0/drivers/usb/device/
Dusb_dc_native_posix_adapt.c307 struct sockaddr_in client_addr; in usbip_start() local
308 socklen_t client_addr_len = sizeof(client_addr); in usbip_start()
310 connfd = accept4(listenfd, (struct sockaddr *)&client_addr, in usbip_start()
326 LOG_DBG("Connection: %s", inet_ntoa(client_addr.sin_addr)); in usbip_start()
/Zephyr-Core-3.7.0/tests/net/vlan/src/
Dmain.c747 struct sockaddr *client_addr, in comm_sendto_recvfrom() argument
756 ARG_UNUSED(client_addr); in comm_sendto_recvfrom()
759 zassert_not_null(client_addr, "null client addr"); in comm_sendto_recvfrom()
792 struct sockaddr_in6 client_addr; in ZTEST() local
813 prepare_sock_udp_v6(MY_IPV6_ADDR, ANY_PORT, &client_sock, &client_addr); in ZTEST()
827 (struct sockaddr *)&client_addr, in ZTEST()
828 sizeof(client_addr), in ZTEST()
/Zephyr-Core-3.7.0/subsys/net/lib/coap/
Dcoap_server.c128 struct sockaddr client_addr; in coap_server_process() local
129 socklen_t client_addr_len = sizeof(client_addr); in coap_server_process()
139 received = zsock_recvfrom(sock_fd, buf, sizeof(buf), ZSOCK_MSG_DONTWAIT, &client_addr, in coap_server_process()
181 coap_service_remove_observer(service, NULL, &client_addr, token, tkl); in coap_server_process()
215 ret = coap_service_send(service, &response, &client_addr, client_addr_len, NULL); in coap_server_process()
219 options, opt_num, &client_addr, client_addr_len); in coap_server_process()
246 ret = coap_service_send(service, &ack, &client_addr, client_addr_len, NULL); in coap_server_process()
/Zephyr-Core-3.7.0/tests/net/dhcpv4/client/src/
Dmain.c214 static const struct in_addr client_addr = { { { 255, 255, 255, 255 } } }; variable
287 if (net_ipv4_create(pkt, &server_addr, &client_addr) || in prepare_dhcp_offer()
328 if (net_ipv4_create(pkt, &server_addr, &client_addr) || in prepare_dhcp_ack()
/Zephyr-Core-3.7.0/doc/connectivity/networking/api/
Dcoap.rst81 client_addr, client_addr_len);