Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

sp_dsize_check.c File Reference

#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "rules.h"
#include "decode.h"
#include "plugbase.h"
#include "debug.h"
#include "parser.h"
#include "plugin_enum.h"
#include "util.h"

Go to the source code of this file.

Defines

#define EQ   0
#define GT   1
#define LT   2

Typedefs

typedef _DsizeCheckData DsizeCheckData

Functions

void DsizeCheckInit (char *, OptTreeNode *, int)
void ParseDsize (char *, OptTreeNode *)
int CheckDsizeEq (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckDsizeGT (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckDsizeLT (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckDsizeRange (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupDsizeCheck (void)


Define Documentation

#define EQ   0
 

Definition at line 36 of file sp_dsize_check.c.

#define GT   1
 

Definition at line 37 of file sp_dsize_check.c.

#define LT   2
 

Definition at line 38 of file sp_dsize_check.c.


Typedef Documentation

typedef struct _DsizeCheckData DsizeCheckData
 


Function Documentation

int CheckDsizeEq Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 227 of file sp_dsize_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _Packet::dsize, _OptFpList::next, _OptFpList::OptTestFunc, _Packet::packet_flags, PKT_REBUILT_STREAM, and PLUGIN_DSIZE_CHECK.

Referenced by ParseDsize().

int CheckDsizeGT Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 267 of file sp_dsize_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _Packet::dsize, _OptFpList::next, _OptFpList::OptTestFunc, _Packet::packet_flags, PKT_REBUILT_STREAM, and PLUGIN_DSIZE_CHECK.

Referenced by ParseDsize().

int CheckDsizeLT Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 307 of file sp_dsize_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _Packet::dsize, _OptFpList::next, _OptFpList::OptTestFunc, _Packet::packet_flags, PKT_REBUILT_STREAM, and PLUGIN_DSIZE_CHECK.

Referenced by ParseDsize().

int CheckDsizeRange Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 345 of file sp_dsize_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _Packet::dsize, _OptFpList::next, _OptFpList::OptTestFunc, _Packet::packet_flags, PKT_REBUILT_STREAM, and PLUGIN_DSIZE_CHECK.

Referenced by ParseDsize().

void DsizeCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 86 of file sp_dsize_check.c.

References _OptTreeNode::ds_list, FatalError(), file_line, file_name, ParseDsize(), PLUGIN_DSIZE_CHECK, and SnortAlloc().

Referenced by SetupDsizeCheck().

void ParseDsize char *  ,
OptTreeNode
 

Definition at line 124 of file sp_dsize_check.c.

References AddOptFuncToList(), CheckDsizeEq(), CheckDsizeGT(), CheckDsizeLT(), CheckDsizeRange(), DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _DsizeCheckData::dsize, _DsizeCheckData::dsize2, FatalError(), file_line, file_name, NULL, PLUGIN_DSIZE_CHECK, and strtol().

Referenced by DsizeCheckInit().

void SetupDsizeCheck void   ) 
 

Definition at line 65 of file sp_dsize_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, DsizeCheckInit(), and RegisterPlugin().

Referenced by InitPlugIns().


Generated on Sun May 14 14:51:22 2006 by  doxygen 1.4.2