#include "output-packet.h"
#include "output-flow.h"
+#include "output-tx.h"
#include "util-print.h"
static int CustomPacketLogger(ThreadVars *tv, void *thread_data, const Packet *p)
return 0;
}
+#if 0
+static int CustomDnsLogger(ThreadVars *tv, void *thread_data, const Packet *p, Flow *f, void *state,
+ void *tx, uint64_t tx_id)
+{
+ SCLogNotice("We have a DNS transaction");
+ return 0;
+}
+#endif
+
static TmEcode ThreadInit(ThreadVars *tv, const void *initdata, void **data)
{
return TM_ECODE_OK;
CustomPacketLoggerCondition, NULL, ThreadInit, ThreadDeinit);
SCOutputRegisterFlowLogger(
"custom-flow-logger", CustomFlowLogger, NULL, ThreadInit, ThreadDeinit);
+
+ /* Register a custom DNS transaction logger.
+ *
+ * Currently disabled due to https://redmine.openinfosecfoundation.org/issues/7236.
+ */
+#if 0
+ OutputRegisterTxLogger(LOGGER_USER, "custom-dns-logger", ALPROTO_DNS, CustomDnsLogger, NULL, -1,
+ -1, NULL, ThreadInit, ThreadDeinit);
+#endif
}
const SCPlugin PluginRegistration = {