Lines Matching refs:ip6
36 #include "ip6.h"
48 const struct ip6_hdr *ip6)
59 cp = (const u_char *)ip6;
61 nh = ip6->ip6_nxt;
62 dst_addr = &ip6->ip6_dst;
164 const struct ip6_hdr *ip6, const uint8_t *data,
178 UNALIGNED_MEMCPY(&ph.ph_src, &ip6->ip6_src, sizeof (struct in6_addr));
179 switch (ip6->ip6_nxt) {
192 ip6_finddst(ndo, &ph.ph_dst, ip6);
196 UNALIGNED_MEMCPY(&ph.ph_dst, &ip6->ip6_dst, sizeof (struct in6_addr));
211 * print an IP6 datagram.
216 register const struct ip6_hdr *ip6;
226 ip6 = (const struct ip6_hdr *)bp;
228 ND_TCHECK(*ip6);
230 ND_PRINT((ndo, "truncated-ip6 %u", length));
235 ND_PRINT((ndo, "IP6 "));
237 if (IP6_VERSION(ip6) != 6) {
238 ND_PRINT((ndo,"version error: %u != 6", IP6_VERSION(ip6)));
242 payload_len = EXTRACT_16BITS(&ip6->ip6_plen);
245 ND_PRINT((ndo, "truncated-ip6 - %u bytes missing!",
249 flow = EXTRACT_32BITS(&ip6->ip6_flow);
266 ip6->ip6_hlim,
267 tok2str(ipproto_values,"unknown",ip6->ip6_nxt),
268 ip6->ip6_nxt,
279 cp = (const u_char *)ip6;
281 nh = ip6->ip6_nxt;
286 if (cp == (const u_char *)(ip6 + 1) &&
289 ND_PRINT((ndo, "%s > %s: ", ip6addr_string(ndo, &ip6->ip6_src),
290 ip6addr_string(ndo, &ip6->ip6_dst)));
307 advance = frag6_print(ndo, cp, (const u_char *)ip6);
324 advance = mobility_print(ndo, cp, (const u_char *)ip6);
328 advance = rt6_print(ndo, cp, (const u_char *)ip6);
332 sctp_print(ndo, cp, (const u_char *)ip6, len);
335 dccp_print(ndo, cp, (const u_char *)ip6, len);
338 tcp_print(ndo, cp, len, (const u_char *)ip6, fragmented);
341 udp_print(ndo, cp, len, (const u_char *)ip6, fragmented);
344 icmp6_print(ndo, cp, len, (const u_char *)ip6, fragmented);
353 advance = esp_print(ndo, cp, len, (const u_char *)ip6, &enh, &padlen);
372 pim_print(ndo, cp, len, (const u_char *)ip6);
388 pgm_print(ndo, cp, len, (const u_char *)ip6);
411 ND_PRINT((ndo, "[|ip6]"));