Go to the documentation of this file.
33 static int detect_buffer_id = 0;
49 int list_id, uint32_t index)
59 bool to_client = (
flags & STREAM_TOSERVER) == 0;
60 const uint8_t *data = NULL;
61 uint32_t data_len = 0;
63 if (!SCDnsTxGetQueryName(txv, to_client, index, &data, &data_len)) {
74 static const char *keyword =
"dns.query.name";
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
#define SIGMATCH_INFO_STICKY_BUFFER
SigTableElmt * sigmatch_table
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
main detection engine ctx
void DetectBufferTypeSupportsMultiInstance(const char *name)
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int DetectBufferTypeGetByName(const char *name)
void DetectAppLayerMultiRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectionMultiBufferGetDataPtr GetData, int priority, int tx_min_progress)
#define SIG_FLAG_TOSERVER
void InspectionBufferSetupMultiEmpty(InspectionBuffer *buffer)
setup the buffer empty
void DetectDnsQueryNameRegister(void)
#define DETECT_CI_FLAGS_SINGLE
void InspectionBufferSetupMulti(InspectionBuffer *buffer, const DetectEngineTransforms *transforms, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
InspectionBuffer * InspectionBufferMultipleForListGet(DetectEngineThreadCtx *det_ctx, const int list_id, const uint32_t local_id)
for a InspectionBufferMultipleForList get a InspectionBuffer
@ DETECT_AL_DNS_QUERY_NAME
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)