#include "../config.h"
#include "hlbr.h"
Go to the source code of this file.
Data Structures | |
struct | bnode |
struct | bm_tree |
Typedefs | |
typedef bnode | BNode |
typedef bm_tree | BMTree |
Functions | |
int | InitTree (BMTree *Tree, char IgnoreCase) |
int | AddToTree (BMTree *Tree, char *String, int Len, int RuleID) |
int | MatchStringTree (BMTree *Tree, unsigned char *PacketRuleBits, char *Packet, int Plen) |
void | FreeTree (BMTree *Tree) |
int AddToTree | ( | BMTree * | Tree, | |
char * | String, | |||
int | Len, | |||
int | RuleID | |||
) |
Definition at line 101 of file bmtree.c.
References bnode::Child, FALSE, Globals, bm_tree::IgnoreCase, bnode::NextPeer, NULL, global_vars::NumRules, SetBit(), bm_tree::TreeDependMask, bm_tree::TreeHead, and TRUE.
int InitTree | ( | BMTree * | Tree, | |
char | IgnoreCase | |||
) |
int MatchStringTree | ( | BMTree * | Tree, | |
unsigned char * | PacketRuleBits, | |||
char * | Packet, | |||
int | Plen | |||
) |
Definition at line 226 of file bmtree.c.
References DEBUG, Globals, bm_tree::IgnoreCase, MAX_RULES, global_vars::NumRules, SetBit(), bm_tree::TreeDependMask, and bm_tree::TreeHead.