Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 204) sorted by relevance

123456789

/third_party/NuttX/fs/nfs/
Dxdr_subs.h76 #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_t)((f) >> 32)); \
126 ((uint32_t *)(t))[1] = htonl((uint32_t)((f) & 0xffffffff)); \
/third_party/musl/libc-test/src/functionalext/supplement/network/network_gtest/
Darpa_inet_test.cpp34 in_addr addr = { (htonl)(0x7f000001) };
51 EXPECT_EQ((htonl)(0x7f090807), addr.s_addr);
66 EXPECT_EQ((htonl)(0x7f090008), addr.s_addr);
81 EXPECT_EQ((htonl)(0x7f000009), addr.s_addr);
96 EXPECT_EQ((htonl)(0xff000009), addr.s_addr);
111 EXPECT_EQ((htonl)(0xff000009), addr.s_addr);
126 EXPECT_EQ((htonl)(0x7f000009), addr.s_addr);
141 EXPECT_EQ((htonl)(369u), addr.s_addr);
275 EXPECT_EQ((htonl)(0x7f000001), result);
360 in_addr addr = { htonl(0x98765432) };
[all …]
Dnetdb_test.cpp244 addr.sin_addr.s_addr = htonl(0x7f000001);
280 hostAddr.s_addr = htonl(INADDR_LOOPBACK);
304 hostAddr1.s_addr = htonl(INADDR_LOOPBACK);
319 hostAddr2.s_addr = htonl(INADDR_LOOPBACK);
357 hostAddr.s_addr = htonl(INADDR_LOOPBACK);
407 in_addr addr = { htonl(0x7f000001) };
413 hostAddr.s_addr = htonl(INADDR_LOOPBACK);
425 in_addr addr = { htonl(0x7f000001) };
438 hostAddr1.s_addr = htonl(INADDR_LOOPBACK);
453 hostAddr2.s_addr = htonl(INADDR_LOOPBACK);
/third_party/mesa3d/src/util/sha1/
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/
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()
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()
Dinet_netof.c30 struct in_addr a = {htonl(IP)}; in inet_netof_0100()
42 struct in_addr a = {htonl(0x80000001)}; in inet_netof_0200()
Drecvmmsg.c43 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in sendsss()
91 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in recvsss()
D__recvmmsg_time64.c45 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in sendsss()
93 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in recvsss()
/third_party/ltp/testcases/cve/
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/lwip/test/unit/dhcp/
Dtest_dhcp.c467 xid = htonl(netif_dhcp_data(&net_test)->xid); in START_TEST()
477 xid = htonl(netif_dhcp_data(&net_test)->xid); /* xid updated */ in START_TEST()
540 xid = htonl(netif_dhcp_data(&net_test)->xid); in START_TEST()
550 xid = htonl(netif_dhcp_data(&net_test)->xid); /* xid updated */ in START_TEST()
759 xid = htonl(netif_dhcp_data(&net_test)->xid); in START_TEST()
765 xid = htonl(netif_dhcp_data(&net_test)->xid); /* xid updated */ in START_TEST()
801 xid = htonl(netif_dhcp_data(&net_test)->xid); /* xid updated */ in START_TEST()
908 xid = htonl(dhcp->xid); in START_TEST()
915 xid = htonl(dhcp->xid); /* xid updated */ in START_TEST()
924 fail_unless(xid == htonl(dhcp->xid)); in START_TEST()
[all …]
/third_party/musl/libc-test/src/api/
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/pulseaudio/src/pulsecore/
Dpstream.c610 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl((uint32_t) -1); in prepare_next_write_item()
621 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl((uint32_t) plen); in prepare_next_write_item()
630 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMRELEASE); in prepare_next_write_item()
631 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item()
635 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMREVOKE); in prepare_next_write_item()
636 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item()
645 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl(p->write.current->channel); in prepare_next_write_item()
646 …p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl((uint32_t) (((uint64_t) p->write.curr… in prepare_next_write_item()
647 …p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_LO] = htonl((uint32_t) ((uint64_t) p->write.curre… in prepare_next_write_item()
697 shm_info[PA_PSTREAM_SHM_BLOCKID] = htonl(block_id); in prepare_next_write_item()
[all …]
/third_party/lame/frontend/
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/pulseaudio/src/modules/raop/
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(stamp); in build_udp_sync_packet()
[all …]
/third_party/ltp/testcases/network/sockets/
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/ltp/testcases/network/lib6/
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()
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()
/third_party/ltp/testcases/network/multicast/mc_member/
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/rust/crates/linux-raw-sys/gen/include/
Dsupport.h33 #define htonl(x) (x) macro
38 #define htonl(x) (__builtin_bswap32(x)) macro
/third_party/node/benchmark/buffers/
Dbuffer-swap.js38 Buffer.prototype.htonl = function htonl() { method in Buffer
/third_party/ltp/testcases/network/multicast/mc_commo/
Dmc_recv.c46 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in main()
55 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
Dmc_send.c47 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in main()
57 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
/third_party/musl/libc-test/src/functional/
Dsocket.c28 sa.sin_addr.s_addr = htonl(0x7f000001); in main()
42 sa.sin_addr.s_addr = htonl(0x7f000001); in main()
/third_party/node/deps/ngtcp2/nghttp3/lib/
Dnghttp3_conv.c79 n = htonl(n); in nghttp3_put_uint32be()
84 n = htonl(n); in nghttp3_put_uint24be()

123456789