/Zephyr-latest/tests/net/utils/src/ |
D | main.c | 600 .s6_addr16[0] = ntohs(0x2001), in ZTEST() 601 .s6_addr16[1] = ntohs(0xdb8), in ZTEST() 606 .s6_addr16[7] = ntohs(2) in ZTEST() 618 .s6_addr16[0] = ntohs(0x2001), in ZTEST() 619 .s6_addr16[1] = ntohs(0xdb8), in ZTEST() 624 .s6_addr16[7] = ntohs(0xa) in ZTEST() 636 .s6_addr16[0] = ntohs(0x2001), in ZTEST() 637 .s6_addr16[1] = ntohs(0xdb8), in ZTEST() 642 .s6_addr16[7] = ntohs(0xa) in ZTEST() 654 .s6_addr16[0] = ntohs(0x2001), in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_pack.h | 195 return ntohs(UNALIGNED_GET((uint16_t *)(header))); in dns_unpack_header_id() 254 return ntohs(UNALIGNED_GET((uint16_t *)(header + 4))); in dns_unpack_header_qdcount() 265 return ntohs(UNALIGNED_GET((uint16_t *)(header + 6))); in dns_unpack_header_ancount() 287 return ntohs(UNALIGNED_GET((uint16_t *)(question + 0))); in dns_unpack_query_qtype() 297 return ntohs(UNALIGNED_GET((uint16_t *)(question + 2))); in dns_unpack_query_qclass() 303 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 0))); in dns_answer_type() 309 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 2))); in dns_answer_class() 320 return ntohs(UNALIGNED_GET((uint16_t *)(answer + dname_size + 8))); in dns_answer_rdlength()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | tlv.c | 29 val = ntohs(val); in tlv_ntohs() 198 default_ds->n_ports = ntohs(default_ds->n_ports); in tlv_mgmt_post_recv() 200 ntohs(default_ds->clk_quality.offset_scaled_log_variance); in tlv_mgmt_post_recv() 208 current_ds->steps_rm = ntohs(current_ds->steps_rm); in tlv_mgmt_post_recv() 218 parent_ds->port_id.port_number = ntohs(parent_ds->port_id.port_number); in tlv_mgmt_post_recv() 220 ntohs(parent_ds->obsreved_parent_offset_scaled_log_variance); in tlv_mgmt_post_recv() 224 ntohs(parent_ds->gm_clk_quality.offset_scaled_log_variance); in tlv_mgmt_post_recv() 232 time_prop_ds->current_utc_offset = ntohs(time_prop_ds->current_utc_offset); in tlv_mgmt_post_recv() 240 port_ds->id.port_number = ntohs(port_ds->id.port_number); in tlv_mgmt_post_recv() 246 ts.seconds_high = ntohs(ts.seconds_high); in tlv_mgmt_post_recv() [all …]
|
D | msg.c | 54 msg->timestamp.protocol._sec.high = ntohs(ts->seconds_high); in msg_timestamp_post_recv() 68 port_id->port_number = ntohs(port_id->port_number); in msg_port_id_post_recv() 83 header->msg_length = ntohs(header->msg_length); in msg_header_post_recv() 85 header->sequence_id = ntohs(header->sequence_id); in msg_header_post_recv() 159 tlv_container->tlv->type = ntohs(tlv_container->tlv->type); in msg_tlv_post_recv() 160 tlv_container->tlv->length = ntohs(tlv_container->tlv->length); in msg_tlv_post_recv() 292 payload = ntohs(hdr->len) - NET_UDPH_LEN; in ptp_msg_from_pkt() 293 port = ntohs(hdr->dst_port); in ptp_msg_from_pkt() 302 if (payload == ntohs(msg->header.msg_length)) { in ptp_msg_from_pkt() 417 msg->announce.current_utc_offset = ntohs(msg->announce.current_utc_offset); in ptp_msg_post_recv() [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | net_shell.c | 93 ntohs(net_sin6_ptr(&context->local)->sin6_port)); in get_addresses() 97 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses() 103 ntohs(net_sin_ptr(&context->local)->sin_port)); in get_addresses() 112 ntohs(net_sin6(&context->remote)->sin6_port)); in get_addresses() 117 ntohs(net_sin(&context->remote)->sin_port)); in get_addresses()
|
D | conn.c | 75 ntohs(net_sin6(&conn->local_addr)->sin6_port)); in conn_handler_cb() 79 ntohs(net_sin6(&conn->remote_addr)->sin6_port)); in conn_handler_cb() 85 ntohs(net_sin(&conn->local_addr)->sin_port)); in conn_handler_cb() 89 ntohs(net_sin(&conn->remote_addr)->sin_port)); in conn_handler_cb() 126 ntohs(net_sin6_ptr(&conn->context->local)->sin6_port), in tcp_cb() 127 ntohs(net_sin6(&conn->context->remote)->sin6_port), in tcp_cb()
|
D | ping.c | 92 ntohs(ip_hdr->len) - net_pkt_ipv6_ext_len(pkt) - in handle_ipv6_echo_reply() 96 ntohs(icmp_echo->sequence), in handle_ipv6_echo_reply() 103 if (ntohs(icmp_echo->sequence) == ping_ctx.count) { in handle_ipv6_echo_reply() 169 ntohs(ip_hdr->len) - net_pkt_ipv6_ext_len(pkt) - in handle_ipv4_echo_reply() 173 ntohs(icmp_echo->sequence), in handle_ipv4_echo_reply() 177 if (ntohs(icmp_echo->sequence) == ping_ctx.count) { in handle_ipv4_echo_reply()
|
D | tcp.c | 71 ntohs(net_sin(myaddr)->sin_port)); in print_connect_info() 74 ntohs(net_sin(addr)->sin_port)); in print_connect_info() 85 ntohs(net_sin6(myaddr)->sin6_port)); in print_connect_info() 88 ntohs(net_sin6(addr)->sin6_port)); in print_connect_info()
|
D | capture.c | 27 ntohs(net_sin6(addr)->sin6_port)); in get_address_str() 32 ntohs(net_sin(addr)->sin_port)); in get_address_str()
|
D | dns.c | 100 ntohs(net_sin(&ctx->servers[i].dns_server)->sin_port), in print_dns_info() 109 ntohs(net_sin6(&ctx->servers[i].dns_server)->sin6_port), in print_dns_info()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | arpa_inet_h.c | 25 zassert_not_equal(-1, ntohs(0)); in ZTEST()
|
/Zephyr-latest/drivers/modem/ |
D | modem_context.c | 66 *port = ntohs(net_sin6(addr)->sin6_port); in modem_context_get_addr_port() 69 *port = ntohs(net_sin(addr)->sin_port); in modem_context_get_addr_port()
|
/Zephyr-latest/subsys/net/lib/sockets/ |
D | getnameinfo.c | 28 snprintk(serv, servlen, "%hu", ntohs(a->sin_port)); in zsock_getnameinfo()
|
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 102 addrstr, ntohs(*portp)); in service() 123 addrstr, ntohs(*portp)); in service()
|
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp_messages.c | 42 ntohs(one_hdr->sequence_id), pkt); \ 53 ntohs(one_hdr->sequence_id), pkt); \ 486 ntohs(global_ds->path_trace.len)); in gptp_prepare_announce() 551 ntohs(global_ds->path_trace.len)); in gptp_prepare_announce() 565 ntohs(global_ds->path_trace.len))) { in gptp_prepare_announce() 610 "FOLLOWUP", ntohs(hdr->sequence_id), in gptp_handle_follow_up() 612 "SYNC", ntohs(sync_hdr->sequence_id)); in gptp_handle_follow_up() 697 ntohs(hdr->sequence_id), in gptp_handle_pdelay_resp() 699 ntohs(req_hdr->sequence_id)); in gptp_handle_pdelay_resp() 757 ntohs(hdr->sequence_id), in gptp_handle_pdelay_follow_up() [all …]
|
D | gptp_md.c | 107 ntohs(sync_send->gm_time_base_indicator); in gptp_md_follow_up_prepare() 146 ntohs(fup->prec_orig_ts_secs_high); in gptp_set_md_sync_receive() 170 ntohs(fup->tlv.gm_time_base_indicator); in gptp_set_md_sync_receive() 263 resp_evt_tstamp = ntohs(fup->resp_orig_ts_secs_high); in gptp_md_compute_pdelay_rate_ratio() 335 t2_ns = ((uint64_t)ntohs(resp->req_receipt_ts_secs_high)) << 32; in gptp_md_compute_prop_time() 347 t3_ns = ((uint64_t)ntohs(fup->resp_orig_ts_secs_high)) << 32; in gptp_md_compute_prop_time()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/src/ |
D | main.c | 78 uint16_t len = ntohs(response_hdr->nh_len); in ZTEST() 79 uint16_t group = ntohs(response_hdr->nh_group); in ZTEST()
|
/Zephyr-latest/modules/thrift/src/thrift/transport/ |
D | TSSLServerSocket.cpp | 182 port_ = ntohs(sin->sin6_port); in listen() 185 port_ = ntohs(sin->sin_port); in listen()
|
/Zephyr-latest/samples/net/promiscuous_mode/src/ |
D | main.c | 52 *src = ntohs(udp_hdr->src_port); in get_ports() 53 *dst = ntohs(udp_hdr->dst_port); in get_ports()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp_offload.c | 63 ntohs(net_sin(&dst)->sin_port)); in _sock_connect() 87 (ntohs(net_sin(&dst)->sin_port) == 0)) { in _sock_connect() 100 ntohs(net_sin(&dst)->sin_port), ntohs(net_sin(&src)->sin_port), in _sock_connect() 106 ntohs(net_sin(&dst)->sin_port)); in _sock_connect() 299 ntohs(net_sin(&dst)->sin_port)); in _sock_send()
|
/Zephyr-latest/subsys/usb/device/class/netusb/ |
D | function_ecm.c | 230 switch (ntohs(hdr->type)) { in ecm_eth_size() 233 ip_len = ntohs(((struct net_ipv4_hdr *)ip_data)->len); in ecm_eth_size() 236 ip_len = ntohs(((struct net_ipv6_hdr *)ip_data)->len); in ecm_eth_size()
|
/Zephyr-latest/tests/net/socket/tls_ext/src/ |
D | main.c | 177 addrstr, ntohs(sa.sin_port), client_fd); in server_thread_fn() 291 addrstr, ntohs(sa.sin_port), server_fd); in test_common() 365 addrstr, ntohs(sa.sin_port), client_fd); in test_common()
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_native_posix_adapt.c | 360 LOG_DBG("Code: 0x%x", ntohs(req.code)); in usbip_start() 362 switch (ntohs(req.code)) { in usbip_start() 373 ntohs(req.code)); in usbip_start()
|
/Zephyr-latest/tests/net/ipv4_fragment/src/ |
D | main.c | 223 pkt_len = ntohs(hdr->len); in check_ipv4_fragment_header() 224 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in check_ipv4_fragment_header() 395 pkt_len = ntohs(hdr->len); in udp_data_received() 396 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in udp_data_received() 476 pkt_len = ntohs(hdr->len); in tcp_data_received() 477 pkt_offset = ntohs(*((uint16_t *)&hdr->offset)); in tcp_data_received()
|
/Zephyr-latest/subsys/net/l2/ethernet/ |
D | ethernet.c | 133 len = ntohs(NET_IPV4_HDR(pkt)->len); in ethernet_update_length() 135 len = ntohs(NET_IPV6_HDR(pkt)->len) + NET_IPV6H_LEN; in ethernet_update_length() 276 type = ntohs(hdr->type); in ethernet_recv() 285 net_pkt_set_vlan_tci(pkt, ntohs(hdr_vlan->vlan.tci)); in ethernet_recv() 286 type = ntohs(hdr_vlan->type); in ethernet_recv() 610 print_vlan_ll_addrs(pkt, ntohs(hdr_vlan->type), in ethernet_fill_header() 634 print_ll_addrs(pkt, ntohs(hdr->type), in ethernet_fill_header()
|