Searched refs:ntohs (Results 1 – 6 of 6) sorted by relevance
59 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()
188 } 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()
274 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
30 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro31 # define htons(x) ntohs(x)35 # define ntohs(x) (x) macro318 const char16_t c2 = ntohs(*s2N); in strzcmp16_h_n()327 ? (0 - (int)ntohs(*s2N)) in strzcmp16_h_n()
92 inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port), buf); in main()
249 port = ntohs(port); in MDnsSdListenerResolveCallback()