Lines Matching refs:ip6
51 #include "ip6.h"
150 register const struct ip6_hdr *ip6;
157 ip6 = (struct ip6_hdr *)bp2;
159 ip6 = NULL;
211 if (ip6) {
212 if (ip6->ip6_nxt == IPPROTO_TCP) {
214 ip6addr_string(&ip6->ip6_src),
216 ip6addr_string(&ip6->ip6_dst),
275 if (ip6) {
276 src = &ip6->ip6_src;
277 dst = &ip6->ip6_dst;
281 if (memcmp(src, dst, sizeof ip6->ip6_dst) > 0)
285 memcpy(&tha.src, dst, sizeof ip6->ip6_dst);
286 memcpy(&tha.dst, src, sizeof ip6->ip6_src);
289 memcpy(&tha.dst, dst, sizeof ip6->ip6_dst);
290 memcpy(&tha.src, src, sizeof ip6->ip6_src);
411 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
413 sum = nextproto6_cksum(ip6, (const u_int8_t *)tp, length, IPPROTO_TCP);
742 struct ip6_hdr *ip6;
773 ip6 = (struct ip6_hdr *)ip;
774 MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src));
775 MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst));
776 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen));