Lines Matching refs:ip6
51 #include "ip6.h"
166 register const struct ip6_hdr *ip6;
173 ip6 = (struct ip6_hdr *)bp2;
175 ip6 = NULL;
191 if (ip6) {
192 if (ip6->ip6_nxt == IPPROTO_TCP) {
194 ip6addr_string(&ip6->ip6_src),
196 ip6addr_string(&ip6->ip6_dst),
251 if (ip6) {
258 src = &ip6->ip6_src;
259 dst = &ip6->ip6_dst;
263 if (UNALIGNED_MEMCMP(src, dst, sizeof ip6->ip6_dst) > 0)
267 UNALIGNED_MEMCPY(&tha.src, dst, sizeof ip6->ip6_dst);
268 UNALIGNED_MEMCPY(&tha.dst, src, sizeof ip6->ip6_src);
271 UNALIGNED_MEMCPY(&tha.dst, dst, sizeof ip6->ip6_dst);
272 UNALIGNED_MEMCPY(&tha.src, src, sizeof ip6->ip6_src);
389 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
391 sum = nextproto6_cksum(ip6, (const u_int8_t *)tp, length, IPPROTO_TCP);
797 struct ip6_hdr *ip6;
828 ip6 = (struct ip6_hdr *)ip;
829 MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src));
830 MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst));
831 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen));