trafgen: inline constant expression calculator
[netsniff-ng.git] / src / proto_ipv6_in_ipv4.c
blob3efce9842d765ded8700984f6f33e1e9017d53e7
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 in IPv4 encapsulation described in RFC3056
7 */
9 #include <stdio.h>
10 #include <stdint.h>
11 #include <netinet/in.h> /* for ntohs() */
13 #include "proto.h"
14 #include "protos.h"
15 #include "dissector_eth.h"
16 #include "built_in.h"
18 extern void ipv6(struct pkt_buff *pkt);
19 extern void ipv6_less(struct pkt_buff *pkt);
21 struct protocol ipv6_in_ipv4_ops = {
22 .key = 0x29,
23 .print_full = ipv6,
24 .print_less = ipv6_less,
27 EXPORT_SYMBOL(ipv6_in_ipv4_ops);