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() */
14 #include "dissector_eth.h"
17 static void no_next_header(struct pkt_buff
*pkt __maybe_unused
)
20 * The value 59 in the Next Header field of an IPv6 header or any
21 * extension header indicates that there is nothing following that
22 * header. If the Payload Length field of the IPv6 header indicates the
23 * presence of octets past the end of a header whose Next Header field
24 * contains 59, those octets must be ignored, and passed on unchanged if
25 * the packet is forwarded.
27 tprintf(" [ No Next Header");
31 static void no_next_header_less(struct pkt_buff
*pkt __maybe_unused
)
33 tprintf(" No Next Header");
36 struct protocol ipv6_no_next_header_ops
= {
38 .print_full
= no_next_header
,
39 .print_less
= no_next_header_less
,