Merge pull request #59 from electronjoe/graceful-SIGTERM-handling
[netsniff-ng-old.git] / proto_ipv6_in_ipv4.c
blob69eaadc2b9d1586c11a9189c8ee46772f48a04e9
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,