Lines Matching refs:ip6
79 const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in ipv6_packet() local
93 if(IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ipv6_packet()
94 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
104 if (!(is_in_plat_subnet(&ip6->ip6_src) && in ipv6_packet()
105 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
106 !(is_in_plat_subnet(&ip6->ip6_dst) && in ipv6_packet()
107 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
108 ip6->ip6_nxt != IPPROTO_ICMPV6) { in ipv6_packet()
109 log_bad_address("ipv6_packet/wrong source address: %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
116 protocol = ip6->ip6_nxt; in ipv6_packet()
122 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
169 logmsg(ANDROID_LOG_ERROR, "ipv6_packet/unknown next header type: %x", ip6->ip6_nxt); in ipv6_packet()