#include "bounds.h"#include "rules.h"#include "debug.h"#include "decode.h"#include "plugbase.h"#include "parser.h"#include "plugin_enum.h"#include "util.h"#include "mstring.h"#include <sys/types.h>#include <pcre.h>Go to the source code of this file.
Defines | |
| #define | SNORT_PCRE_RELATIVE 1 |
| #define | SNORT_PCRE_INVERT 2 |
| #define | SNORT_PCRE_URI 4 |
| #define | SNORT_PCRE_RAWBYTES 8 |
| #define | SNORT_PCRE_OVECTOR_SIZE 3 |
Typedefs | |
| typedef _PcreData | PcreData |
Functions | |
| void | SnortPcreInit (char *, OptTreeNode *, int) |
| void | SnortPcreParse (char *, PcreData *, OptTreeNode *) |
| void | SnortPcreDump (PcreData *) |
| int | SnortPcre (Packet *, struct _OptTreeNode *, OptFpList *) |
| void | SetupPcre (void) |
| static int | pcre_search (const PcreData *pcre_data, const char *buf, int len, int start_offset, int *found_offset) |
Variables | |
| u_int8_t | DecodeBuffer [DECODE_BLEN] |
| u_int8_t * | doe_ptr |
|
|
Definition at line 52 of file sp_pcre.c. Referenced by pcre_search(), and SnortPcreParse(). |
|
|
Definition at line 62 of file sp_pcre.c. Referenced by pcre_search(). |
|
|
Definition at line 54 of file sp_pcre.c. Referenced by SnortPcre(), and SnortPcreParse(). |
|
|
Definition at line 51 of file sp_pcre.c. Referenced by SnortPcre(), and SnortPcreParse(). |
|
|
Definition at line 53 of file sp_pcre.c. Referenced by SnortPcre(), and SnortPcreParse(). |
|
|
|
|
||||||||||||||||||||||||
|
Perform a search of the PCRE data.
Definition at line 256 of file sp_pcre.c. References DEBUG_PATTERN_MATCH, DEBUG_WRAP, doe_ptr, NULL, _PcreData::options, PCRE_ERROR_NOMATCH, pcre_exec(), _PcreData::pe, _PcreData::re, SNORT_PCRE_INVERT, and SNORT_PCRE_OVECTOR_SIZE. Referenced by SnortPcre(). |
|
|
Definition at line 72 of file sp_pcre.c. References RegisterPlugin(), and SnortPcreInit(). Referenced by InitPlugIns(). |
|
||||||||||||||||
|
Definition at line 320 of file sp_pcre.c. References _Packet::alt_dsize, _OptFpList::context, _Packet::data, DEBUG_PATTERN_MATCH, DEBUG_WRAP, DecodeBuffer, doe_ptr, _Packet::dsize, hex(), inBounds(), _OptFpList::next, _PcreData::options, _OptFpList::OptTestFunc, _Packet::packet_flags, pcre_search(), PKT_ALT_DECODE, SNORT_PCRE_RAWBYTES, SNORT_PCRE_RELATIVE, SNORT_PCRE_URI, _Packet::uri_count, URI_COUNT, and UriBufs. Referenced by SnortPcreInit(). |
|
|
|
|
||||||||||||||||
|
Definition at line 77 of file sp_pcre.c. References AddOptFuncToList(), _OptFpList::context, FatalError(), file_line, file_name, NULL, SnortAlloc(), SnortPcre(), and SnortPcreParse(). Referenced by SetupPcre(). |
|
||||||||||||||||
|
Definition at line 106 of file sp_pcre.c. References DEBUG_PATTERN_MATCH, DEBUG_WRAP, FatalError(), file_line, file_name, NULL, _PcreData::options, PCRE_ANCHORED, PCRE_CASELESS, pcre_compile(), PCRE_DOLLAR_ENDONLY, PCRE_DOTALL, PCRE_EXTENDED, PCRE_MULTILINE, pcre_study(), PCRE_UNGREEDY, _PcreData::pe, _PcreData::re, SNORT_PCRE_INVERT, SNORT_PCRE_RAWBYTES, SNORT_PCRE_RELATIVE, and SNORT_PCRE_URI. Referenced by SnortPcreInit(). |
|
|
|
|
|
Definition at line 72 of file sp_pattern_match.c. |
1.4.2