Lines Matching refs:ip6
78 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()
121 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
150 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
168 logmsg(ANDROID_LOG_ERROR, "ipv6_packet/unknown next header type: %x", ip6->ip6_nxt); in ipv6_packet()