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

sp_icmp_code_check.c File Reference

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

Go to the source code of this file.

Defines

#define ICMP_CODE_TEST_EQ   1
#define ICMP_CODE_TEST_GT   2
#define ICMP_CODE_TEST_LT   3
#define ICMP_CODE_TEST_RG   4

Typedefs

typedef _IcmpCodeCheckData IcmpCodeCheckData

Functions

void IcmpCodeCheckInit (char *, OptTreeNode *, int)
void ParseIcmpCode (char *, OptTreeNode *)
int IcmpCodeCheck (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupIcmpCodeCheck (void)


Define Documentation

#define ICMP_CODE_TEST_EQ   1
 

Definition at line 45 of file sp_icmp_code_check.c.

Referenced by IcmpCodeCheck(), and ParseIcmpCode().

#define ICMP_CODE_TEST_GT   2
 

Definition at line 46 of file sp_icmp_code_check.c.

Referenced by IcmpCodeCheck(), and ParseIcmpCode().

#define ICMP_CODE_TEST_LT   3
 

Definition at line 47 of file sp_icmp_code_check.c.

Referenced by IcmpCodeCheck(), and ParseIcmpCode().

#define ICMP_CODE_TEST_RG   4
 

Definition at line 48 of file sp_icmp_code_check.c.

Referenced by IcmpCodeCheck(), and ParseIcmpCode().


Typedef Documentation

typedef struct _IcmpCodeCheckData IcmpCodeCheckData
 


Function Documentation

int IcmpCodeCheck Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 223 of file sp_icmp_code_check.c.

References _ICMPHdr::code, DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _IcmpCodeCheckData::icmp_code, _IcmpCodeCheckData::icmp_code2, ICMP_CODE_TEST_EQ, ICMP_CODE_TEST_GT, ICMP_CODE_TEST_LT, ICMP_CODE_TEST_RG, _Packet::icmph, _OptFpList::next, _IcmpCodeCheckData::operator, _OptFpList::OptTestFunc, and PLUGIN_ICMP_CODE.

Referenced by IcmpCodeCheckInit().

void IcmpCodeCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 91 of file sp_icmp_code_check.c.

References AddOptFuncToList(), _OptTreeNode::ds_list, FatalError(), file_line, file_name, IcmpCodeCheck(), ParseIcmpCode(), PLUGIN_ICMP_CODE, and SnortAlloc().

Referenced by SetupIcmpCodeCheck().

void ParseIcmpCode char *  ,
OptTreeNode
 

Definition at line 135 of file sp_icmp_code_check.c.

References _OptTreeNode::ds_list, FatalError(), file_line, file_name, _IcmpCodeCheckData::icmp_code, _IcmpCodeCheckData::icmp_code2, ICMP_CODE_TEST_EQ, ICMP_CODE_TEST_GT, ICMP_CODE_TEST_LT, ICMP_CODE_TEST_RG, NULL, _IcmpCodeCheckData::operator, and PLUGIN_ICMP_CODE.

Referenced by IcmpCodeCheckInit().

void SetupIcmpCodeCheck void   ) 
 

Definition at line 70 of file sp_icmp_code_check.c.

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

Referenced by InitPlugIns().


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