Lines Matching refs:ip6

24     "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.52 2007-09-21 07:05:33 hannes Exp $";
44 #include "ip6.h"
51 nextproto6_cksum(const struct ip6_hdr *ip6, const u_int8_t *data,
65 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr));
66 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6->ip6_dst, sizeof (struct in6_addr));
84 register const struct ip6_hdr *ip6;
94 ip6 = (const struct ip6_hdr *)bp;
96 TCHECK(*ip6);
98 (void)ND_PRINT((ndo, "truncated-ip6 %u", length));
105 payload_len = EXTRACT_16BITS(&ip6->ip6_plen);
108 (void)ND_PRINT((ndo, "truncated-ip6 - %u bytes missing!",
112 flow = EXTRACT_32BITS(&ip6->ip6_flow);
129 ip6->ip6_hlim,
130 tok2str(ipproto_values,"unknown",ip6->ip6_nxt),
131 ip6->ip6_nxt,
142 cp = (const u_char *)ip6;
144 nh = ip6->ip6_nxt;
149 if (cp == (const u_char *)(ip6 + 1) &&
152 (void)ND_PRINT((ndo, "%s > %s: ", ip6addr_string(&ip6->ip6_src),
153 ip6addr_string(&ip6->ip6_dst)));
166 advance = frag6_print(cp, (const u_char *)ip6);
185 advance = mobility_print(cp, (const u_char *)ip6);
189 advance = rt6_print(cp, (const u_char *)ip6);
193 sctp_print(cp, (const u_char *)ip6, len);
196 dccp_print(cp, (const u_char *)ip6, len);
199 tcp_print(cp, len, (const u_char *)ip6, fragmented);
202 udp_print(cp, len, (const u_char *)ip6, fragmented);
205 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
214 advance = esp_print(ndo, cp, len, (const u_char *)ip6, &enh, &padlen);
228 pim_print(cp, len, nextproto6_cksum(ip6, cp, len,
245 pgm_print(cp, len, (const u_char *)ip6);
268 (void)ND_PRINT((ndo, "[|ip6]"));