Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Duuid.c59 uuid->time_mid = ntohs(uuid->time_mid); in generate_uuid()
60 uuid->time_hi_and_version = ntohs(uuid->time_hi_and_version); in generate_uuid()
/system/core/libnetutils/
Dpacket.c188 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet()
190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet()
198 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
223 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/core/libutils/
DUnicode.cpp30 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro
31 # define htons(x) ntohs(x)
35 # define ntohs(x) (x) macro
318 const char16_t c2 = ntohs(*s2N); in strzcmp16_h_n()
327 ? (0 - (int)ntohs(*s2N)) in strzcmp16_h_n()
/system/extras/tests/bionic/libc/common/
Dtest_udp.c92 inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port), buf); in main()
/system/netd/
DMDnsSdListener.cpp249 port = ntohs(port); in MDnsSdListenerResolveCallback()