Lines Matching defs:ip6
51 #include "ip6.h"
163 register const struct ip6_hdr *ip6;
170 ip6 = (struct ip6_hdr *)bp2;
172 ip6 = NULL;
224 if (ip6) {
225 if (ip6->ip6_nxt == IPPROTO_TCP) {
227 ip6addr_string(&ip6->ip6_src),
229 ip6addr_string(&ip6->ip6_dst),
288 if (ip6) {
289 src = &ip6->ip6_src;
290 dst = &ip6->ip6_dst;
294 if (memcmp(src, dst, sizeof ip6->ip6_dst) > 0)
298 memcpy(&tha.src, dst, sizeof ip6->ip6_dst);
299 memcpy(&tha.dst, src, sizeof ip6->ip6_src);
302 memcpy(&tha.dst, dst, sizeof ip6->ip6_dst);
303 memcpy(&tha.src, src, sizeof ip6->ip6_src);
424 else if (IP_V(ip) == 6 && ip6->ip6_plen) {
426 sum = nextproto6_cksum(ip6, (const u_int8_t *)tp, length, IPPROTO_TCP);
1063 struct ip6_hdr *ip6;
1094 ip6 = (struct ip6_hdr *)ip;
1095 CC_MD5_Update(&ctx, (char *)&ip6->ip6_src, sizeof(ip6->ip6_src));
1096 CC_MD5_Update(&ctx, (char *)&ip6->ip6_dst, sizeof(ip6->ip6_dst));
1097 len32 = htonl(EXTRACT_16BITS(&ip6->ip6_plen));