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

sp_ip_proto.c File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
#include <netdb.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_ip_proto.h"

Go to the source code of this file.

Functions

void IpProtoInit (char *, OptTreeNode *, int)
void IpProtoRuleParseFunction (char *, IpProtoData *)
int IpProtoDetectorFunction (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupIpProto (void)


Function Documentation

int IpProtoDetectorFunction Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 201 of file sp_ip_proto.c.

References _IpProtoData::comparison_flag, _OptFpList::context, DEBUG_PLUGIN, DEBUG_WRAP, GREATER_THAN, _IPHdr::ip_proto, _Packet::iph, _OptFpList::next, _IpProtoData::not_flag, _OptFpList::OptTestFunc, and _IpProtoData::protocol.

Referenced by IpProtoInit().

void IpProtoInit char *  ,
OptTreeNode ,
int 
 

Definition at line 85 of file sp_ip_proto.c.

References AddOptFuncToList(), _OptFpList::context, _OptTreeNode::ds_list, IpProtoDetectorFunction(), IpProtoRuleParseFunction(), PLUGIN_IP_PROTO_CHECK, and SnortAlloc().

Referenced by SetupIpProto().

void IpProtoRuleParseFunction char *  ,
IpProtoData
 

Definition at line 136 of file sp_ip_proto.c.

References _IpProtoData::comparison_flag, FatalError(), file_line, file_name, GREATER_THAN, LESS_THAN, _IpProtoData::not_flag, and _IpProtoData::protocol.

Referenced by IpProtoInit().

void SetupIpProto void   ) 
 

Definition at line 63 of file sp_ip_proto.c.

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

Referenced by InitPlugIns().


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