mz: Check device argument by ifindex instead of name prefix
[netsniff-ng.git] / proto_ipv6_in_ipv4.c
blob1f285f39f23d95810774c6abe14d2d08f73cb93f
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 "dissector_eth.h"
15 #include "built_in.h"
17 extern void ipv6(struct pkt_buff *pkt);
18 extern void ipv6_less(struct pkt_buff *pkt);
20 struct protocol ipv6_in_ipv4_ops = {
21 .key = 0x29,
22 .print_full = ipv6,
23 .print_less = ipv6_less,