Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/samples/net/mdns_responder/src/
Dservice.c45 static struct sockaddr server_addr; in service() local
52 &((struct sockaddr_in6 *)&server_addr)->sin6_port); in service()
56 &((struct sockaddr_in *)&server_addr)->sin_port); in service()
65 net_sin6(&server_addr)->sin6_family = AF_INET6; in service()
66 net_sin6(&server_addr)->sin6_addr = in6addr_any; in service()
67 net_sin6(&server_addr)->sin6_port = sys_cpu_to_be16(DEFAULT_PORT); in service()
69 net_sin(&server_addr)->sin_family = AF_INET; in service()
70 net_sin(&server_addr)->sin_addr.s_addr = htonl(INADDR_ANY); in service()
71 net_sin(&server_addr)->sin_port = sys_cpu_to_be16(DEFAULT_PORT); in service()
76 r = socket(server_addr.sa_family, SOCK_STREAM, 0); in service()
[all …]
/Zephyr-Core-3.5.0/tests/net/socket/udp/src/
Dmain.c58 struct sockaddr *server_addr, in comm_sendto_recvfrom() argument
70 zassert_not_null(server_addr, "null server addr"); in comm_sendto_recvfrom()
77 0, server_addr, server_addrlen); in comm_sendto_recvfrom()
135 zassert_equal(net_sin(server_addr)->sin_port, in comm_sendto_recvfrom()
170 struct sockaddr_in server_addr; in ZTEST() local
173 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST()
176 (struct sockaddr *)&server_addr, in ZTEST()
177 sizeof(server_addr)); in ZTEST()
184 (struct sockaddr *)&server_addr, in ZTEST()
185 sizeof(server_addr)); in ZTEST()
[all …]
/Zephyr-Core-3.5.0/subsys/logging/backends/
Dlog_backend_net.c36 struct sockaddr server_addr; variable
88 if (IS_ENABLED(CONFIG_NET_IPV4) && server_addr.sa_family == AF_INET) { in do_net_init()
94 if (IS_ENABLED(CONFIG_NET_IPV6) && server_addr.sa_family == AF_INET6) { in do_net_init()
105 local_addr->sa_family = server_addr.sa_family; in do_net_init()
107 ret = net_context_get(server_addr.sa_family, SOCK_DGRAM, IPPROTO_UDP, in do_net_init()
118 server_addr.sa_family == AF_INET6) { in do_net_init()
122 NULL, &net_sin6(&server_addr)->sin6_addr); in do_net_init()
133 server_addr.sa_family == AF_INET) { in do_net_init()
137 NULL, &net_sin(&server_addr)->sin_addr); in do_net_init()
160 (void)net_context_connect(ctx, &server_addr, server_addr_len, in do_net_init()
[all …]
/Zephyr-Core-3.5.0/tests/net/socket/tls/src/
Dmain.c460 struct sockaddr_in server_addr; in ZTEST() local
463 prepare_sock_dtls_v4(MY_IPV4_ADDR, ANY_PORT, &server_sock, &server_addr, IPPROTO_DTLS_1_2); in ZTEST()
467 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
475 struct sockaddr_in6 server_addr; in ZTEST() local
478 prepare_sock_dtls_v6(MY_IPV6_ADDR, ANY_PORT, &server_sock, &server_addr, IPPROTO_DTLS_1_2); in ZTEST()
482 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
581 struct sockaddr_in server_addr; in ZTEST() local
584 prepare_sock_dtls_v4(MY_IPV4_ADDR, ANY_PORT, &server_sock, &server_addr, IPPROTO_DTLS_1_2); in ZTEST()
588 (struct sockaddr *)&server_addr, sizeof(server_addr)); in ZTEST()
596 struct sockaddr_in6 server_addr; in ZTEST() local
[all …]
/Zephyr-Core-3.5.0/subsys/net/lib/lwm2m/
Dlwm2m_pull_context.c360 char *server_addr; in firmware_transfer() local
365 server_addr = CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_ADDR; in firmware_transfer()
366 if (strlen(server_addr) >= LWM2M_PACKAGE_URI_LEN) { in firmware_transfer()
367 LOG_ERR("Invalid Proxy URI: %s", server_addr); in firmware_transfer()
373 strcpy(proxy_uri, server_addr); in firmware_transfer()
374 server_addr = proxy_uri; in firmware_transfer()
376 server_addr = context.uri; in firmware_transfer()
379 ret = lwm2m_parse_peerinfo(server_addr, &context.firmware_ctx, context.is_firmware_uri); in firmware_transfer()
/Zephyr-Core-3.5.0/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c743 struct sockaddr server_addr; in test_reuseport_udp_server_client_common() local
753 prepare_sock_udp(family, ip, LOCAL_PORT, &server_sock, &server_addr); in test_reuseport_udp_server_client_common()
762 test_bind_success(server_sock, (struct sockaddr *) &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common()
768 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common()
791 test_bind_success(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
792 sizeof(server_addr)); in test_reuseport_udp_server_client_common()
795 test_bind_fail(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
796 sizeof(server_addr)); in test_reuseport_udp_server_client_common()
803 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common()
899 struct sockaddr server_addr; in test_reuseport_tcp_identical_clients_common() local
[all …]
/Zephyr-Core-3.5.0/tests/net/dhcpv4/src/
Dmain.c143 static const struct in_addr server_addr = { { { 192, 0, 2, 1 } } }; variable
212 if (net_ipv4_create(pkt, &server_addr, &client_addr) || in prepare_dhcp_offer()
253 if (net_ipv4_create(pkt, &server_addr, &client_addr) || in prepare_dhcp_ack()
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/tools/
Dcavstool_client.py149 if args.server_addr:
150 url = urlparse("//" + args.server_addr)
Dremote-fw-service.py314 if args.server_addr:
315 url = urlparse("//" + args.server_addr)
/Zephyr-Core-3.5.0/subsys/net/ip/
Ddhcpv4.c155 const struct in_addr *server_addr, in dhcpv4_create_message() argument
200 if (net_ipv4_create(pkt, addr, server_addr) || in dhcpv4_create_message()
326 const struct in_addr *server_addr = net_ipv4_broadcast_address(); in dhcpv4_send_request() local
359 server_addr = &iface->config.dhcpv4.server_id; in dhcpv4_send_request()
377 ciaddr, src_addr, server_addr, in dhcpv4_send_request()
390 net_sprint_ipv4_addr(server_addr), in dhcpv4_send_request()
/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/
Dtest_provision.c1571 static void comp_data_get(uint16_t server_addr, uint8_t page, struct net_buf_simple *comp) in comp_data_get() argument
1576 ASSERT_OK(bt_mesh_cfg_cli_comp_data_get(0, server_addr, page, &page_rsp, comp)); in comp_data_get()
1664 static void comp_data_pages_get_and_equal_check(uint16_t server_addr, uint8_t page1, uint8_t page2) in comp_data_pages_get_and_equal_check() argument
1669 comp_data_get(server_addr, page1, &comp_1); in comp_data_pages_get_and_equal_check()
1670 comp_data_get(server_addr, page2, &comp_2); in comp_data_pages_get_and_equal_check()