/system/core/libnetutils/ |
D | packet.c | 47 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) { in open_raw_socket() 53 bindaddr.sll_protocol = htons(ETH_P_IP); in open_raw_socket() 103 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet() 113 udp.source = htons(sport); in send_packet() 114 udp.dest = htons(dport); in send_packet() 115 udp.len = htons(sizeof(udp) + size); in send_packet() 121 temp = htons(IPPROTO_UDP); in send_packet() 141 destaddr.sll_protocol = htons(ETH_P_IP); in send_packet() 196 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) { in receive_packet()
|
D | dhcpmsg.c | 35 msg->flags = htons(FLAGS_BROADCAST); in init_dhcp_msg()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 38 sockaddr_in6 sin6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in bindAndListen() 79 sockaddr_in server4 = { .sin_family = AF_INET, .sin_port = htons(port) }; in TEST_F() 80 sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F() 113 src, htons(msg->id.idiag_sport), in TEST_F() 114 dst, htons(msg->id.idiag_dport), in TEST_F() 134 seenServer46 |= (msg->id.idiag_sport == htons(port)); in TEST_F() 135 seenServer6 |= (msg->id.idiag_sport == htons(port)); in TEST_F() 139 src, htons(msg->id.idiag_sport), in TEST_F() 140 dst, htons(msg->id.idiag_dport), in TEST_F() 189 sockaddr_in6 server = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F()
|
/system/core/libcutils/ |
D | socket_loopback_server_unix.c | 71 addr.sin6_port = htons(port); in socket_loopback_server6() 84 addr.sin_port = htons(port); in socket_loopback_server()
|
D | socket_inaddr_any_server_unix.c | 40 addr.sin6_port = htons(port); in socket_inaddr_any_server()
|
D | socket_inaddr_any_server_windows.c | 65 addr.sin6_port = htons(port); in socket_inaddr_any_server()
|
/system/netd/server/ |
D | SockDiagTest.cpp | 46 sockaddr_in6 sin6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in bindAndListen() 87 sockaddr_in server4 = { .sin_family = AF_INET, .sin_port = htons(port) }; in TEST_F() 88 sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F() 115 src, htons(msg->id.idiag_sport), in TEST_F() 116 dst, htons(msg->id.idiag_dport), in TEST_F() 134 seenServer46 |= (msg->id.idiag_sport == htons(port)); in TEST_F() 135 seenServer6 |= (msg->id.idiag_sport == htons(port)); in TEST_F() 139 src, htons(msg->id.idiag_sport), in TEST_F() 140 dst, htons(msg->id.idiag_dport), in TEST_F() 465 sockaddr_in6 server = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_P()
|
D | MDnsSdListener.cpp | 166 port = htons(port); in serviceRegister()
|
/system/netd/tests/dns_responder/ |
D | dns_responder.cpp | 260 *reinterpret_cast<uint16_t*>(buffer_cur) = htons(qtype); in write() 262 htons(qclass); in write() 356 intfields.rtype = htons(rtype); in writeIntFields() 357 intfields.rclass = htons(rclass); in writeIntFields() 359 intfields.rdlen = htons(rdlen); in writeIntFields() 457 header.id = htons(id); in write() 463 header.qdcount = htons(questions.size()); in write() 464 header.ancount = htons(answers.size()); in write() 465 header.nscount = htons(authorities.size()); in write() 466 header.arcount = htons(additionals.size()); in write()
|
/system/nfc/src/gki/common/ |
D | gki_inet.h | 23 #define htons ntohs macro
|
/system/nfc/halimpl/bcm2079x/gki/common/ |
D | gki_inet.h | 23 #define htons ntohs macro
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
D | async_manager_unittest.cc | 49 serv_addr.sin_port = htons(kPort); in StartServer() 113 serv_addr.sin_port = htons(kPort); in ConnectClient()
|
/system/bt/btif/src/ |
D | btif_util.cc | 128 uuid1 = htons(uuid1); in string_to_uuid() 129 uuid2 = htons(uuid2); in string_to_uuid() 130 uuid3 = htons(uuid3); in string_to_uuid() 132 uuid5 = htons(uuid5); in string_to_uuid()
|
D | btif_pan.cc | 418 eth_hdr.h_proto = htons(proto); in btpan_tap_send()
|
/system/core/base/include/android-base/ |
D | endian.h | 56 #define htons(x) __builtin_bswap16(x) macro
|
/system/core/base/ |
D | endian_test.cpp | 38 ASSERT_EQ(be16, htons(le16)); in TEST()
|
/system/bt/hci/src/ |
D | btsnoop_net.cc | 114 addr.sin_port = htons(LISTEN_PORT_); in listen_fn_()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 142 sockaddr_in server = { .sin_family = AF_INET, .sin_port = htons(port) }; in ipv4_loopback() 199 sockaddr_in6 server = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in ipv6_loopback()
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
D | test_channel_transport.cc | 46 listen_address.sin_port = htons(port); in SetUp()
|
/system/bt/tools/hci/ |
D | main.c | 184 addr.sin_port = htons(8873); in write_hci_command()
|
/system/core/libutils/ |
D | Unicode.cpp | 28 # undef htons 33 # define htons(x) ntohs(x) macro
|
/system/bt/osi/src/ |
D | socket.cc | 100 addr.sin_port = htons(port); in socket_listen()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 716 addr.sin_port = htons(port); in network_loopback_client() 768 addr.sin_port = htons(port); in _network_server()
|