Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Dclatd.c58 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64() local
59 const struct tcphdr* const tcp = (void*)(ip6 + 1); in nat64()
60 const struct udphdr* const udp = (void*)(ip6 + 1); in nat64()
66 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_OK; in nat64()
72 if (ip6->version != 6) return TC_ACT_OK; in nat64()
75 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64()
77 switch (ip6->nexthdr) { in nat64()
94 ip6->saddr.in6_u.u6_addr32[0], in nat64()
95 ip6->saddr.in6_u.u6_addr32[1], in nat64()
96 ip6->saddr.in6_u.u6_addr32[2], in nat64()
[all …]
/system/core/libnetutils/
Dchecksum.c92 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum() argument
98 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
99 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
/system/core/rootdir/etc/
Dhosts2 ::1 ip6-localhost
/system/netd/tests/
Dtun_interface.cpp146 in6_addr ip6; in addAddress() member
150 inet_pton(AF_INET6, addr.c_str(), &ip.ip6); in addAddress()
151 addrlen = sizeof(ip.ip6); in addAddress()
/system/core/libnetutils/include/netutils/
Dchecksum.h29 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol);
/system/netd/resolv/dns_responder/
Ddns_responder_client.cpp44 mappings_it->ip6 = StringPrintf("2001:db8::%x", i%65534 + 1); in SetupMappings()
116 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
Ddns_responder_client.h52 std::string ip6; member
/system/netd/resolv/
Dresolver_test.cpp253 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6) in RunGetAddrInfoStressTest_Binder()
255 << "', ip6='" << mapping.ip6; in RunGetAddrInfoStressTest_Binder()