Lines Matching refs:ip6
151 register const struct ip6_hdr *ip6, in tcp6_cksum() argument
155 return nextproto6_cksum(ndo, ip6, (const uint8_t *)tp, len, len, in tcp6_cksum()
174 register const struct ip6_hdr *ip6; in tcp_print() local
179 ip6 = (const struct ip6_hdr *)bp2; in tcp_print()
181 ip6 = NULL; in tcp_print()
193 if (ip6) { in tcp_print()
194 if (ip6->ip6_nxt == IPPROTO_TCP) { in tcp_print()
196 ip6addr_string(ndo, &ip6->ip6_src), in tcp_print()
198 ip6addr_string(ndo, &ip6->ip6_dst), in tcp_print()
252 if (ip6) { in tcp_print()
259 src = &ip6->ip6_src; in tcp_print()
260 dst = &ip6->ip6_dst; in tcp_print()
264 if (UNALIGNED_MEMCMP(src, dst, sizeof ip6->ip6_dst) > 0) in tcp_print()
268 UNALIGNED_MEMCPY(&tha.src, dst, sizeof ip6->ip6_dst); in tcp_print()
269 UNALIGNED_MEMCPY(&tha.dst, src, sizeof ip6->ip6_src); in tcp_print()
272 UNALIGNED_MEMCPY(&tha.dst, dst, sizeof ip6->ip6_dst); in tcp_print()
273 UNALIGNED_MEMCPY(&tha.src, src, sizeof ip6->ip6_src); in tcp_print()
384 } else if (IP_V(ip) == 6 && ip6->ip6_plen) { in tcp_print()
386 sum = tcp6_cksum(ndo, ip6, tp, length); in tcp_print()
843 const struct ip6_hdr *ip6; in tcp_verify_signature() local
872 ip6 = (const struct ip6_hdr *)ip; in tcp_verify_signature()
873 MD5_Update(&ctx, (const char *)&ip6->ip6_src, sizeof(ip6->ip6_src)); in tcp_verify_signature()
874 MD5_Update(&ctx, (const char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst)); in tcp_verify_signature()
875 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen)); in tcp_verify_signature()