2 * netsniff-ng - the packet sniffing beast
3 * Copyright 2012 Markus Amend <markus@netsniff-ng.org>, Deutsche Flugsicherung GmbH
4 * Subject to the GPL, version 2.
6 * IPv6 No Next Header described in RFC2460
11 #include <netinet/in.h> /* for ntohs() */
15 #include "dissector_eth.h"
18 static void no_next_header(struct pkt_buff
*pkt
)
21 * The value 59 in the Next Header field of an IPv6 header or any
22 * extension header indicates that there is nothing following that
23 * header. If the Payload Length field of the IPv6 header indicates the
24 * presence of octets past the end of a header whose Next Header field
25 * contains 59, those octets must be ignored, and passed on unchanged if
26 * the packet is forwarded.
28 tprintf(" [ No Next Header");
32 static void no_next_header_less(struct pkt_buff
*pkt
)
34 tprintf(" No Next Header");
37 struct protocol ipv6_no_next_header_ops
= {
39 .print_full
= no_next_header
,
40 .print_less
= no_next_header_less
,