24#ifndef SURICATA_DEBUG_FILTERS_H
25#define SURICATA_DEBUG_FILTERS_H
Structure used to hold the thread_list used by FD filters.
struct SCLogFDFilterThreadList_ * next
Structure that holds the FD filters.
struct SCLogFDFilter_ * next
Structure used to hold FG filters. Encapsulates filename details, func details, which inturn encapsul...
struct SCLogFGFilterFile_ * next
structure used to hold the function details of a FG filter
struct SCLogFGFilterFunc_ * next
Structure used to hold the line_no details of a FG filter.
struct SCLogFGFilterLine_ * next
void SCLogCheckFDFilterExit(const char *)
Updates a FD filter, based on whether the function that calls this function, is registered as a FD fi...
int SCLogMatchFGFilterWL(const char *, const char *, int)
Checks if there is a match for the incoming log_message with any of the FG filters....
int sc_log_fd_filters_present
struct SCLogFGFilterFile_ SCLogFGFilterFile
Structure used to hold FG filters. Encapsulates filename details, func details, which inturn encapsul...
struct SCLogFGFilterFunc_ SCLogFGFilterFunc
structure used to hold the function details of a FG filter
int SCLogCheckFDFilterEntry(const char *)
Updates a FD filter, based on whether the function that calls this function, is registered as a FD fi...
struct SCLogFDFilter_ SCLogFDFilter
Structure that holds the FD filters.
struct SCLogFGFilterLine_ SCLogFGFilterLine
Structure used to hold the line_no details of a FG filter.
void SCLogReleaseFDFilters(void)
Releases all the FD filters added to the logging module.
void SCLogAddToFGFFileList(SCLogFGFilterFile *, const char *, const char *, int, int)
Helper function used internally to add a FG filter. This function is called when the file component o...
int SCLogPrintFGFilters(void)
Prints the FG filters(both WL and BL). Used for debugging purposes.
int SCLogAddFGFilterBL(const char *, const char *, int)
Adds a Blacklist(BL) fine-grained(FG) filter. A FG filter BL filter allows messages that don't match ...
int sc_log_fg_filters_present
void SCLogAddToFGFFuncList(SCLogFGFilterFile *, SCLogFGFilterFunc *, const char *, int)
Helper function used internally to add a FG filter. This function is called when the file component o...
int SCLogRemoveFDFilter(const char *)
Removes a Function-Dependent(FD) filter.
struct SCLogFDFilterThreadList_ SCLogFDFilterThreadList
Structure used to hold the thread_list used by FD filters.
void SCLogAddToFGFLineList(SCLogFGFilterFunc *, SCLogFGFilterLine *, int)
Helper function used internally to add a FG filter. This function is called when the file and functio...
int SCLogAddFDFilter(const char *)
Adds a Function-Dependent(FD) filter.
int SCLogMatchFGFilterBL(const char *, const char *, int)
Checks if there is a match for the incoming log_message with any of the FG filters....
void SCLogReleaseFGFilters(void)
int SCLogPrintFDFilters(void)
Prints the FG filters(both WL and BL). Used for debugging purposes.
void SCLogReleaseFDFilter(SCLogFDFilter *)
Releases the memory alloted to a FD filter.
int SCLogMatchFDFilter(const char *)
Checks if there is a match for the incoming log_message with any of the FD filters.