Home
last modified time | relevance | path

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

/system/core/libnetutils/
Dpacket.c189 } 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()
Ddhcpclient.c274 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
/system/connectivity/shill/
Darp_packet.cc77 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()
Dconnection_health_checker.cc404 uint16_t local_port = ntohs(addr_in->sin_port); in GetSocketInfo()
Dhttp_proxy.cc148 proxy_port_ = ntohs(addr.sin_port); in Start()
/system/bt/btif/src/
Dbtif_util.c111 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()
Dbtif_pan.c596 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/
Dsockets.cpp44 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
/system/netd/tests/
Ddns_responder.cpp248 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/
Dcsocket.py62 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo),
68 return SockaddrIn((family, socket.ntohs(port), addr))
/system/connectivity/dhcp_client/
Ddhcp_options_parser.cc53 *value_uint16 = ntohs(*reinterpret_cast<const uint16_t*>(buffer)); in GetOption()
98 content = ntohs(content); in GetOption()
Ddhcp_options_parser_unittest.cc91 target_value = ntohs(target_value); in TEST_F()
135 target_value.push_back(ntohs(element)); in TEST_F()
Ddhcp_message.cc126 message->seconds_ = ntohs(raw_message->secs); in InitFromBuffer()
127 message->flags_ = ntohs(raw_message->flags); in InitFromBuffer()
/system/core/libutils/
DUnicode.cpp29 # 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/
Dnetfilter_queue_processor.cc118 source_port_ = ntohs(udp.source); in ParsePayloadUDPData()
119 destination_port_ = ntohs(udp.dest); in ParsePayloadUDPData()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
/system/netd/server/
DSockDiagTest.cpp96 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
DMDnsSdListener.cpp253 port = ntohs(port); in MDnsSdListenerResolveCallback()
/system/extras/ext4_utils/
Dext4_utils.c86 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/
Dsysdeps_win32.cpp873 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/
Dopenvpn_management_server.cc117 IntToString(ntohs(addr.sin_port)), options); in Start()
/system/bt/stack/sdp/
Dsdp_utils.c1041 uuid16_bo = ntohs(uuid16); in sdpu_uuid16_to_uuid128()
/system/update_engine/
Dtest_http_server.cc621 in_port_t port = ntohs(bound_addr.sin_port); in main()
/system/bt/bta/sdp/
Dbta_sdp_act.c83 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()
/system/bt/bta/jv/
Dbta_jv_act.c830 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()