]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
fix for #932. 515/head
authorAnoop Saldanha <anoopsaldanha@gmail.com>
Sat, 31 Aug 2013 16:13:06 +0000 (21:43 +0530)
committerAnoop Saldanha <anoopsaldanha@gmail.com>
Sat, 31 Aug 2013 16:13:07 +0000 (21:43 +0530)
ipv6 tunnel decoder wrongly treats the tunneled ipv6 packets as an ipv4
packet.

src/decode-ipv6.c

index 971b55cf3db7e7eaef64b9aea7478e2fa834c35b..f46a543e1422125fa1f08f6a14aadfc8ccf4e4df 100644 (file)
@@ -93,7 +93,7 @@ static void DecodeIP6inIP6(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uin
             if (tp != NULL) {
                 PKT_SET_SRC(tp, PKT_SRC_DECODER_IPV6);
                 DecodeTunnel(tv, dtv, tp, GET_PKT_DATA(tp),
-                             GET_PKT_LEN(tp), pq, IPPROTO_IP);
+                             GET_PKT_LEN(tp), pq, IPPROTO_IPV6);
                 PacketEnqueue(pq,tp);
                 SCPerfCounterIncr(dtv->counter_ipv6inipv6, tv->sc_perf_pca);
                 return;