Lines Matching refs:ip6
146 static int tcp6_cksum(const struct ip6_hdr *ip6, const struct tcphdr *tp, in tcp6_cksum() argument
165 phu.ph.ph_src = ip6->ip6_src; in tcp6_cksum()
166 phu.ph.ph_dst = ip6->ip6_dst; in tcp6_cksum()
203 register const struct ip6_hdr *ip6; in tcp_print() local
210 ip6 = (struct ip6_hdr *)bp2; in tcp_print()
212 ip6 = NULL; in tcp_print()
248 if (ip6) { in tcp_print()
249 if (ip6->ip6_nxt == IPPROTO_TCP) { in tcp_print()
251 ip6addr_string(&ip6->ip6_src), in tcp_print()
253 ip6addr_string(&ip6->ip6_dst), in tcp_print()
326 if (ip6) { in tcp_print()
327 src = &ip6->ip6_src; in tcp_print()
328 dst = &ip6->ip6_dst; in tcp_print()
332 if (memcmp(src, dst, sizeof ip6->ip6_dst) > 0) in tcp_print()
336 memcpy(&tha.src, dst, sizeof ip6->ip6_dst); in tcp_print()
337 memcpy(&tha.dst, src, sizeof ip6->ip6_src); in tcp_print()
340 memcpy(&tha.dst, dst, sizeof ip6->ip6_dst); in tcp_print()
341 memcpy(&tha.src, src, sizeof ip6->ip6_src); in tcp_print()
437 if (IP_V(ip) == 6 && ip6->ip6_plen && vflag && !fragmented) { in tcp_print()
440 sum = tcp6_cksum(ip6, tp, length); in tcp_print()
744 struct ip6_hdr *ip6; in tcp_verify_signature() local
768 ip6 = (struct ip6_hdr *)ip; in tcp_verify_signature()
769 MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src)); in tcp_verify_signature()
770 MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst)); in tcp_verify_signature()
771 len32 = htonl(ntohs(ip6->ip6_plen)); in tcp_verify_signature()