Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:ip6

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