]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/ip-only: remove dead code
authorVictor Julien <vjulien@oisf.net>
Wed, 30 Oct 2024 07:52:08 +0000 (08:52 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 28 Nov 2024 13:59:20 +0000 (14:59 +0100)
src/detect-engine-iponly.c

index 6143f83e5725347251bd76f206717cf52a41e448..2143b333abb00a882363558df8a6873a12fd9aa8 100644 (file)
@@ -1220,7 +1220,6 @@ void IPOnlyPrepare(DetectEngineCtx *de_ctx)
                         SCLogError("Error inserting in the"
                                    " src ipv4 radix tree ip %s netmask %" PRIu8,
                                 tmpstr, src->netmask);
-                        //SCRadixPrintTree((de_ctx->io_ctx).tree_ipv4src);
                         exit(-1);
                     }
                 }
@@ -1493,20 +1492,6 @@ void IPOnlyPrepare(DetectEngineCtx *de_ctx)
         dst = dst->next;
         SCFree(tmpaux);
     }
-
-    /* print all the trees: for debugging it might print too much info
-    SCLogDebug("Radix tree src ipv4:");
-    SCRadixPrintTree((de_ctx->io_ctx).tree_ipv4src);
-    SCLogDebug("Radix tree src ipv6:");
-    SCRadixPrintTree((de_ctx->io_ctx).tree_ipv6src);
-    SCLogDebug("__________________");
-
-    SCLogDebug("Radix tree dst ipv4:");
-    SCRadixPrintTree((de_ctx->io_ctx).tree_ipv4dst);
-    SCLogDebug("Radix tree dst ipv6:");
-    SCRadixPrintTree((de_ctx->io_ctx).tree_ipv6dst);
-    SCLogDebug("__________________");
-    */
 }
 
 /**