Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 23 of 23) sorted by relevance

/system/connectivity/dhcp_client/
Ddhcp_message_unittest.cc186 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeTransactionID)), in TEST_F()
188 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeServerIdentifier)), in TEST_F()
190 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeLeaseTime)), in TEST_F()
192 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeYourIPAddress)), in TEST_F()
205 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeTransactionID)), in TEST_F()
207 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeServerIdentifier)), in TEST_F()
209 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeLeaseTime)), in TEST_F()
211 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeYourIPAddress)), in TEST_F()
224 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeTransactionID)), in TEST_F()
226 EXPECT_EQ(ntohl(*reinterpret_cast<const uint32_t*>(kFakeServerIdentifier)), in TEST_F()
Ddhcp_options_parser.cc65 *value_uint32 = ntohl(*reinterpret_cast<const uint32_t*>(buffer)); in GetOption()
117 content = ntohl(content); in GetOption()
136 first = ntohl(first); in GetOption()
139 second = ntohl(second); in GetOption()
Ddhcp_options_parser_unittest.cc103 target_value = ntohl(target_value); in TEST_F()
154 target_value.push_back(ntohl(element)); in TEST_F()
172 std::pair<uint32_t, uint32_t>(ntohl(uint32_vector[2 * i]), in TEST_F()
173 ntohl(uint32_vector[2 * i + 1]))); in TEST_F()
Ddhcp_message.cc125 message->transaction_id_ = ntohl(raw_message->xid); in InitFromBuffer()
128 message->client_ip_address_ = ntohl(raw_message->ciaddr); in InitFromBuffer()
129 message->your_ip_address_ = ntohl(raw_message->yiaddr); in InitFromBuffer()
130 message->next_server_ip_address_ = ntohl(raw_message->siaddr); in InitFromBuffer()
131 message->agent_ip_address_ = ntohl(raw_message->giaddr); in InitFromBuffer()
132 message->cookie_ = ntohl(raw_message->cookie); in InitFromBuffer()
/system/connectivity/shill/shims/
Dnetfilter_queue_processor_unittest.cc102 const uint32_t kMulticastAddress = ntohl(inet_addr("224.0.0.1")); in TEST_F()
103 const uint32_t kUnicastAddress = ntohl(inet_addr("10.0.0.1")); in TEST_F()
188 const uint32_t kMulticastAddress = ntohl(inet_addr("224.0.0.1")); in TEST_F()
189 const uint32_t kLocalAddress = ntohl(inet_addr("10.0.0.1")); in TEST_F()
190 const uint32_t kNeighborAddress = ntohl(inet_addr("10.0.0.2")); in TEST_F()
203 const uint32_t kNetmask = ntohl(inet_addr("255.255.255.0")); in TEST_F()
237 const uint32_t kRemoteAddress = ntohl(inet_addr("10.0.1.1")); in TEST_F()
263 const uint32_t kMulticastAddress1 = ntohl(inet_addr("224.0.0.1")); in TEST_F()
264 const uint32_t kMulticastAddress2 = ntohl(inet_addr("224.0.0.2")); in TEST_F()
265 const uint32_t kLocalAddress = ntohl(inet_addr("10.0.0.1")); in TEST_F()
[all …]
Dnetfilter_queue_processor.cc79 packet_id_ = ntohl(packet_header->packet_id); in ParseNetfilterData()
116 source_ip_ = ntohl(ip.saddr); in ParsePayloadUDPData()
117 destination_ip_ = ntohl(ip.daddr); in ParsePayloadUDPData()
309 return ntohl(netmask_addr->sin_addr.s_addr); in GetNetmaskForDevice()
/system/connectivity/shill/net/
Dbyte_string.cc70 return CreateFromCPUUInt32(ntohl(val)); in CreateFromNetUInt32()
95 *val = ntohl(*val); in ConvertToNetUInt32()
116 return ConvertByteOrderAsUIntArray(ntohl); in ConvertFromNetToCPUUInt32Array()
Dip_address.cc128 address_val = ntohl(address_val); in GetMinPrefixLength()
Drtnl_message.cc254 uint32_t lifetime = ntohl(nd_user_option_header->lifetime); in DecodeNdUserOption()
/system/core/lmkd/
Dlmkd.c290 lowmem_minfree[i] = ntohl(*params++); in cmd_target()
291 lowmem_adj[i] = ntohl(*params++); in cmd_target()
359 cmd = ntohl(ibuf[0]); in ctrl_command_handler()
371 cmd_procprio(ntohl(ibuf[1]), ntohl(ibuf[2]), ntohl(ibuf[3])); in ctrl_command_handler()
376 cmd_procremove(ntohl(ibuf[1])); in ctrl_command_handler()
/system/core/libnetutils/
Ddhcpclient.c216 info->lease = ntohl(info->lease); in decode_dhcp_msg()
274 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
364 if (verbose) ALOGD("Wrong Xid 0x%x != 0x%x\n", ntohl(reply->xid), in is_valid_reply()
365 ntohl(msg->xid)); in is_valid_reply()
Difc_utils.c87 uint32_t m = (uint32_t)ntohl(mask); in ipv4NetmaskToPrefixLength()
/system/core/libcutils/
Drecord_stream.c84 len = ntohl(*((uint32_t *)p_begin)); in getEndOfRecord()
/system/bt/btif/src/
Dbtif_util.c159 ntohl(uuid0), ntohs(uuid1), in uuid_to_string_legacy()
161 ntohl(uuid4), ntohs(uuid5)); in uuid_to_string_legacy()
/system/extras/tests/net_test/
Dcsocket.py62 return SockaddrIn6((family, socket.ntohs(port), socket.ntohl(flowinfo),
/system/core/libutils/
DUnicode.cpp27 # define ntohl(x) ( ((x) << 24) | (((x) >> 24) & 255) | (((x) << 8) & 0xff0000) | (((x) >> 8) & … macro
28 # define htonl(x) ntohl(x)
/system/security/keystore/
Dblob.cpp204 mBlob.length = ntohl(mBlob.length); in readBlob()
/system/core/libsysutils/src/
DNetlinkEvent.cpp279 uid = ntohl(nla_get_u32(uid_attr)); in parseNfPacketMessage()
460 const uint32_t lifetime = ntohl(rndss_opt->nd_opt_rdnss_lifetime); in parseNdUserOptMessage()
/system/core/gatekeeperd/tests/
Dgatekeeper_test.cpp87 ASSERT_EQ((uint32_t) HW_AUTH_PASSWORD, ntohl(auth_token->authenticator_type)); in TEST()
/system/bt/bta/sdp/
Dbta_sdp_act.c88 su.uu.uuid32 = ntohl(u32); in shorten_sdp_uuid()
/system/extras/ext4_utils/
Dext4_utils.c85 uuid->time_low = ntohl(uuid->time_low); in generate_sha1_uuid()
/system/netd/tests/
Ddns_responder.cpp344 ttl = ntohl(intfields.ttl); in readIntFields()
/system/bt/bta/jv/
Dbta_jv_act.c838 su.uu.uuid32 = ntohl(u32); in shorten_sdp_uuid()