/Zephyr-Core-3.6.0/drivers/usb/device/ |
D | usb_dc_native_posix_adapt.c | 128 dev->busnum = htonl(1); in fill_device() 129 dev->devnum = htonl(2); in fill_device() 130 dev->speed = htonl(2); in fill_device() 174 uint32_t ndev = htonl(1); in handle_device_list() 289 srv.sin_addr.s_addr = htonl(INADDR_ANY); in usbip_start() 436 rsp.common.command = htonl(USBIP_RET_SUBMIT); in usbip_send_common() 437 rsp.common.seqnum = htonl(seqnum_global); in usbip_send_common() 438 rsp.common.devid = htonl(0); in usbip_send_common() 439 rsp.common.direction = htonl(ep_dir); in usbip_send_common() 440 rsp.common.ep = htonl(ep_idx); in usbip_send_common() [all …]
|
/Zephyr-Core-3.6.0/subsys/net/lib/zperf/ |
D | zperf_udp_uploader.c | 71 datagram->id = htonl(-nb_packets); in zperf_upload_fin() 72 datagram->tv_sec = htonl(secs); in zperf_upload_fin() 73 datagram->tv_usec = htonl(usecs); in zperf_upload_fin() 84 hdr->num_of_threads = htonl(1); in zperf_upload_fin() 89 hdr->num_of_bytes = htonl(packet_size); in zperf_upload_fin() 206 datagram->id = htonl(nb_packets); in udp_upload() 207 datagram->tv_sec = htonl(secs); in udp_upload() 208 datagram->tv_usec = htonl(usecs); in udp_upload() 213 hdr->num_of_threads = htonl(1); in udp_upload() 214 hdr->port = htonl(port); in udp_upload() [all …]
|
D | zperf_udp_receiver.c | 61 stat_hdr->flags = htonl(stat->flags); in build_reply() 62 stat_hdr->total_len1 = htonl(stat->total_len1); in build_reply() 63 stat_hdr->total_len2 = htonl(stat->total_len2); in build_reply() 64 stat_hdr->stop_sec = htonl(stat->stop_sec); in build_reply() 65 stat_hdr->stop_usec = htonl(stat->stop_usec); in build_reply() 66 stat_hdr->error_cnt = htonl(stat->error_cnt); in build_reply() 67 stat_hdr->outorder_cnt = htonl(stat->outorder_cnt); in build_reply() 68 stat_hdr->datagrams = htonl(stat->datagrams); in build_reply() 69 stat_hdr->jitter1 = htonl(stat->jitter1); in build_reply() 70 stat_hdr->jitter2 = htonl(stat->jitter2); in build_reply()
|
/Zephyr-Core-3.6.0/tests/posix/headers/src/ |
D | arpa_inet_h.c | 22 zassert_not_equal(-1, htonl(0)); in ZTEST()
|
/Zephyr-Core-3.6.0/samples/net/sockets/tcp/src/ |
D | main.c | 56 sin.sin_addr.s_addr = htonl(INADDR_ANY); in udp()
|
/Zephyr-Core-3.6.0/subsys/net/lib/dns/ |
D | dns_sd.c | 337 rr->ttl = htonl(ttl); in add_a_record() 342 rdata->address = htonl(addr); in add_a_record() 444 rr->ttl = htonl(ttl); in add_ptr_record() 505 rr->ttl = htonl(ttl); in add_txt_record() 554 rr->ttl = htonl(ttl); in add_aaaa_record() 618 rr->ttl = htonl(ttl); in add_srv_record() 804 tmp = htonl(*(addr4->s4_addr32)); in dns_sd_handle_ptr_query() 886 rr->ttl = htonl(DNS_SD_PTR_TTL); in dns_sd_handle_service_type_enum()
|
D | llmnr_responder.c | 95 addr->sin_addr.s_addr = htonl(0xE00000FC); in create_ipv4_addr() 229 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer()
|
D | mdns_responder.c | 88 addr->sin_addr.s_addr = htonl(0xE00000FB); in create_ipv4_addr() 222 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer()
|
/Zephyr-Core-3.6.0/tests/net/socket/getnameinfo/src/ |
D | main.c | 34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
|
/Zephyr-Core-3.6.0/include/zephyr/net/ |
D | net_ip.h | 128 #define htonl(x) sys_cpu_to_be32(x) macro 1002 return UNALIGNED_GET(&addr->s6_addr32[0]) == htonl(0xff020000) && in net_ipv6_is_addr_solicited_node() 1004 UNALIGNED_GET(&addr->s6_addr32[2]) == htonl(0x00000001) && in net_ipv6_is_addr_solicited_node() 1005 ((UNALIGNED_GET(&addr->s6_addr32[3]) & htonl(0xff000000)) == in net_ipv6_is_addr_solicited_node() 1006 htonl(0xff000000)); in net_ipv6_is_addr_solicited_node() 1309 UNALIGNED_PUT(htonl(0xfe800000), &addr->s6_addr32[0]); in net_ipv6_addr_create_iid()
|
/Zephyr-Core-3.6.0/samples/net/sockets/dumb_http_server/src/ |
D | socket_dumb_http.c | 69 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-Core-3.6.0/subsys/net/l2/ethernet/gptp/ |
D | gptp_messages.c | 295 fup->prec_orig_ts_secs_low = htonl(sync_ts->_sec.low); in gptp_prepare_follow_up() 296 fup->prec_orig_ts_nsecs = htonl(sync_ts->nanosecond); in gptp_prepare_follow_up() 907 resp->req_receipt_ts_secs_low = htonl(treq->_sec.low); in gptp_send_pdelay_resp() 908 resp->req_receipt_ts_nsecs = htonl(treq->nanosecond); in gptp_send_pdelay_resp() 930 follow_up->resp_orig_ts_secs_low = htonl(tresp->_sec.low); in gptp_send_pdelay_follow_up() 931 follow_up->resp_orig_ts_nsecs = htonl(tresp->nanosecond); in gptp_send_pdelay_follow_up()
|
/Zephyr-Core-3.6.0/samples/net/mdns_responder/src/ |
D | service.c | 70 net_sin(&server_addr)->sin_addr.s_addr = htonl(INADDR_ANY); in service()
|
/Zephyr-Core-3.6.0/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 110 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-Core-3.6.0/subsys/net/lib/sntp/ |
D | sntp.c | 233 tx_pkt.tx_tm_s = htonl(ctx->expected_orig_ts.seconds); in sntp_query() 234 tx_pkt.tx_tm_f = htonl(ctx->expected_orig_ts.fraction); in sntp_query()
|
/Zephyr-Core-3.6.0/samples/net/sockets/echo_async/src/ |
D | socket_echo.c | 118 .s_addr = htonl(INADDR_ANY), in main()
|
/Zephyr-Core-3.6.0/samples/net/sockets/echo_async_select/src/ |
D | socket_echo_select.c | 104 .s_addr = htonl(INADDR_ANY),
|
/Zephyr-Core-3.6.0/tests/net/dhcpv4/server/src/ |
D | main.c | 169 msg.xid = htonl(TEST_XID); in client_prepare_test_msg() 470 optval = htonl(optval); in verify_option_uint32() 530 zassert_equal(msg->xid, htonl(TEST_XID), "Incorrect %s value", "xid"); in verify_offer() 702 zassert_equal(msg->xid, htonl(TEST_XID), "Incorrect %s value", "xid"); in verify_ack()
|
/Zephyr-Core-3.6.0/subsys/net/ip/ |
D | icmp.c | 184 uint32_t time_stamp = htonl(k_cycle_get_32()); in send_icmpv4_echo_request() 305 uint32_t time_stamp = htonl(k_cycle_get_32()); in send_icmpv6_echo_request()
|
/Zephyr-Core-3.6.0/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 1432 if ((htonl(server_addr->s_addr) >= htonl(base_addr->s_addr)) && in net_dhcpv4_server_start() 1433 (htonl(server_addr->s_addr) < in net_dhcpv4_server_start() 1434 htonl(base_addr->s_addr) + CONFIG_NET_DHCPV4_SERVER_ADDR_COUNT)) { in net_dhcpv4_server_start() 1511 htonl(ntohl(base_addr->s_addr) + i); in net_dhcpv4_server_start()
|
/Zephyr-Core-3.6.0/samples/subsys/modbus/tcp_server/src/ |
D | main.c | 288 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-Core-3.6.0/tests/net/lib/dns_sd/src/ |
D | main.c | 520 .s_addr = htonl(IP_ADDR(177, 5, 240, 13)), in ZTEST() 588 .s_addr = htonl(IP_ADDR(177, 5, 240, 13)), in ZTEST()
|
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/transport/src/ |
D | smp_udp.c | 189 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in create_socket()
|
/Zephyr-Core-3.6.0/tests/net/tcp/src/ |
D | main.c | 293 th->th_seq = htonl(seq); in tester_prepare_tcp_pkt() 296 th->th_ack = htonl(ack); in tester_prepare_tcp_pkt()
|
/Zephyr-Core-3.6.0/drivers/ethernet/ |
D | eth_adin2111.c | 84 *(uint32_t *)(buf + header_size) = htonl(val); in eth_adin2111_reg_write()
|