engine/bmtree.h File Reference

#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)


Typedef Documentation

typedef struct bm_tree BMTree

typedef struct bnode BNode


Function Documentation

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.

void FreeTree ( BMTree Tree  ) 

Definition at line 277 of file bmtree.c.

int InitTree ( BMTree Tree,
char  IgnoreCase 
)

Definition at line 19 of file bmtree.c.

References TRUE.

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.


Generated on Sat Jul 7 23:33:10 2007 for HLBR by  doxygen 1.5.2