/third_party/NuttX/fs/nfs/ |
D | xdr_subs.h | 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_t)((f) >> 32)); \ 126 ((uint32_t *)(t))[1] = htonl((uint32_t)((f) & 0xffffffff)); \
|
/third_party/mesa3d/src/util/sha1/ |
D | sha1.h | 36 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/ |
D | inet_aton.c | 32 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()
|
D | inet_makeaddr.c | 32 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()
|
D | inet_netof.c | 30 struct in_addr a = {htonl(IP)}; in inet_netof_0100() 42 struct in_addr a = {htonl(0x80000001)}; in inet_netof_0200()
|
D | __recvmmsg_time64.c | 45 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in sendsss() 93 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in recvsss()
|
D | recvmmsg.c | 43 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in sendsss() 91 addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in recvsss()
|
/third_party/ltp/testcases/cve/ |
D | icmp_rate_limit01.c | 82 NETDEV_ADD_ADDRESS_INET("ltp_veth2", htonl(DSTADDR), NETMASK, in setup() 85 NETDEV_ADD_ROUTE_INET("ltp_veth2", 0, 0, htonl(SRCNET), NETMASK, 0); in setup() 93 NETDEV_ADD_ADDRESS_INET("ltp_veth1", htonl(addr), NETMASK, in setup() 98 NETDEV_ADD_ROUTE_INET("ltp_veth1", 0, 0, htonl(DSTNET), NETMASK, 0); in setup() 103 ipaddr.sin_addr.s_addr = htonl(SRCADDR_BASE + i); in setup() 225 .sin_addr = { htonl(DSTADDR) } in run()
|
/third_party/lwip/test/unit/dhcp/ |
D | test_dhcp.c | 467 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/ |
D | arpa_inet.c | 16 #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/ |
D | pstream.c | 609 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl((uint32_t) -1); in prepare_next_write_item() 620 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH] = htonl((uint32_t) plen); in prepare_next_write_item() 629 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMRELEASE); in prepare_next_write_item() 630 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item() 634 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS] = htonl(PA_FLAG_SHMREVOKE); in prepare_next_write_item() 635 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl(p->write.current->block_id); in prepare_next_write_item() 644 p->write.descriptor[PA_PSTREAM_DESCRIPTOR_CHANNEL] = htonl(p->write.current->channel); in prepare_next_write_item() 645 …p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_HI] = htonl((uint32_t) (((uint64_t) p->write.curr… in prepare_next_write_item() 646 …p->write.descriptor[PA_PSTREAM_DESCRIPTOR_OFFSET_LO] = htonl((uint32_t) ((uint64_t) p->write.curre… in prepare_next_write_item() 694 shm_info[PA_PSTREAM_SHM_BLOCKID] = htonl(block_id); in prepare_next_write_item() [all …]
|
/third_party/pulseaudio/src/modules/raop/ |
D | raop-client.c | 329 buffer[1] |= htonl((uint32_t) c->seq); in build_tcp_audio_packet() 330 buffer[2] = htonl(c->rtptime); in build_tcp_audio_packet() 331 buffer[3] = htonl(c->ssrc); in build_tcp_audio_packet() 347 buffer[0] |= htonl((uint32_t) size - 4); in build_tcp_audio_packet() 415 buffer[0] |= htonl((uint32_t) 0x80 << 16); in build_udp_audio_packet() 416 buffer[0] |= htonl((uint32_t) c->seq); in build_udp_audio_packet() 417 buffer[1] = htonl(c->rtptime); in build_udp_audio_packet() 418 buffer[2] = htonl(c->ssrc); in build_udp_audio_packet() 493 buffer[0] |= htonl((uint32_t) seq); in rebuild_udp_audio_packet() 557 buffer[1] = htonl(stamp); in build_udp_sync_packet() [all …]
|
/third_party/ltp/testcases/network/sockets/ |
D | ltpServer.c | 117 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/ |
D | asapi_01.c | 256 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()
|
D | asapi_02.c | 103 ic6.icmp6_data32[0] = htonl(getpid()); in ic6_send1() 159 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv1() 170 if (htonl(pic6->icmp6_data32[0]) == (uint32_t)getpid()) in ic6_recv1()
|
/third_party/ltp/testcases/network/multicast/mc_member/ |
D | mc_member_test.c | 83 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/ |
D | support.h | 33 #define htonl(x) (x) macro 38 #define htonl(x) (__builtin_bswap32(x)) macro
|
/third_party/node/benchmark/buffers/ |
D | buffer-swap.js | 38 Buffer.prototype.htonl = function htonl() { method in Buffer
|
/third_party/ltp/testcases/network/multicast/mc_commo/ |
D | mc_recv.c | 46 htonl((g1 << 24) | (g2 << 16) | (g3 << 8) | g4); in main() 55 htonl((i1 << 24) | (i2 << 16) | (i3 << 8) | i4); in main()
|
D | mc_send.c | 47 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/ |
D | socket.c | 28 sa.sin_addr.s_addr = htonl(0x7f000001); in main() 42 sa.sin_addr.s_addr = htonl(0x7f000001); in main()
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-igmp_querier.c | 195 query->group = htonl(INADDR_ANY); in create_query() 376 req_p->imr_address.s_addr = htonl(INADDR_ANY); in create_socket() 417 if (info_p->query->group == htonl(INADDR_ANY)) in send_query()
|
/third_party/ltp/testcases/kernel/syscalls/accept4/ |
D | accept4_01.c | 56 svaddr.sin_addr.s_addr = htonl(INADDR_ANY); in create_listening_socket() 75 conn_addr->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in setup()
|
/third_party/ltp/testcases/network/sctp/ |
D | sctp_big_chunk.c | 66 ip6.ip6_flow = htonl(6 << 28 | 2 << 20); in setup_client() 96 uint32_t rwnd = htonl(106496); in setup_client()
|
/third_party/lwip/src/apps/lwiperf/ |
D | lwiperf.c | 773 settings.flags = htonl(LWIPERF_FLAGS_ANSWER_TEST | LWIPERF_FLAGS_ANSWER_NOW); in lwiperf_start_tcp_client() 777 settings.flags = htonl(LWIPERF_FLAGS_ANSWER_TEST); in lwiperf_start_tcp_client() 783 settings.num_threads = htonl(1); in lwiperf_start_tcp_client() 784 settings.remote_port = htonl(LWIPERF_TCP_PORT_DEFAULT); in lwiperf_start_tcp_client() 786 settings.amount = htonl((u32_t)-1000); in lwiperf_start_tcp_client()
|