Skip to content

Commit

Permalink
detect/ip-only: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed Nov 28, 2024
1 parent 3eb2f6a commit 4aeb606
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/detect-engine-iponly.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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("__________________");
*/
}

/**
Expand Down

0 comments on commit 4aeb606

Please sign in to comment.