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.cc49 sa.sin_port = base::HostToNet16(NS_DEFAULTPORT + i); in InitializeResState()
65 sa6->sin6_port = base::HostToNet16(NS_DEFAULTPORT - i); in InitializeResState()
138 sa.sin_port = base::HostToNet16(NS_DEFAULTPORT); in TEST()
Ddns_test_util.cc121 header->ancount = base::HostToNet16(1); in Finish()
Ddns_transaction_unittest.cc47 *length = base::HostToNet16(query_->io_buffer()->size()); in DnsSocketData()
67 *length = base::HostToNet16(tcp_length); in AddResponseWithLength()
100 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.cc423 addr4->sin_port = base::HostToNet16(port); in MakeIPv4Address()
434 addr6->sin6_port = base::HostToNet16(port); in MakeIPv6Address()
/external/chromium_org/content/browser/renderer_host/p2p/
Dsocket_host_test_utils.cc187 *reinterpret_cast<uint16*>(&*packet->begin()) = base::HostToNet16(type); in CreateStunPacket()
189 base::HostToNet16(packet->size() - kStunHeaderSize); in CreateStunPacket()
Dsocket_host_tcp_unittest.cc56 uint16 size16 = base::HostToNet16(size); in IntToSize()
Dsocket_host_tcp.cc439 *reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size()); in DoSend()
/external/chromium_org/content/renderer/pepper/
Dpepper_truetype_font_mac.mm357 font_header->num_tables = base::HostToNet16(num_tables);
358 font_header->search_range = base::HostToNet16(search_range);
359 font_header->entry_selector = base::HostToNet16(entry_selector);
360 font_header->range_shift = base::HostToNet16(range_shift);
/external/chromium_org/base/
Dsys_byteorder.h128 inline uint16 HostToNet16(uint16 x) { in HostToNet16() function
/external/chromium_org/net/spdy/
Dspdy_test_utils.cc115 int32 wire_length = base::HostToNet16(static_cast<uint16>(length)); in SetFrameLength()
/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.cc298 request.nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
Dsocks5_client_socket_unittest.cc62 : kNwPort(base::HostToNet16(80)), in SOCKS5ClientSocketTest()
Dsocks5_client_socket.cc354 uint16 nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
/external/chromium_org/chrome/browser/local_discovery/
Dprivet_traffic_detector.cc155 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse))) in IsPrivetPacket()
/external/chromium_org/media/cast/audio_sender/
Daudio_encoder.cc227 *dest = base::HostToNet16(*src); in EncodeFromFilledBuffer()