dissector: simplified code in dissector, removed duplicate code
[netsniff-ng.git] / src / proto_ipv6_in_ipv4.h
blobcd7c0a71a63d29ddf63efce570a4adc8f8c2207a
1 /*
2 * IPv6 in IPv4 encapsulation described in RFC3056
3 * programmed by Markus Amend 2012 as a contribution to
4 * netsniff-ng - the packet sniffing beast
5 * Copyright 2012 Markus Amend.
6 * Subject to the GPL, version 2.
7 */
9 #ifndef IP6_IN_IP4_H
10 #define IP6_IN_IP4_H
12 #include <stdio.h>
13 #include <stdint.h>
14 #include <netinet/in.h> /* for ntohs() */
16 #include "proto_struct.h"
17 #include "dissector_eth.h"
19 struct protocol ipv6_in_ipv4_ops = {
20 .key = 0x29,
21 .print_full = ipv6,
22 .print_less = ipv6_less,
23 .print_pay_ascii = empty,
24 .print_pay_hex = empty,
25 .print_pay_none = ipv6,
26 .print_all_hex = hex,
27 .proto_next = ipv6_next,
30 #endif /* IP6_IN_IP4_H */