suricata
rust-context.c File Reference
#include "suricata-common.h"
#include "rust-context.h"
#include "app-layer-parser.h"
#include "app-layer-events.h"
#include "app-layer-register.h"
#include "app-layer-htp-range.h"
#include "app-layer-htp-file.h"
#include "util-var.h"
Include dependency graph for rust-context.c:

Go to the source code of this file.

Functions

const SuricataContextSCGetContext (void)
 

Variables

const SuricataContext suricata_context
 

Function Documentation

◆ SCGetContext()

const SuricataContext * SCGetContext ( void  )

Definition at line 46 of file rust-context.c.

References suricata_context.

Variable Documentation

◆ suricata_context

const SuricataContext suricata_context
Initial value:
= {
}
void AppLayerDecoderEventsSetEventRaw(AppLayerDecoderEvents **sevents, uint8_t event)
Set an app layer decoder event.
void AppLayerDecoderEventsFreeEvents(AppLayerDecoderEvents **events)
bool HTPFileCloseHandleRange(const StreamingBufferConfig *sbcfg, FileContainer *files, const uint16_t flags, HttpRangeContainerBlock *c, const uint8_t *data, uint32_t data_len)
close range, add reassembled file if possible
void HttpRangeFreeBlock(HttpRangeContainerBlock *b)
void AppLayerParserTriggerRawStreamInspection(Flow *f, int direction)
void DetectEngineStateFree(DetectEngineState *state)
Frees a DetectEngineState object.
SCError SCLogMessage(const SCLogLevel log_level, const char *file, const unsigned int line, const char *function, const char *module, const char *message)
Adds the global log_format to the outgoing buffer.
Definition util-debug.c:652
int FileAppendDataById(FileContainer *ffc, const StreamingBufferConfig *sbcfg, uint32_t track_id, const uint8_t *data, uint32_t data_len)
Store/handle a chunk of file data in the File structure The file with 'track_id' in the FileContainer...
Definition util-file.c:791
void FileContainerRecycle(FileContainer *ffc, const StreamingBufferConfig *cfg)
Recycle a FileContainer.
Definition util-file.c:496
int FileAppendGAPById(FileContainer *ffc, const StreamingBufferConfig *sbcfg, uint32_t track_id, const uint8_t *data, uint32_t data_len)
Store/handle a chunk of file data in the File structure The file with 'track_id' in the FileContainer...
Definition util-file.c:822
int FileCloseFileById(FileContainer *ffc, const StreamingBufferConfig *sbcfg, uint32_t track_id, const uint8_t *data, uint32_t data_len, uint16_t flags)
Definition util-file.c:1078
int FileOpenFileWithId(FileContainer *ffc, const StreamingBufferConfig *sbcfg, uint32_t track_id, const uint8_t *name, uint16_t name_len, const uint8_t *data, uint32_t data_len, uint16_t flags)
Open a new File.
Definition util-file.c:967
void GenericVarFree(GenericVar *gv)
Definition util-var.c:48

Definition at line 27 of file rust-context.c.

Referenced by InitGlobal(), and SCGetContext().