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()
49 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()
121 header->ancount = base::HostToNet16(1); in Finish()
47 *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()
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()
423 addr4->sin_port = base::HostToNet16(port); in MakeIPv4Address()434 addr6->sin6_port = base::HostToNet16(port); in MakeIPv6Address()
187 *reinterpret_cast<uint16*>(&*packet->begin()) = base::HostToNet16(type); in CreateStunPacket()189 base::HostToNet16(packet->size() - kStunHeaderSize); in CreateStunPacket()
56 uint16 size16 = base::HostToNet16(size); in IntToSize()
439 *reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size()); in DoSend()
357 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);
128 inline uint16 HostToNet16(uint16 x) { in HostToNet16() function
115 int32 wire_length = base::HostToNet16(static_cast<uint16>(length)); in SetFrameLength()
62 addr.sin_port = base::HostToNet16(port); in CreateAndBind()
54 client.sin_port = base::HostToNet16(server_port); in SetUp()
298 request.nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
62 : kNwPort(base::HostToNet16(80)), in SOCKS5ClientSocketTest()
354 uint16 nw_port = base::HostToNet16(host_request_info_.port()); in BuildHandshakeWriteBuffer()
155 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse))) in IsPrivetPacket()
227 *dest = base::HostToNet16(*src); in EncodeFromFilledBuffer()