From: Anoop Saldanha Date: Sat, 31 Aug 2013 16:13:06 +0000 (+0530) Subject: fix for #932. X-Git-Tag: suricata-2.0beta2~415 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e68d44b051e44ce5f2619bd5a89fa1de9da47574;p=thirdparty%2Fsuricata.git fix for #932. ipv6 tunnel decoder wrongly treats the tunneled ipv6 packets as an ipv4 packet. --- diff --git a/src/decode-ipv6.c b/src/decode-ipv6.c index 971b55cf3d..f46a543e14 100644 --- a/src/decode-ipv6.c +++ b/src/decode-ipv6.c @@ -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;