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

sp_icmp_type_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 "debug.h"
#include "util.h"
#include "plugin_enum.h"
#include "sp_icmp_type_check.h"

Go to the source code of this file.

Functions

void IcmpTypeCheckInit (char *, OptTreeNode *, int)
void ParseIcmpType (char *, OptTreeNode *)
int IcmpTypeCheck (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupIcmpTypeCheck (void)


Function Documentation

int IcmpTypeCheck Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 209 of file sp_icmp_type_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _IcmpTypeCheckData::icmp_type, _IcmpTypeCheckData::icmp_type2, ICMP_TYPE_TEST_EQ, ICMP_TYPE_TEST_GT, ICMP_TYPE_TEST_LT, ICMP_TYPE_TEST_RG, _Packet::icmph, _OptFpList::next, _IcmpTypeCheckData::operator, _OptFpList::OptTestFunc, PLUGIN_ICMP_TYPE, and _ICMPHdr::type.

Referenced by IcmpTypeCheckInit().

void IcmpTypeCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 78 of file sp_icmp_type_check.c.

References AddOptFuncToList(), _OptTreeNode::ds_list, FatalError(), file_line, file_name, IcmpTypeCheck(), ParseIcmpType(), PLUGIN_ICMP_TYPE, and SnortAlloc().

Referenced by SetupIcmpTypeCheck().

void ParseIcmpType char *  ,
OptTreeNode
 

Definition at line 120 of file sp_icmp_type_check.c.

References _OptTreeNode::ds_list, FatalError(), file_line, file_name, _IcmpTypeCheckData::icmp_type, _IcmpTypeCheckData::icmp_type2, ICMP_TYPE_TEST_EQ, ICMP_TYPE_TEST_GT, ICMP_TYPE_TEST_LT, ICMP_TYPE_TEST_RG, NULL, _IcmpTypeCheckData::operator, and PLUGIN_ICMP_TYPE.

Referenced by IcmpTypeCheckInit().

void SetupIcmpTypeCheck void   ) 
 

Definition at line 57 of file sp_icmp_type_check.c.

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

Referenced by InitPlugIns().


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