From: Victor Julien Date: Wed, 30 Oct 2024 07:52:08 +0000 (+0100) Subject: detect/ip-only: remove dead code X-Git-Tag: suricata-8.0.0-beta1~689 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aeb606a9718d10ab581f502513c51254e1f044e;p=thirdparty%2Fsuricata.git detect/ip-only: remove dead code --- diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index 6143f83e57..2143b333ab 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -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("__________________"); - */ } /**