Searched refs:HostToNet16 (Results 1 – 21 of 21) sorted by relevance
31 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()
51 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()
121 header->ancount = base::HostToNet16(1); in Finish()
46 *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()
25 ip_addr.port = base::HostToNet16(port); in SocketAddressToPpNetAddressWithPort()33 ip_addr.port = base::HostToNet16(port); in SocketAddressToPpNetAddressWithPort()
65 addr->sin_port = base::HostToNet16(port_); in ToSockAddr()77 addr6->sin6_port = base::HostToNet16(port_); in ToSockAddr()
57 addr->sin_port = base::HostToNet16(static_cast<uint16>(i << 2)); in TEST()
56 addr4->sin_port = base::HostToNet16(port); in MakeIPv4Address()67 addr6->sin6_port = base::HostToNet16(port); in MakeIPv6Address()
188 *reinterpret_cast<uint16*>(&*packet->begin()) = base::HostToNet16(type); in CreateStunPacket()190 base::HostToNet16(packet->size() - kStunHeaderSize); in CreateStunPacket()
56 uint16 size16 = base::HostToNet16(size); in IntToSize()263 *reinterpret_cast<uint16*>(&*packet.begin()) = base::HostToNet16(0x8000); in TEST_F()
502 *reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size()); in DoSend()
96 inline uint16 HostToNet16(uint16 x) { in HostToNet16() function
364 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);
62 addr.sin_port = base::HostToNet16(port); in CreateAndBind()
54 client.sin_port = base::HostToNet16(server_port); in SetUp()
318 request.nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
374 uint16 nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
62 : kNwPort(base::HostToNet16(80)), in SOCKS5ClientSocketTest()
162 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse))) in IsPrivetPacket()
101 pcm_data[i] = static_cast<int16>(base::HostToNet16(interleaved[i])); in FeedMoreAudio()
330 *dest = base::HostToNet16(*src); in EncodeFromFilledBuffer()