/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 45 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-latest/include/zephyr/mgmt/hawkbit/ |
D | config.h | 33 char *server_addr; member 68 .server_addr = addr_str, in hawkbit_set_server_addr() 87 .server_addr = NULL, in hawkbit_set_server_port() 106 .server_addr = NULL, in hawkbit_set_ddi_security_token() 125 .server_addr = NULL, in hawkbit_set_tls_tag() 141 return hawkbit_get_config().server_addr; in hawkbit_get_server_addr()
|
/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 63 struct sockaddr *server_addr, in comm_sendto_recvfrom() argument 75 zassert_not_null(server_addr, "null server addr"); in comm_sendto_recvfrom() 82 0, server_addr, server_addrlen); in comm_sendto_recvfrom() 140 zassert_equal(net_sin(server_addr)->sin_port, in comm_sendto_recvfrom() 175 struct sockaddr_in server_addr; in ZTEST() local 178 prepare_sock_udp_v4(MY_IPV4_ADDR, SERVER_PORT, &server_sock, &server_addr); in ZTEST() 181 (struct sockaddr *)&server_addr, in ZTEST() 182 sizeof(server_addr)); in ZTEST() 189 (struct sockaddr *)&server_addr, in ZTEST() 190 sizeof(server_addr)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_net.c | 34 struct sockaddr server_addr; variable 99 if (IS_ENABLED(CONFIG_NET_IPV4) && server_addr.sa_family == AF_INET) { in do_net_init() 106 if (IS_ENABLED(CONFIG_NET_IPV6) && server_addr.sa_family == AF_INET6) { in do_net_init() 123 ret = zsock_socket(server_addr.sa_family, type, proto); in do_net_init() 136 server_addr.sa_family == AF_INET6) { in do_net_init() 140 NULL, &net_sin6(&server_addr)->sin6_addr); in do_net_init() 151 server_addr.sa_family == AF_INET) { in do_net_init() 155 NULL, &net_sin(&server_addr)->sin_addr); in do_net_init() 180 ret = zsock_connect(ctx->sock, &server_addr, server_addr_len); in do_net_init() 264 net_sin(&server_addr)->sin_port = htons(514); in log_backend_net_set_addr() [all …]
|
/Zephyr-latest/tests/net/socket/reuseaddr_reuseport/src/ |
D | main.c | 759 struct sockaddr server_addr; in test_reuseport_udp_server_client_common() local 769 prepare_sock_udp(family, ip, LOCAL_PORT, &server_sock, &server_addr); in test_reuseport_udp_server_client_common() 778 test_bind_success(server_sock, (struct sockaddr *) &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common() 784 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common() 807 test_bind_success(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common() 808 sizeof(server_addr)); in test_reuseport_udp_server_client_common() 811 test_bind_fail(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common() 812 sizeof(server_addr)); in test_reuseport_udp_server_client_common() 819 test_sendto(client_sock, &tx_buf, sizeof(tx_buf), 0, &server_addr, sizeof(server_addr)); in test_reuseport_udp_server_client_common() 915 struct sockaddr server_addr; in test_reuseport_tcp_identical_clients_common() local [all …]
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_pull_context.c | 371 char *server_addr; in firmware_transfer() local 376 server_addr = CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_COAP_PROXY_ADDR; in firmware_transfer() 377 if (strlen(server_addr) >= LWM2M_PACKAGE_URI_LEN) { in firmware_transfer() 378 LOG_ERR("Invalid Proxy URI: %s", server_addr); in firmware_transfer() 384 strcpy(proxy_uri, server_addr); in firmware_transfer() 385 server_addr = proxy_uri; in firmware_transfer() 387 server_addr = context.uri; in firmware_transfer() 390 ret = lwm2m_parse_peerinfo(server_addr, &context.firmware_ctx, context.is_firmware_uri); in firmware_transfer()
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 24 static struct in_addr server_addr = { { { 192, 0, 2, 1 } } }; variable 69 (void)net_if_ipv4_addr_add(iface, &server_addr, NET_ADDR_MANUAL, 0); in server_iface_init() 70 (void)net_if_ipv4_set_netmask_by_addr(iface, &server_addr, &netmask); in server_iface_init() 250 NET_DHCPV4_MSG_TYPE_REQUEST, &server_addr, &test_ctx.assigned_ip, in client_send_request_solicit() 263 &test_ctx.assigned_ip, &server_addr, in client_send_request_renew() 289 &test_ctx.assigned_ip, &server_addr, in client_send_release() 290 NET_DHCPV4_MSG_TYPE_RELEASE, &server_addr, NULL, in client_send_release() 301 NET_DHCPV4_MSG_TYPE_DECLINE, &server_addr, in client_send_decline() 510 zassert_mem_equal(ipv4_hdr->src, server_addr.s4_addr, in verify_offer() 568 verify_option(pkt, DHCPV4_OPTIONS_SERVER_ID, server_addr.s4_addr, in verify_offer() [all …]
|
/Zephyr-latest/tests/net/vlan/src/ |
D | main.c | 800 struct sockaddr *server_addr, in comm_sendto_recvfrom() argument 810 zassert_not_null(server_addr, "null server addr"); in comm_sendto_recvfrom() 817 0, server_addr, server_addrlen); in comm_sendto_recvfrom() 843 struct sockaddr_in6 server_addr; in ZTEST() local 864 prepare_sock_udp_v6(MY_IPV6_ADDR_SRV, SERVER_PORT, &server_sock, &server_addr); in ZTEST() 866 ret = add_neighbor(iface, &server_addr.sin6_addr); in ZTEST() 870 (struct sockaddr *)&server_addr, in ZTEST() 871 sizeof(server_addr)); in ZTEST() 880 (struct sockaddr *)&server_addr, in ZTEST() 881 sizeof(server_addr)); in ZTEST()
|
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 80 char server_addr[DNS_MAX_NAME_SIZE + 1]; member 92 #define HAWKBIT_SERVER hb_cfg.server_addr 289 if (len != sizeof(hb_cfg.server_addr)) { in hawkbit_settings_set() 293 rc = read_cb(cb_arg, &hb_cfg.server_addr, sizeof(hb_cfg.server_addr)); in hawkbit_settings_set() 294 LOG_DBG("<%s> = %s", "hawkbit/server_addr", hb_cfg.server_addr); in hawkbit_settings_set() 355 (void)cb("hawkbit/server_addr", &hb_cfg.server_addr, sizeof(hb_cfg.server_addr)); in hawkbit_settings_export() 776 if (config->server_addr != NULL) { in hawkbit_set_config() 777 strncpy(hb_cfg.server_addr, config->server_addr, in hawkbit_set_config() 778 sizeof(hb_cfg.server_addr)); in hawkbit_set_config() 779 LOG_DBG("configured %s: %s", "hawkbit/server_addr", hb_cfg.server_addr); in hawkbit_set_config() [all …]
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 67 struct in_addr server_addr; member 626 buf = dhcpv4_encode_server_id_option(buf, &buflen, &ctx->server_addr); in dhcpv4_send_offer() 669 buf = dhcpv4_encode_server_id_option(buf, &buflen, &ctx->server_addr); in dhcpv4_send_ack() 708 buf = dhcpv4_encode_server_id_option(buf, &buflen, &ctx->server_addr); in dhcpv4_send_nak() 1129 if (!net_ipv4_addr_cmp(&ctx->server_addr, &server_id)) { in dhcpv4_handle_request() 1291 if (!net_ipv4_addr_cmp(&ctx->server_addr, &server_id)) { in dhcpv4_handle_decline() 1344 if (!net_ipv4_addr_cmp(&ctx->server_addr, &server_id)) { in dhcpv4_handle_release() 1547 const struct in_addr *server_addr; in net_dhcpv4_server_start() local 1559 server_addr = net_if_ipv4_select_src_addr(iface, base_addr); in net_dhcpv4_server_start() 1560 if (server_addr == NULL) { in net_dhcpv4_server_start() [all …]
|
D | dhcpv4.c | 237 const struct in_addr *server_addr, in dhcpv4_create_message() argument 295 if (net_ipv4_create(pkt, addr, server_addr) || in dhcpv4_create_message() 539 const struct in_addr *server_addr = net_ipv4_broadcast_address(); in dhcpv4_send_request() local 574 server_addr = &iface->config.dhcpv4.server_id; in dhcpv4_send_request() 592 ciaddr, src_addr, server_addr, in dhcpv4_send_request() 605 net_sprint_ipv4_addr(server_addr), in dhcpv4_send_request()
|
/Zephyr-latest/soc/intel/intel_adsp/tools/ |
D | cavstool_client.py | 149 if args.server_addr: 150 url = urlparse("//" + args.server_addr)
|
D | remote-fw-service.py | 316 if args.server_addr: 317 url = urlparse("//" + args.server_addr)
|
/Zephyr-latest/tests/net/dhcpv4/client/src/ |
D | main.c | 213 static const struct in_addr server_addr = { { { 192, 0, 2, 1 } } }; 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-latest/include/zephyr/net/ |
D | dns_resolve.h | 218 struct sockaddr server_addr; member
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_provision.c | 1556 static void comp_data_get(uint16_t server_addr, uint8_t page, struct net_buf_simple *comp) in comp_data_get() argument 1564 ASSERT_OK(bt_mesh_cfg_cli_comp_data_get(0, server_addr, page, &page_rsp, comp)); in comp_data_get() 1652 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 1657 comp_data_get(server_addr, page1, &comp_1); in comp_data_pages_get_and_equal_check() 1658 comp_data_get(server_addr, page2, &comp_2); in comp_data_pages_get_and_equal_check()
|