Home
last modified time | relevance | path

Searched refs:htonl (Results 1 - 25 of 196) sorted by relevance

12345678

/third_party/NuttX/fs/nfs/
H A Dxdr_subs.h66 * These use the MACHINE DEPENDENT routines ntohl, htonl
69 * To simplify the implementation, we use ntohl/htonl even on big-endian
76 #define txdr_unsigned(v) (htonl(v))
89 ((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \
91 ((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \
109 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \
110 ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \
115 ((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->nfsv3_sec); \
116 ((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->nfsv3_nsec); \
125 ((uint32_t *)(t))[0] = htonl((uint32_
[all...]
/third_party/mesa3d/src/util/sha1/
H A Dsha1.h36 x[0] = htonl(x[0]); \
37 x[1] = htonl(x[1]); \
38 x[2] = htonl(x[2]); \
39 x[3] = htonl(x[3]); \
40 x[4] = htonl(x[4]); } while (0)
/third_party/musl/libc-test/src/functionalext/supplement/network/
H A Dinet_aton.c32 if (a.s_addr != (htonl)(0x7f010203)) { in inet_aton_0100()
50 if (a.s_addr != (htonl)(0x7f010002)) { in inet_aton_0200()
68 if (a.s_addr != (htonl)(0x7f000001)) { in inet_aton_0300()
86 if (a.s_addr != (htonl)(0x7f000001)) { in inet_aton_0400()
104 if (a.s_addr != (htonl)(0xff000001)) { in inet_aton_0500()
H A Dinet_makeaddr.c32 EXPECT_EQ("inet_makeaddr_0100", htonl(IP), a.s_addr); in inet_makeaddr_0100()
45 EXPECT_EQ("inet_makeaddr_0200", htonl(ip), a.s_addr); in inet_makeaddr_0200()
58 EXPECT_EQ("inet_makeaddr_0200", htonl(ip), a.s_addr); in inet_makeaddr_0300()
H A Dinet_netof.c30 struct in_addr a = {htonl(IP)}; in inet_netof_0100()
42 struct in_addr a = {htonl(0x80000001)}; in inet_netof_0200()
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/
H A Darpa_inet_test.cpp34 in_addr addr = { (htonl)(0x7f000001) }; in HWTEST_F()
51 EXPECT_EQ((htonl)(0x7f090807), addr.s_addr); in HWTEST_F()
66 EXPECT_EQ((htonl)(0x7f090008), addr.s_addr); in HWTEST_F()
81 EXPECT_EQ((htonl)(0x7f000009), addr.s_addr); in HWTEST_F()
96 EXPECT_EQ((htonl)(0xff000009), addr.s_addr); in HWTEST_F()
111 EXPECT_EQ((htonl)(0xff000009), addr.s_addr); in HWTEST_F()
126 EXPECT_EQ((htonl)(0x7f000009), addr.s_addr); in HWTEST_F()
141 EXPECT_EQ((htonl)(369u), addr.s_addr); in HWTEST_F()
275 EXPECT_EQ((htonl)(0x7f000001), result); in HWTEST_F()
360 in_addr addr = { htonl( in HWTEST_F()
[all...]
H A Dnetdb_test.cpp244 addr.sin_addr.s_addr = htonl(0x7f000001); in HWTEST_F()
280 hostAddr.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
304 hostAddr1.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
319 hostAddr2.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
357 hostAddr.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
407 in_addr addr = { htonl(0x7f000001) }; in HWTEST_F()
413 hostAddr.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
425 in_addr addr = { htonl(0x7f000001) }; in HWTEST_F()
438 hostAddr1.s_addr = htonl(INADDR_LOOPBACK); in HWTEST_F()
453 hostAddr2.s_addr = htonl(INADDR_LOOPBAC in HWTEST_F()
[all...]
/third_party/ltp/testcases/cve/
H A Dicmp_rate_limit01.c74 NETDEV_ADD_ADDRESS_INET("ltp_veth2", htonl(DSTADDR), NETMASK, in setup()
77 NETDEV_ADD_ROUTE_INET("ltp_veth2", 0, 0, htonl(SRCNET), NETMASK, 0); in setup()
85 NETDEV_ADD_ADDRESS_INET("ltp_veth1", htonl(addr), NETMASK, in setup()
90 NETDEV_ADD_ROUTE_INET("ltp_veth1", 0, 0, htonl(DSTNET), NETMASK, 0); in setup()
95 ipaddr.sin_addr.s_addr = htonl(SRCADDR_BASE + i); in setup()
217 .sin_addr = { htonl(DSTADDR) } in run()
/third_party/musl/libc-test/src/api/
H A Darpa_inet.c16 #ifdef htonl in f()
17 I(uint32_t, htonl(0LL)) in f()
19 {uint32_t(*p)(uint32_t) = htonl;} in f()
/third_party/backends/backend/
H A Dhpljm1005.c742 dev->packet_data[0] = htonl (MAGIC_NUMBER); in send_pkt()
743 dev->packet_data[1] = htonl (command); in send_pkt()
744 dev->packet_data[5] = htonl (data_size); in send_pkt()
785 dev->conf_data[0] = htonl (0x15); in send_conf()
786 dev->conf_data[1] = htonl (dev->optionw[BRIGH_OFFSET]); in send_conf()
787 dev->conf_data[2] = htonl (dev->optionw[CONTR_OFFSET]); in send_conf()
788 dev->conf_data[3] = htonl (dev->optionw[RES_OFFSET]); in send_conf()
789 dev->conf_data[4] = htonl (0x1); in send_conf()
790 dev->conf_data[5] = htonl (0x1); in send_conf()
791 dev->conf_data[6] = htonl ( in send_conf()
[all...]
H A Dhp5400_internal.c751 HP5400_DBG (DBG_MSG, " transfersize=%d htonl-> %d\n", resp->transfersize, in hp5400_test_scan_response()
752 htonl (resp->transfersize)); in hp5400_test_scan_response()
753 HP5400_DBG (DBG_MSG, " xsize=%d htonl-> %d\n", resp->xsize, in hp5400_test_scan_response()
754 htonl (resp->xsize)); in hp5400_test_scan_response()
785 length = htonl (res.xsize) / 6; in DoAverageScan()
795 buffer = malloc (htonl (res.xsize) + 1); in DoAverageScan()
850 fprintf (file, "P%d\n%d %d\n", 6, htonl (res->xsize) / 3, in DoScan()
854 buffer = malloc (htonl (res->xsize) + 1); in DoScan()
859 fwrite (buffer, htonl (res->xsize), 1, file); in DoScan()
1054 params->iBytesPerLine = htonl (re in hp5400_scan()
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dpstream.c613 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl((uint32_t) -1); in prepare_next_write_item()
624 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl((uint32_t) plen); in prepare_next_write_item()
633 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMRELEASE); in prepare_next_write_item()
634 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item()
638 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMREVOKE); in prepare_next_write_item()
639 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item()
648 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl(p->write.current->channel); in prepare_next_write_item()
649 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl((uint32_t) (((uint64_t) p->write.current->offset) >> 32)); in prepare_next_write_item()
650 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_LO] = htonl((uint32_t) ((uint64_t) p->write.current->offset)); in prepare_next_write_item()
700 shm_info[PA_PSTREAM_SHM_BLOCKID] = htonl(block_i in prepare_next_write_item()
[all...]
/third_party/ltp/testcases/network/sockets/
H A DltpServer.c117 multiServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
132 htonl(INADDR_ANY); in main()
174 udpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
191 tcpServerAddr.sin_addr.s_addr = htonl(INADDR_ANY); in main()
/third_party/lame/frontend/
H A Drtp.c227 source.sin_addr.s_addr = htonl(INADDR_ANY); in rtp_socket()
329 outcast[0] = htonl(cast[0]); in rtp_send()
330 outcast[1] = htonl(cast[1]); in rtp_send()
331 outcast[2] = htonl(cast[2]); in rtp_send()
332 outcast[3] = htonl(cast[3]); in rtp_send()
/third_party/rust/crates/linux-raw-sys/gen/include/
H A Dsupport.h33 #define htonl(x) (x) macro
38 #define htonl(x) (__builtin_bswap32(x)) macro
/third_party/ltp/testcases/network/lib6/
H A Dasapi_02.c99 ic6.icmp6_data32[0] = htonl(getpid()); in ic6_send()
141 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv()
147 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv()
H A Dasapi_01.c256 pttp->tp_pid = htonl(pid); in client()
304 if (htonl(prtp->tp_pid) == (uint32_t)pid && in client()
305 htonl(prtp->tp_seq) == (uint32_t)seq) in client()
323 ph.ph_len = htonl(xlen); in client()
367 sin4.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in isocketpair()
/third_party/ltp/testcases/network/multicast/mc_member/
H A Dmc_member_test.c83 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
127 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in join_group()
162 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in leave_group()
/third_party/pulseaudio/src/modules/raop/
H A Draop-client.c333 buffer[1] |= htonl((uint32_t) c->seq); in build_tcp_audio_packet()
334 buffer[2] = htonl(c->rtptime); in build_tcp_audio_packet()
335 buffer[3] = htonl(c->ssrc); in build_tcp_audio_packet()
351 buffer[0] |= htonl((uint32_t) size - 4); in build_tcp_audio_packet()
419 buffer[0] |= htonl((uint32_t) 0x80 << 16); in build_udp_audio_packet()
420 buffer[0] |= htonl((uint32_t) c->seq); in build_udp_audio_packet()
421 buffer[1] = htonl(c->rtptime); in build_udp_audio_packet()
422 buffer[2] = htonl(c->ssrc); in build_udp_audio_packet()
497 buffer[0] |= htonl((uint32_t) seq); in rebuild_udp_audio_packet()
561 buffer[1] = htonl(stam in build_udp_sync_packet()
[all...]
/third_party/eudev/src/libudev/
H A Dlibudev-monitor.c611 if (buf.nlh.magic != htonl(UDEV_MONITOR_MAGIC)) { in udev_monitor_receive_device()
613 buf.nlh.magic, htonl(UDEV_MONITOR_MAGIC)); in udev_monitor_receive_device()
676 .magic = htonl(UDEV_MONITOR_MAGIC), in udev_monitor_send_device()
697 nlh.filter_subsystem_hash = htonl(util_string_hash32(val)); in udev_monitor_send_device()
701 nlh.filter_devtype_hash = htonl(util_string_hash32(val)); in udev_monitor_send_device()
708 nlh.filter_tag_bloom_hi = htonl(tag_bloom_bits >> 32); in udev_monitor_send_device()
709 nlh.filter_tag_bloom_lo = htonl(tag_bloom_bits & 0xffffffff); in udev_monitor_send_device()
/third_party/node/benchmark/buffers/
H A Dbuffer-swap.js7 method: ['swap16', 'swap32', 'swap64'/* , 'htons', 'htonl', 'htonll' */],
14 // The htons and htonl methods below are used to benchmark the
38 Buffer.prototype.htonl = function htonl() {
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_conv.c79 n = htonl(n); in nghttp3_put_uint32be()
84 n = htonl(n); in nghttp3_put_uint24be()
/third_party/ltp/testcases/kernel/syscalls/accept4/
H A Daccept4_01.c54 svaddr.sin_addr.s_addr = htonl(INADDR_ANY); in create_listening_socket()
77 conn_addr->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in setup()
/third_party/ltp/testcases/network/multicast/mc_commo/
H A Dmc_send.c47 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in main()
57 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
H A Dmc_recv.c46 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in main()
55 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()

Completed in 14 milliseconds

12345678