Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 4 of 4) sorted by relevance

/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c127 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data; local
130 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK;
136 if (ip6->version != 6) TC_PUNT(INVALID_IP_VERSION);
140 if (ip6->hop_limit <= 1) TC_PUNT(LOW_TTL);
144 if (ip6->nexthdr == IPPROTO_TCP) {
145 struct tcphdr* tcph = (void*)(ip6 + 1);
148 if (data + l2_header_size + sizeof(*ip6) + sizeof(*tcph) > data_end)
156 __be32 src32 = ip6->saddr.s6_addr32[0];
162 __be32 dst32 = ip6->daddr.s6_addr32[0];
168 if (!downstream && (src32 == dst32) && (ip6->saddr.s6_addr32[1] == ip6->daddr.s6_addr32[1]))
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stress_test.cpp65 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6) in RunGetAddrInfoStressTest()
67 << "', ip6='" << mapping.ip6; in RunGetAddrInfoStressTest()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp46 mappingsIt->ip6 = StringPrintf("2001:db8::%x", i % 65534 + 1); in SetupMappings()
169 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
Ddns_responder_client_ndk.h66 std::string ip6; member