]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ipv6: make sure we pass the defragged packet from the ipv6 layer to the decoder.
authorVictor Julien <victor@inliniac.net>
Tue, 3 Apr 2012 18:18:08 +0000 (20:18 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 3 Apr 2012 18:18:08 +0000 (20:18 +0200)
src/decode-ipv6.c

index b147dd4a9acf4e784139aeeac0c4966c9eea402c..a29540fa8a522b2bd1a5ecd0f216678dd224e0b6 100644 (file)
@@ -488,7 +488,7 @@ void DecodeIPV6(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt,
     if (IPV6_EXTHDR_ISSET_FH(p)) {
         Packet *rp = Defrag(tv, dtv, NULL, p);
         if (rp != NULL) {
-            DecodeIPV6(tv, dtv, rp, GET_PKT_DATA(rp), GET_PKT_LEN(rp), pq);
+            DecodeIPV6(tv, dtv, rp, (uint8_t *)rp->ip6h, IPV6_GET_PLEN(rp) + IPV6_HEADER_LEN, pq);
             PacketEnqueue(pq, rp);
 
             /* Not really a tunnel packet, but we're piggybacking that