Home
last modified time | relevance | path

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

/packages/modules/Connectivity/clatd/
Dclatd_test.cpp96 #define IPV6_PSEUDOHEADER(ip6, protocol, tlen) \ argument
97 ip6[8], ip6[9], ip6[10], ip6[11], /* Source address */ \
98 ip6[12], ip6[13], ip6[14], ip6[15], \
99 ip6[16], ip6[17], ip6[18], ip6[19], \
100 ip6[20], ip6[21], ip6[22], ip6[23], \
101 ip6[24], ip6[25], ip6[26], ip6[27], /* Destination address */ \
102 ip6[28], ip6[29], ip6[30], ip6[31], \
103 ip6[32], ip6[33], ip6[34], ip6[35], \
104 ip6[36], ip6[37], ip6[38], ip6[39], \
192 int is_ipv6_fragment(struct ip6_hdr *ip6, size_t len) { in is_ipv6_fragment() argument
[all …]
Dipv6.c78 const struct ip6_hdr *ip6 = (struct ip6_hdr *)packet; in ipv6_packet() local
92 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ipv6_packet()
93 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
103 if (!(is_in_plat_subnet(&ip6->ip6_src) && in ipv6_packet()
104 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
105 !(is_in_plat_subnet(&ip6->ip6_dst) && in ipv6_packet()
106 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
107 ip6->ip6_nxt != IPPROTO_ICMPV6) { in ipv6_packet()
108 log_bad_address("ipv6_packet/wrong source address: %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
115 protocol = ip6->ip6_nxt; in ipv6_packet()
[all …]
Dtranslate.c158 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol, in fill_ip6_header() argument
160 memset(ip6, 0, sizeof(struct ip6_hdr)); in fill_ip6_header()
162 ip6->ip6_vfc = 6 << 4; in fill_ip6_header()
163 ip6->ip6_plen = htons(payload_len); in fill_ip6_header()
164 ip6->ip6_nxt = protocol; in fill_ip6_header()
165 ip6->ip6_hlim = old_header->ttl; in fill_ip6_header()
167 ip6->ip6_src = ipv4_addr_to_ipv6_addr(old_header->saddr); in fill_ip6_header()
168 ip6->ip6_dst = ipv4_addr_to_ipv6_addr(old_header->daddr); in fill_ip6_header()
Ddump.h38 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload,
40 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload,
Ddump.c159 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_udp6() argument
162 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP); in dump_udp6()
218 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload, in dump_tcp6() argument
223 ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPROTO_TCP); in dump_tcp6()
Dtranslate.h49 void fill_ip6_header(struct ip6_hdr *ip6, uint16_t payload_len, uint8_t protocol,
/packages/modules/Connectivity/bpf_progs/
Dclatd.c78 const struct ipv6hdr* const ip6 = is_ethernet ? (void*)(eth + 1) : data; in nat64() local
81 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_PIPE; in nat64()
87 if (ip6->version != 6) return TC_ACT_PIPE; in nat64()
96 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_PIPE; in nat64()
102 ip6->saddr.in6_u.u6_addr32[0], in nat64()
103 ip6->saddr.in6_u.u6_addr32[1], in nat64()
104 ip6->saddr.in6_u.u6_addr32[2], in nat64()
106 .local6 = ip6->daddr, in nat64()
113 __u8 proto = ip6->nexthdr; in nat64()
116 __u16 tot_len = ntohs(ip6->payload_len) + sizeof(struct iphdr); // cannot overflow, see above in nat64()
[all …]
Doffload.c150 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data; local
153 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_PIPE;
159 if (ip6->version != 6) TC_PUNT(INVALID_IPV6_VERSION);
163 if (ip6->hop_limit <= 1) TC_PUNT(LOW_TTL);
167 if (ip6->nexthdr == IPPROTO_TCP) {
168 struct tcphdr* tcph = (void*)(ip6 + 1);
171 if (data + l2_header_size + sizeof(*ip6) + sizeof(*tcph) > data_end)
179 __be32 src32 = ip6->saddr.s6_addr32[0];
185 __be32 dst32 = ip6->daddr.s6_addr32[0];
191 if (!stream.down && (src32 == dst32) && (ip6->saddr.s6_addr32[1] == ip6->daddr.s6_addr32[1]))
[all …]
Doffload@mainline.c150 struct ipv6hdr* ip6 = is_ethernet ? (void*)(eth + 1) : data; local
153 if (data + l2_header_size + sizeof(*ip6) > data_end) return TC_ACT_PIPE;
159 if (ip6->version != 6) TC_PUNT(INVALID_IPV6_VERSION);
163 if (ip6->hop_limit <= 1) TC_PUNT(LOW_TTL);
167 if (ip6->nexthdr == IPPROTO_TCP) {
168 struct tcphdr* tcph = (void*)(ip6 + 1);
171 if (data + l2_header_size + sizeof(*ip6) + sizeof(*tcph) > data_end)
179 __be32 src32 = ip6->saddr.s6_addr32[0];
185 __be32 dst32 = ip6->daddr.s6_addr32[0];
191 if (!stream.down && (src32 == dst32) && (ip6->saddr.s6_addr32[1] == ip6->daddr.s6_addr32[1]))
[all …]
/packages/modules/Connectivity/staticlibs/native/ip_checksum/
Dchecksum.c82 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol) { in ipv6_pseudo_header_checksum() argument
87 current = ip_checksum_add(current, &(ip6->ip6_src), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
88 current = ip_checksum_add(current, &(ip6->ip6_dst), sizeof(struct in6_addr)); in ipv6_pseudo_header_checksum()
Dchecksum.h26 uint32_t ipv6_pseudo_header_checksum(const struct ip6_hdr* ip6, uint32_t len, uint8_t protocol);
/packages/modules/DnsResolver/tests/
Dresolv_stress_test.cpp59 EXPECT_TRUE(result_str == mapping.ip4 || result_str == mapping.ip6) in RunGetAddrInfoStressTest()
61 << "', ip6='" << mapping.ip6; in RunGetAddrInfoStressTest()
/packages/modules/AdServices/adservices/tests/perf/tests/assets/
Dhosts2 ::1 ip6-localhost
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder_client_ndk.cpp67 mappingsIt->ip6 = fmt::format("2001:db8::{:x}", i % 65534 + 1); in SetupMappings()
154 d->addMapping(mapping.entry.c_str(), ns_type::ns_t_aaaa, mapping.ip6.c_str()); in SetupDNSServers()
Ddns_responder_client_ndk.h118 std::string ip6; member
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/TV/libs/m2/
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...
/packages/apps/TV/libs/
Dgoogle-java-format-1.7-all-deps.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...