Lines Matching refs:iph2
960 struct ip *iph2 = NULL; in nat464_translate_proto() local
961 iph2 = (struct ip*) pbuf_contig_segment(pbuf, ip2off, in nat464_translate_proto()
962 sizeof(*iph2)); in nat464_translate_proto()
963 if (iph2 == NULL) { in nat464_translate_proto()
967 hlen2 = (uint16_t)(ip2off + (iph2->ip_hl << 2)); in nat464_translate_proto()
968 tot_len2 = ntohs(iph2->ip_len); in nat464_translate_proto()
974 if (!IN_ARE_ADDR_EQUAL(&odst->natv4addr, &iph2->ip_src)) { in nat464_translate_proto()
979 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
993 iph2 = NULL; in nat464_translate_proto()
1036 struct ip6_hdr *iph2 = NULL; in nat464_translate_proto() local
1037 iph2 = (struct ip6_hdr*) pbuf_contig_segment(pbuf, ip2off, in nat464_translate_proto()
1038 sizeof(*iph2)); in nat464_translate_proto()
1039 if (iph2 == NULL) { in nat464_translate_proto()
1045 tot_len2 = ntohs(iph2->ip6_plen) + sizeof(struct ip6_hdr); in nat464_translate_proto()
1048 &hlen2, iph2->ip6_nxt, iph2->ip6_hlim, tot_len2, in nat464_translate_proto()
1063 iph2 = NULL; in nat464_translate_proto()