Lines Matching refs:iph2
948 struct ip *iph2 = NULL; in nat464_translate_proto() local
949 iph2 = (struct ip*) pbuf_contig_segment(pbuf, ip2off, in nat464_translate_proto()
950 sizeof(*iph2)); in nat464_translate_proto()
951 if (iph2 == NULL) { in nat464_translate_proto()
955 hlen2 = (uint16_t)(ip2off + (iph2->ip_hl << 2)); in nat464_translate_proto()
956 tot_len2 = ntohs(iph2->ip_len); in nat464_translate_proto()
959 VERIFY(IN_ARE_ADDR_EQUAL(&odst->natv4addr, &iph2->ip_src)); in nat464_translate_proto()
961 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
975 iph2 = NULL; in nat464_translate_proto()
1018 struct ip6_hdr *iph2 = NULL; in nat464_translate_proto() local
1019 iph2 = (struct ip6_hdr*) pbuf_contig_segment(pbuf, ip2off, in nat464_translate_proto()
1020 sizeof(*iph2)); in nat464_translate_proto()
1021 if (iph2 == NULL) { in nat464_translate_proto()
1027 tot_len2 = ntohs(iph2->ip6_plen) + sizeof(struct ip6_hdr); in nat464_translate_proto()
1030 &hlen2, iph2->ip6_nxt, iph2->ip6_hlim, tot_len2, in nat464_translate_proto()
1045 iph2 = NULL; in nat464_translate_proto()