Go to the documentation of this file.
33 static int detect_buffer_id = 0;
59 bool to_client = (
flags & STREAM_TOSERVER) == 0;
60 const uint8_t *data = NULL;
61 uint32_t data_len = 0;
63 if (!SCDnsTxGetAnswerName(txv, to_client, index, &data, &data_len)) {
74 static const char *keyword =
"dns.answer.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)
void DetectDnsAnswerNameRegister(void)
#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)
@ DETECT_AL_DNS_ANSWER_NAME
#define SIG_FLAG_TOSERVER
void InspectionBufferSetupMultiEmpty(InspectionBuffer *buffer)
setup the buffer empty
#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
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)