Lines Matching refs:ip6
86 const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; in ipv6_packet() local
100 if(IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) { in ipv6_packet()
101 log_bad_address("ipv6_packet/multicast %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
111 if (!(is_in_plat_subnet(&ip6->ip6_src) && in ipv6_packet()
112 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
113 !(is_in_plat_subnet(&ip6->ip6_dst) && in ipv6_packet()
114 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
115 ip6->ip6_nxt != IPPROTO_ICMPV6) { in ipv6_packet()
116 log_bad_address("ipv6_packet/wrong source address: %s->%s", &ip6->ip6_src, &ip6->ip6_dst); in ipv6_packet()
123 protocol = ip6->ip6_nxt; in ipv6_packet()
133 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
143 } else if(ip6->ip6_nxt == IPPROTO_TCP) { in ipv6_packet()
146 } else if(ip6->ip6_nxt == IPPROTO_UDP) { in ipv6_packet()
151 logmsg(ANDROID_LOG_ERROR, "ipv6_packet/unknown next header type: %x", ip6->ip6_nxt); in ipv6_packet()