Home
last modified time | relevance | path

Searched refs:HostToNet16 (Results 1 – 21 of 21) sorted by relevance

/external/chromium_org/net/dns/
Ddns_query.cc31 header->id = base::HostToNet16(id); in DnsQuery()
32 header->flags = base::HostToNet16(dns_protocol::kFlagRD); in DnsQuery()
33 header->qdcount = base::HostToNet16(1); in DnsQuery()
80 header->id = base::HostToNet16(id); in DnsQuery()
Ddns_config_service_posix_unittest.cc51 sa.sin_port = base::HostToNet16(NS_DEFAULTPORT + i); in InitializeResState()
67 sa6->sin6_port = base::HostToNet16(NS_DEFAULTPORT - i); in InitializeResState()
140 sa.sin_port = base::HostToNet16(NS_DEFAULTPORT); in TEST()
Ddns_test_util.cc121 header->ancount = base::HostToNet16(1); in Finish()
Ddns_transaction_unittest.cc46 *length = base::HostToNet16(query_->io_buffer()->size()); in DnsSocketData()
66 *length = base::HostToNet16(tcp_length); in AddResponseWithLength()
99 header->flags |= base::HostToNet16(dns_protocol::kFlagResponse | rcode); in AddRcode()
/external/chromium_org/remoting/client/plugin/
Dpepper_util.cc25 ip_addr.port = base::HostToNet16(port); in SocketAddressToPpNetAddressWithPort()
33 ip_addr.port = base::HostToNet16(port); in SocketAddressToPpNetAddressWithPort()
/external/chromium_org/net/base/
Dip_endpoint.cc65 addr->sin_port = base::HostToNet16(port_); in ToSockAddr()
77 addr6->sin6_port = base::HostToNet16(port_); in ToSockAddr()
Daddress_list_unittest.cc57 addr->sin_port = base::HostToNet16(static_cast<uint16>(i << 2)); in TEST()
Dnet_util_unittest.cc56 addr4->sin_port = base::HostToNet16(port); in MakeIPv4Address()
67 addr6->sin6_port = base::HostToNet16(port); in MakeIPv6Address()
/external/chromium_org/content/browser/renderer_host/p2p/
Dsocket_host_test_utils.cc188 *reinterpret_cast<uint16*>(&*packet->begin()) = base::HostToNet16(type); in CreateStunPacket()
190 base::HostToNet16(packet->size() - kStunHeaderSize); in CreateStunPacket()
Dsocket_host_tcp_unittest.cc56 uint16 size16 = base::HostToNet16(size); in IntToSize()
263 *reinterpret_cast<uint16*>(&*packet.begin()) = base::HostToNet16(0x8000); in TEST_F()
Dsocket_host_tcp.cc502 *reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size()); in DoSend()
/external/chromium_org/base/
Dsys_byteorder.h96 inline uint16 HostToNet16(uint16 x) { in HostToNet16() function
/external/chromium_org/content/browser/renderer_host/pepper/
Dpepper_truetype_font_mac.mm364 font_header->num_tables = base::HostToNet16(num_tables);
365 font_header->search_range = base::HostToNet16(search_range);
366 font_header->entry_selector = base::HostToNet16(entry_selector);
367 font_header->range_shift = base::HostToNet16(range_shift);
/external/chromium_org/net/socket/
Dtcp_listen_socket.cc62 addr.sin_port = base::HostToNet16(port); in CreateAndBind()
Dtcp_listen_socket_unittest.cc54 client.sin_port = base::HostToNet16(server_port); in SetUp()
Dsocks_client_socket.cc318 request.nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
Dsocks5_client_socket.cc374 uint16 nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
Dsocks5_client_socket_unittest.cc62 : kNwPort(base::HostToNet16(80)), in SOCKS5ClientSocketTest()
/external/chromium_org/chrome/browser/local_discovery/
Dprivet_traffic_detector.cc162 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse))) in IsPrivetPacket()
/external/chromium_org/media/cast/receiver/
Daudio_decoder_unittest.cc101 pcm_data[i] = static_cast<int16>(base::HostToNet16(interleaved[i])); in FeedMoreAudio()
/external/chromium_org/media/cast/sender/
Daudio_encoder.cc330 *dest = base::HostToNet16(*src); in EncodeFromFilledBuffer()