]> sjero.net Git - strip6in4/blobdiff - encap.c
Look for IPv4 AND IPv6 packets in captures with RAW link layer
[strip6in4] / encap.c
diff --git a/encap.c b/encap.c
index 81ec6d3688f828fa63228b265d7f1a620337fb17..a887698f2d65bc008918ac80f0b25b15e2f00784 100644 (file)
--- a/encap.c
+++ b/encap.c
@@ -40,7 +40,9 @@ int do_encap(int link, const struct const_packet *old)
                case DLT_RAW:
                                /*Raw. Just IP*/
                                if(!ipv4_encap(old)){
+                                       if(!ipv6_encap(old)){
                                                return 0;
+                                       }
                                }
                                break;
                case DLT_LINUX_SLL: