Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 21 of 21) sorted by relevance

/Zephyr-latest/subsys/net/lib/sntp/
Dsntp.c35 NET_DBG("root_delay: %x", ntohl(pkt->root_delay)); in sntp_pkt_dump()
36 NET_DBG("root_dispersion: %x", ntohl(pkt->root_dispersion)); in sntp_pkt_dump()
37 NET_DBG("ref_id: %x", ntohl(pkt->ref_id)); in sntp_pkt_dump()
38 NET_DBG("ref_tm_s: %x", ntohl(pkt->ref_tm_s)); in sntp_pkt_dump()
39 NET_DBG("ref_tm_f: %x", ntohl(pkt->ref_tm_f)); in sntp_pkt_dump()
40 NET_DBG("orig_tm_s: %x", ntohl(pkt->orig_tm_s)); in sntp_pkt_dump()
41 NET_DBG("orig_tm_f: %x", ntohl(pkt->orig_tm_f)); in sntp_pkt_dump()
42 NET_DBG("rx_tm_s: %x", ntohl(pkt->rx_tm_s)); in sntp_pkt_dump()
43 NET_DBG("rx_tm_f: %x", ntohl(pkt->rx_tm_f)); in sntp_pkt_dump()
44 NET_DBG("tx_tm_s: %x", ntohl(pkt->tx_tm_s)); in sntp_pkt_dump()
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.c50 LOG_DBG("cmd %x seq %u dir %u ep %x", ntohl(hdr->common.command), in usbip_header_dump()
51 ntohl(hdr->common.seqnum), ntohl(hdr->common.direction), in usbip_header_dump()
52 ntohl(hdr->common.ep)); in usbip_header_dump()
54 switch (ntohl(hdr->common.command)) { in usbip_header_dump()
57 ntohl(hdr->u.submit.transfer_flags), in usbip_header_dump()
58 ntohl(hdr->u.submit.number_of_packets), in usbip_header_dump()
59 ntohl(hdr->u.submit.interval), in usbip_header_dump()
60 ntohl(hdr->u.submit.transfer_buffer_length)); in usbip_header_dump()
63 LOG_DBG("seq %d", ntohl(hdr->u.unlink.seqnum)); in usbip_header_dump()
207 if (ntohl(hdr->common.ep) == 0) { in handle_usbip_submit()
[all …]
Dusb_dc_native_posix.c515 uint8_t ep_idx = USB_EP_GET_IDX(ntohl(hdr->common.ep)); in handle_usb_control()
524 if ((ntohl(hdr->common.direction) == USBIP_DIR_IN) ^ in handle_usb_control()
535 if (ntohl(hdr->common.direction) == USBIP_DIR_OUT) { in handle_usb_control()
536 uint32_t data_len = ntohl(hdr->u.submit.transfer_buffer_length); in handle_usb_control()
559 uint8_t ep_idx = ntohl(hdr->common.ep); in handle_usb_data()
563 if (ntohl(hdr->common.direction) == USBIP_DIR_OUT) { in handle_usb_data()
572 data_len = ntohl(hdr->u.submit.transfer_buffer_length); in handle_usb_data()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_udp_uploader.c37 results->nb_packets_rcvd = ntohl(UNALIGNED_GET(&stat->datagrams)); in zperf_upload_decode_stat()
38 results->nb_packets_lost = ntohl(UNALIGNED_GET(&stat->error_cnt)); in zperf_upload_decode_stat()
40 ntohl(UNALIGNED_GET(&stat->outorder_cnt)); in zperf_upload_decode_stat()
41 results->total_len = (((uint64_t)ntohl(UNALIGNED_GET(&stat->total_len1))) << 32) + in zperf_upload_decode_stat()
42 ntohl(UNALIGNED_GET(&stat->total_len2)); in zperf_upload_decode_stat()
43 results->time_in_us = ntohl(UNALIGNED_GET(&stat->stop_usec)) + in zperf_upload_decode_stat()
44 ntohl(UNALIGNED_GET(&stat->stop_sec)) * USEC_PER_SEC; in zperf_upload_decode_stat()
45 results->jitter_in_us = ntohl(UNALIGNED_GET(&stat->jitter2)) + in zperf_upload_decode_stat()
46 ntohl(UNALIGNED_GET(&stat->jitter1)) * USEC_PER_SEC; in zperf_upload_decode_stat()
Dzperf_udp_receiver.c126 id = ntohl(hdr->id); in udp_received()
200 ntohl(hdr->tv_sec) * USEC_PER_SEC + in udp_received()
201 ntohl(hdr->tv_usec)); in udp_received()
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_md.c105 ntohl(fup->tlv.cumulative_scaled_rate_offset); in gptp_md_follow_up_prepare()
109 ntohl(sync_send->last_gm_phase_change.high); in gptp_md_follow_up_prepare()
114 ntohl(fup->tlv.scaled_last_gm_freq_change); in gptp_md_follow_up_prepare()
147 sync_rcv->precise_orig_ts._sec.low = ntohl(fup->prec_orig_ts_secs_low); in gptp_set_md_sync_receive()
148 sync_rcv->precise_orig_ts.nanosecond = ntohl(fup->prec_orig_ts_nsecs); in gptp_set_md_sync_receive()
165 sync_rcv->rate_ratio = ntohl(fup->tlv.cumulative_scaled_rate_offset); in gptp_set_md_sync_receive()
172 ntohl(fup->tlv.last_gm_phase_change.high); in gptp_set_md_sync_receive()
176 ntohl(fup->tlv.scaled_last_gm_freq_change); in gptp_set_md_sync_receive()
265 resp_evt_tstamp |= ntohl(fup->resp_orig_ts_secs_low); in gptp_md_compute_pdelay_rate_ratio()
267 resp_evt_tstamp += ntohl(fup->resp_orig_ts_nsecs); in gptp_md_compute_pdelay_rate_ratio()
[all …]
/Zephyr-latest/tests/net/tcp/src/
Dmain.c540 ack = ntohl(th->th_seq) + 1U; in handle_client_test()
723 ack = ntohl(th->th_seq) + 1U; in handle_server_test()
1079 ack = ntohl(th->th_seq) + 1U; in handle_syn_rst_ack()
1142 ack = ntohl(th->th_seq) + 1U; in handle_client_fin_wait_2_test()
1267 ack = ntohl(th->th_seq) + 1U; in handle_client_fin_wait_2_failure_test()
1400 return ntohl(th->th_seq) - device_initial_seq; in get_rel_seq()
1412 device_initial_seq = ntohl(th->th_seq); in handle_data_fin1_test()
1414 ack = ntohl(th->th_seq) + 1U; in handle_data_fin1_test()
1438 zassert_true(ntohl(th->th_ack) == 2, in handle_data_fin1_test()
1440 __func__, __LINE__, ntohl(th->th_ack)); in handle_data_fin1_test()
[all …]
/Zephyr-latest/tests/posix/headers/src/
Darpa_inet_h.c24 zassert_not_equal(-1, ntohl(0)); in ZTEST()
/Zephyr-latest/subsys/usb/host/
Dusbip.c71 cmd->hdr.command = ntohl(cmd->hdr.command); in usbip_ntoh_command()
72 cmd->hdr.seqnum = ntohl(cmd->hdr.seqnum); in usbip_ntoh_command()
73 cmd->hdr.devid = ntohl(cmd->hdr.devid); in usbip_ntoh_command()
74 cmd->hdr.direction = ntohl(cmd->hdr.direction); in usbip_ntoh_command()
75 cmd->hdr.ep = ntohl(cmd->hdr.ep); in usbip_ntoh_command()
78 cmd->submit.flags = ntohl(cmd->submit.flags); in usbip_ntoh_command()
79 cmd->submit.length = ntohl(cmd->submit.length); in usbip_ntoh_command()
80 cmd->submit.start_frame = ntohl(cmd->submit.start_frame); in usbip_ntoh_command()
81 cmd->submit.numof_iso_pkts = ntohl(cmd->submit.numof_iso_pkts); in usbip_ntoh_command()
82 cmd->submit.interval = ntohl(cmd->submit.interval); in usbip_ntoh_command()
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h108 #define ntohl(x) sys_be32_to_cpu(x) macro
684 ntohl(UNALIGNED_GET(&addr->s6_addr32[3])) == 1; in net_ipv6_is_addr_loopback()
837 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast()
849 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr()
865 masked_24 = ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFFFF00; in net_ipv4_is_private_addr()
1035 masked_32 = ntohl(UNALIGNED_GET(&addr->s6_addr32[0])); in net_ipv6_is_private_addr()
/Zephyr-latest/subsys/net/lib/ptp/
Dtlv.c222 ntohl(parent_ds->obsreved_parent_clk_phase_change_rate); in tlv_mgmt_post_recv()
247 ts.seconds_low = ntohl(ts.seconds_low); in tlv_mgmt_post_recv()
248 ts.nanoseconds = ntohl(ts.nanoseconds); in tlv_mgmt_post_recv()
Dmsg.c55 msg->timestamp.protocol._sec.low = ntohl(ts->seconds_low); in msg_timestamp_post_recv()
56 msg->timestamp.protocol.nanosecond = ntohl(ts->nanoseconds); in msg_timestamp_post_recv()
/Zephyr-latest/subsys/net/ip/
Dtcp_private.h18 #define th_seq(_x) ntohl(UNALIGNED_GET(&(_x)->th_seq))
19 #define th_ack(_x) ntohl(UNALIGNED_GET(&(_x)->th_ack))
Dipv6_nbr.c2343 valid_lifetime = ntohl(pfx_info->valid_lifetime); in handle_ra_prefix()
2344 preferred_lifetime = ntohl(pfx_info->preferred_lifetime); in handle_ra_prefix()
2428 route_lifetime = ntohl(route_info->route_lifetime); in handle_ra_route_info()
2564 reachable_time = ntohl(ra_hdr->reachable_time); in handle_ra_input()
2565 retrans_timer = ntohl(ra_hdr->retrans_timer); in handle_ra_input()
2794 mtu = ntohl(ptb_hdr->mtu); in handle_ptb_input()
Dtcp.c1515 uint32_t ack = ntohl(th_pkt->th_seq) + tcp_data_len(pkt); in net_tcp_reply_rst()
/Zephyr-latest/drivers/wifi/siwx91x/
Dsiwx91x_wifi_socket.c51 out6->sin6_addr.s6_addr32[i] = ntohl(in6->sin6_addr.s6_addr32[i]); in siwx91x_sockaddr_swap_bytes()
98 addr6.s6_addr32[i] = ntohl(ip_config6.ip.v6.global_address.value[i]); in siwx91x_on_join_ipv6()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_pack.h314 return ntohl(UNALIGNED_GET((uint32_t *)(answer + dname_size + 4))); in dns_answer_ttl()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4.c1497 msg->op, msg->htype, msg->hlen, ntohl(msg->xid), in net_dhcpv4_input()
1512 iface->config.dhcpv4.xid == ntohl(msg->xid) && in net_dhcpv4_input()
1517 msg->op, iface->config.dhcpv4.xid, ntohl(msg->xid)); in net_dhcpv4_input()
Ddhcpv4_server.c1652 htonl(ntohl(base_addr->s_addr) + i); in net_dhcpv4_server_start()
/Zephyr-latest/doc/services/portability/posix/option_groups/
Dindex.rst388 ntohl(),yes
/Zephyr-latest/drivers/ethernet/
Deth_adin2111.c470 *val = ntohl((*(uint32_t *)(&buf[header_len]))); in eth_adin2111_reg_read_generic()