ui: Print empty rows when clearing table
[netsniff-ng-new.git] / proto_ipv6_no_nxt_hdr.c
blobd2cf072220a91eceff88453e8480ccd736356d48
1 /*
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
7 */
9 #include <stdio.h>
10 #include <stdint.h>
11 #include <netinet/in.h> /* for ntohs() */
13 #include "proto.h"
14 #include "dissector_eth.h"
15 #include "built_in.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");
28 tprintf(" ]\n");
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 = {
37 .key = 0x3B,
38 .print_full = no_next_header,
39 .print_less = no_next_header_less,