Lines Matching refs:ip6
168 register const struct ip6_hdr *ip6; local
175 ip6 = (struct ip6_hdr *)bp2;
177 ip6 = NULL;
193 if (ip6) {
194 if (ip6->ip6_nxt == IPPROTO_TCP) {
196 ip6addr_string(ndo, &ip6->ip6_src),
198 ip6addr_string(ndo, &ip6->ip6_dst),
253 if (ip6) {
260 src = &ip6->ip6_src;
261 dst = &ip6->ip6_dst;
265 if (UNALIGNED_MEMCMP(src, dst, sizeof ip6->ip6_dst) > 0)
269 UNALIGNED_MEMCPY(&tha.src, dst, sizeof ip6->ip6_dst);
270 UNALIGNED_MEMCPY(&tha.dst, src, sizeof ip6->ip6_src);
273 UNALIGNED_MEMCPY(&tha.dst, dst, sizeof ip6->ip6_dst);
274 UNALIGNED_MEMCPY(&tha.src, src, sizeof ip6->ip6_src);
391 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
393 sum = nextproto6_cksum(ip6, (const uint8_t *)tp,
813 struct ip6_hdr *ip6; local
844 ip6 = (struct ip6_hdr *)ip;
845 MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src));
846 MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst));
847 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen));