/Zephyr-latest/tests/posix/net/src/ |
D | inet_addr.c | 36 {"0.0.0.0", htonl(0)}, in ZTEST() 37 {"000.00.0.0", htonl(0)}, in ZTEST() 38 {"127.0.0.1", htonl(0x7f000001)}, in ZTEST() 39 {"1.2.3.4", htonl(0x01020304)}, in ZTEST() 40 {"1.2.3.4 ", htonl(0x01020304)}, in ZTEST() 41 {"0.0.0.123 a", htonl(0x0000007b)}, in ZTEST() 42 {"255.255.255.255", htonl(0xffffffff)}, in ZTEST()
|
D | inet_ntoa.c | 16 in.s_addr = htonl(0x7f000001); in ZTEST() 19 in.s_addr = htonl(0); in ZTEST() 22 in.s_addr = htonl(0xffffffff); in ZTEST()
|
/Zephyr-latest/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() 131 dev->speed = htonl(3); in fill_device() 133 dev->speed = htonl(2); in fill_device() 178 uint32_t ndev = htonl(1); in handle_device_list() 293 srv.sin_addr.s_addr = htonl(INADDR_ANY); in usbip_start() 440 rsp.common.command = htonl(USBIP_RET_SUBMIT); in usbip_send_common() 441 rsp.common.seqnum = htonl(seqnum_global); in usbip_send_common() 442 rsp.common.devid = htonl(0); in usbip_send_common() 443 rsp.common.direction = htonl(ep_dir); in usbip_send_common() [all …]
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_udp_uploader.c | 73 datagram->id = htonl(-nb_packets); in zperf_upload_fin() 74 datagram->tv_sec = htonl(secs); in zperf_upload_fin() 75 datagram->tv_usec = htonl(usecs); in zperf_upload_fin() 86 hdr->num_of_threads = htonl(1); in zperf_upload_fin() 91 hdr->num_of_bytes = htonl(packet_size); in zperf_upload_fin() 215 datagram->id = htonl(nb_packets); in udp_upload() 216 datagram->tv_sec = htonl(secs); in udp_upload() 217 datagram->tv_usec = htonl(usecs); in udp_upload() 222 hdr->num_of_threads = htonl(1); in udp_upload() 223 hdr->port = htonl(port); in udp_upload() [all …]
|
D | zperf_udp_receiver.c | 67 stat_hdr->flags = htonl(stat->flags); in build_reply() 68 stat_hdr->total_len1 = htonl(stat->total_len1); in build_reply() 69 stat_hdr->total_len2 = htonl(stat->total_len2); in build_reply() 70 stat_hdr->stop_sec = htonl(stat->stop_sec); in build_reply() 71 stat_hdr->stop_usec = htonl(stat->stop_usec); in build_reply() 72 stat_hdr->error_cnt = htonl(stat->error_cnt); in build_reply() 73 stat_hdr->outorder_cnt = htonl(stat->outorder_cnt); in build_reply() 74 stat_hdr->datagrams = htonl(stat->datagrams); in build_reply() 75 stat_hdr->jitter1 = htonl(stat->jitter1); in build_reply() 76 stat_hdr->jitter2 = htonl(stat->jitter2); in build_reply()
|
/Zephyr-latest/tests/posix/headers/src/ |
D | arpa_inet_h.c | 22 zassert_not_equal(-1, htonl(0)); in ZTEST()
|
/Zephyr-latest/samples/net/sockets/tcp/src/ |
D | main.c | 56 sin.sin_addr.s_addr = htonl(INADDR_ANY); in udp()
|
/Zephyr-latest/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() 811 tmp = htonl(*(addr4->s4_addr32)); in dns_sd_handle_ptr_query() 894 rr->ttl = htonl(DNS_SD_PTR_TTL); in dns_sd_handle_service_type_enum()
|
/Zephyr-latest/tests/net/socket/getnameinfo/src/ |
D | main.c | 34 saddr.sin_addr.s_addr = htonl(0x7f000001); in ZTEST_USER()
|
/Zephyr-latest/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-latest/samples/subsys/modbus/tcp_gateway/src/ |
D | main.c | 110 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-latest/samples/net/mdns_responder/src/ |
D | service.c | 70 net_sin(&server_addr)->sin_addr.s_addr = htonl(INADDR_ANY); in service()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_ip.h | 132 #define htonl(x) sys_cpu_to_be32(x) macro 1163 return UNALIGNED_GET(&addr->s6_addr32[0]) == htonl(0xff020000) && in net_ipv6_is_addr_solicited_node() 1165 UNALIGNED_GET(&addr->s6_addr32[2]) == htonl(0x00000001) && in net_ipv6_is_addr_solicited_node() 1166 ((UNALIGNED_GET(&addr->s6_addr32[3]) & htonl(0xff000000)) == in net_ipv6_is_addr_solicited_node() 1167 htonl(0xff000000)); in net_ipv6_is_addr_solicited_node()
|
/Zephyr-latest/subsys/net/lib/sntp/ |
D | sntp.c | 201 tx_pkt.tx_tm_s = htonl(ctx->expected_orig_ts.seconds); in sntp_query() 202 tx_pkt.tx_tm_f = htonl(ctx->expected_orig_ts.fraction); in sntp_query()
|
/Zephyr-latest/subsys/net/l2/ethernet/gptp/ |
D | gptp_md.c | 61 fup->prec_orig_ts_secs_low = htonl(sync_ts->_sec.low); in gptp_md_follow_up_prepare() 62 fup->prec_orig_ts_nsecs = htonl(sync_ts->nanosecond); in gptp_md_follow_up_prepare() 74 fup->prec_orig_ts_secs_low = htonl(sync_send->precise_orig_ts._sec.low); in gptp_md_follow_up_prepare() 75 fup->prec_orig_ts_nsecs = htonl(sync_send->precise_orig_ts.nanosecond); in gptp_md_follow_up_prepare()
|
D | gptp_messages.c | 892 resp->req_receipt_ts_secs_low = htonl(treq->_sec.low); in gptp_send_pdelay_resp() 893 resp->req_receipt_ts_nsecs = htonl(treq->nanosecond); in gptp_send_pdelay_resp() 915 follow_up->resp_orig_ts_secs_low = htonl(tresp->_sec.low); in gptp_send_pdelay_follow_up() 916 follow_up->resp_orig_ts_nsecs = htonl(tresp->nanosecond); in gptp_send_pdelay_follow_up()
|
/Zephyr-latest/samples/net/sockets/echo_async/src/ |
D | socket_echo.c | 120 .s_addr = htonl(INADDR_ANY), in main()
|
/Zephyr-latest/samples/net/sockets/echo_async_select/src/ |
D | socket_echo_select.c | 105 .s_addr = htonl(INADDR_ANY),
|
/Zephyr-latest/tests/net/dhcpv4/server/src/ |
D | main.c | 169 msg.xid = htonl(TEST_XID); in client_prepare_test_msg() 474 optval = htonl(optval); in verify_option_uint32() 534 zassert_equal(msg->xid, htonl(TEST_XID), "Incorrect %s value", "xid"); in verify_offer() 707 zassert_equal(msg->xid, htonl(TEST_XID), "Incorrect %s value", "xid"); in verify_ack()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | tlv.c | 321 ts.seconds_low = htonl(ts.seconds_low); in tlv_mgmt_pre_send() 322 ts.nanoseconds = htonl(ts.nanoseconds); in tlv_mgmt_pre_send()
|
D | msg.c | 62 ts->seconds_low = htonl(ts->seconds_low); in msg_timestamp_pre_send() 63 ts->nanoseconds = htonl(ts->nanoseconds); in msg_timestamp_pre_send()
|
/Zephyr-latest/subsys/net/ip/ |
D | icmp.c | 185 uint32_t time_stamp = htonl(k_cycle_get_32()); in send_icmpv4_echo_request() 309 uint32_t time_stamp = htonl(k_cycle_get_32()); in send_icmpv6_echo_request()
|
/Zephyr-latest/tests/net/lib/http_server/hpack/src/ |
D | main.c | 95 *buf = htonl(*buf); in test_huffman_code_prepare()
|
/Zephyr-latest/samples/subsys/modbus/tcp_server/src/ |
D | main.c | 288 bind_addr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | dhcpv4_server.c | 1565 if ((htonl(server_addr->s_addr) >= htonl(base_addr->s_addr)) && in net_dhcpv4_server_start() 1566 (htonl(server_addr->s_addr) < in net_dhcpv4_server_start() 1567 htonl(base_addr->s_addr) + CONFIG_NET_DHCPV4_SERVER_ADDR_COUNT)) { in net_dhcpv4_server_start() 1644 htonl(ntohl(base_addr->s_addr) + i); in net_dhcpv4_server_start()
|