Searched refs:HostToNetwork32 (Results 1 – 17 of 17) sorted by relevance
41 EXPECT_EQ(n32, NetworkToHost32(HostToNetwork32(n32))); in TEST()47 EXPECT_EQ(n32, HostToNetwork32(n32)); in TEST()57 EXPECT_NE(n32, HostToNetwork32(n32)); in TEST()62 EXPECT_EQ(GetBE32(&n32), HostToNetwork32(n32)); in TEST()
173 uint32 v = (byte_order_ == ORDER_NETWORK) ? HostToNetwork32(val) : val; in WriteUInt24()182 uint32 v = (byte_order_ == ORDER_NETWORK) ? HostToNetwork32(val) : val; in WriteUInt32()
71 u_.ip4.s_addr = HostToNetwork32(ip_in_host_byte_order); in IPAddress()
326 masked.s_addr = HostToNetwork32(host_order_ip & mask); in TruncateIP()345 v6_as_ints[i] = HostToNetwork32(host_order_inner & inner_mask); in TruncateIP()
159 inline uint32 HostToNetwork32(uint32 n) { in HostToNetwork32() function
525 expected4.sin_addr.s_addr = HostToNetwork32(kIPv4PublicAddr); in TEST()
585 HostToNetwork32(NetworkToHost32(next_ipv4_.s_addr) + 1); in GetNextIP()
24 EXPECT_EQ(n32, NetworkToHost32(HostToNetwork32(n32))); in TEST()30 EXPECT_EQ(n32, HostToNetwork32(n32)); in TEST()40 EXPECT_NE(n32, HostToNetwork32(n32)); in TEST()45 EXPECT_EQ(GetBE32(&n32), HostToNetwork32(n32)); in TEST()
156 uint32 v = (byte_order_ == ORDER_NETWORK) ? HostToNetwork32(val) : val; in WriteUInt24()165 uint32 v = (byte_order_ == ORDER_NETWORK) ? HostToNetwork32(val) : val; in WriteUInt32()
54 u_.ip4.s_addr = HostToNetwork32(ip_in_host_byte_order); in IPAddress()
309 masked.s_addr = HostToNetwork32(host_order_ip & mask); in TruncateIP()328 v6_as_ints[i] = HostToNetwork32(host_order_inner & inner_mask); in TruncateIP()
142 inline uint32 HostToNetwork32(uint32 n) { in HostToNetwork32() function
568 HostToNetwork32(NetworkToHost32(next_ipv4_.s_addr) + 1); in GetNextIP()
508 expected4.sin_addr.s_addr = HostToNetwork32(kIPv4PublicAddr); in TEST()
209 talk_base::HostToNetwork32(rcv.rcv_ppid)); in OnSctpInboundPacket()533 spa.sendv_sndinfo.snd_ppid = talk_base::HostToNetwork32( in SendData()
592 (v4addr.s_addr ^ talk_base::HostToNetwork32(kStunMagicCookie)); in GetXoredIP()606 (ip_as_ints[0] ^ talk_base::HostToNetwork32(kStunMagicCookie)); in GetXoredIP()
154 *static_cast<uint32*>(buf) = talk_base::HostToNetwork32(val); in long_to_bytes()