/system/core/libnetutils/ |
D | packet.c | 189 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet() 191 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet() 199 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet() 221 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet() 224 nread = ntohs(packet.ip.tot_len); in receive_packet()
|
D | dhcpclient.c | 274 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
|
/system/connectivity/shill/ |
D | arp_packet.cc | 77 const uint16_t hardware_type = ntohs(header.ar_hrd); in Parse() 83 const uint16_t protocol = ntohs(header.ar_pro); in Parse() 106 const uint16_t operation = ntohs(header.ar_op); in Parse()
|
D | connection_health_checker.cc | 404 uint16_t local_port = ntohs(addr_in->sin_port); in GetSocketInfo()
|
D | http_proxy.cc | 148 proxy_port_ = ntohs(addr.sin_port); in Start()
|
/system/bt/btif/src/ |
D | btif_util.c | 111 uuid16_bo = ntohs(uuid16); in uuid16_to_uuid128() 159 ntohl(uuid0), ntohs(uuid1), in uuid_to_string_legacy() 160 ntohs(uuid2), ntohs(uuid3), in uuid_to_string_legacy() 161 ntohl(uuid4), ntohs(uuid5)); in uuid_to_string_legacy()
|
D | btif_pan.c | 596 uint16_t proto = ntohs(hdr->h_proto); in should_forward() 613 …int result = PAN_WriteBuf(handle, eth_hdr->h_dest, eth_hdr->h_src, ntohs(eth_hdr->h_proto), hdr, 0… in forward_bnep()
|
/system/core/libcutils/ |
D | sockets.cpp | 44 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
|
/system/netd/tests/ |
D | dns_responder.cpp | 248 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read() 249 qclass = ntohs(*reinterpret_cast<const uint16_t*>(cur + sizeof(uint16_t))); in read() 342 rtype = ntohs(intfields.rtype); in readIntFields() 343 rclass = ntohs(intfields.rclass); in readIntFields() 345 *rdlen = ntohs(intfields.rdlen); in readIntFields() 499 id = ntohs(header.id); in readHeader() 510 *qdcount = ntohs(header.qdcount); in readHeader() 511 *ancount = ntohs(header.ancount); in readHeader() 512 *nscount = ntohs(header.nscount); in readHeader() 513 *arcount = ntohs(header.arcount); in readHeader()
|
/system/extras/tests/net_test/ |
D | csocket.py | 62 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo), 68 return SockaddrIn((family, socket.ntohs(port), addr))
|
/system/connectivity/dhcp_client/ |
D | dhcp_options_parser.cc | 53 *value_uint16 = ntohs(*reinterpret_cast<const uint16_t*>(buffer)); in GetOption() 98 content = ntohs(content); in GetOption()
|
D | dhcp_options_parser_unittest.cc | 91 target_value = ntohs(target_value); in TEST_F() 135 target_value.push_back(ntohs(element)); in TEST_F()
|
D | dhcp_message.cc | 126 message->seconds_ = ntohs(raw_message->secs); in InitFromBuffer() 127 message->flags_ = ntohs(raw_message->flags); in InitFromBuffer()
|
/system/core/libutils/ |
D | Unicode.cpp | 29 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro 30 # define htons(x) ntohs(x) 336 const char16_t c2 = ntohs(*s2N); in strzcmp16_h_n() 345 ? (0 - (int)ntohs(*s2N)) in strzcmp16_h_n()
|
/system/connectivity/shill/shims/ |
D | netfilter_queue_processor.cc | 118 source_port_ = ntohs(udp.source); in ParsePayloadUDPData() 119 destination_port_ = ntohs(udp.dest); in ParsePayloadUDPData()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
|
/system/netd/server/ |
D | SockDiagTest.cpp | 96 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
|
D | MDnsSdListener.cpp | 253 port = ntohs(port); in MDnsSdListenerResolveCallback()
|
/system/extras/ext4_utils/ |
D | ext4_utils.c | 86 uuid->time_mid = ntohs(uuid->time_mid); in generate_sha1_uuid() 87 uuid->time_hi_and_version = ntohs(uuid->time_hi_and_version); in generate_sha1_uuid()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 873 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in network_loopback_client() 940 ntohs(addr.sin_port), in _network_server() 1180 D("adb_socketpair: bound on port %d", ntohs(addr->sin_port)); in adb_socketpair() 1181 client = network_loopback_client(ntohs(addr->sin_port), SOCK_STREAM, &error); in adb_socketpair()
|
/system/connectivity/shill/vpn/ |
D | openvpn_management_server.cc | 117 IntToString(ntohs(addr.sin_port)), options); in Start()
|
/system/bt/stack/sdp/ |
D | sdp_utils.c | 1041 uuid16_bo = ntohs(uuid16); in sdpu_uuid16_to_uuid128()
|
/system/update_engine/ |
D | test_http_server.cc | 621 in_port_t port = ntohs(bound_addr.sin_port); in main()
|
/system/bt/bta/sdp/ |
D | bta_sdp_act.c | 83 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()
|
/system/bt/bta/jv/ |
D | bta_jv_act.c | 830 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()
|