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

sp_ttl_check.c File Reference

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

Go to the source code of this file.

Typedefs

typedef _TtlCheckData TtlCheckData

Functions

void TtlCheckInit (char *, OptTreeNode *, int)
void ParseTtl (char *, OptTreeNode *)
int CheckTtlEq (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckTtlGT (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckTtlLT (Packet *, struct _OptTreeNode *, OptFpList *)
int CheckTtlRG (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupTtlCheck (void)


Typedef Documentation

typedef struct _TtlCheckData TtlCheckData
 


Function Documentation

int CheckTtlEq Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 211 of file sp_ttl_check.c.

References DEBUG_PLUGIN, _OptTreeNode::ds_list, _IPHdr::ip_ttl, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_TTL_CHECK.

Referenced by ParseTtl().

int CheckTtlGT Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 248 of file sp_ttl_check.c.

References DEBUG_PLUGIN, _OptTreeNode::ds_list, _IPHdr::ip_ttl, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_TTL_CHECK.

Referenced by ParseTtl().

int CheckTtlLT Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 286 of file sp_ttl_check.c.

References DEBUG_PLUGIN, _OptTreeNode::ds_list, _IPHdr::ip_ttl, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_TTL_CHECK.

Referenced by ParseTtl().

int CheckTtlRG Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 325 of file sp_ttl_check.c.

References DEBUG_PLUGIN, _OptTreeNode::ds_list, _IPHdr::ip_ttl, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_TTL_CHECK.

Referenced by ParseTtl().

void ParseTtl char *  ,
OptTreeNode
 

Definition at line 122 of file sp_ttl_check.c.

References AddOptFuncToList(), CheckTtlEq(), CheckTtlGT(), CheckTtlLT(), CheckTtlRG(), DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _TtlCheckData::h_ttl, PLUGIN_TTL_CHECK, and _TtlCheckData::ttl.

Referenced by TtlCheckInit().

void SetupTtlCheck void   ) 
 

Definition at line 64 of file sp_ttl_check.c.

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

Referenced by InitPlugIns().

void TtlCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 86 of file sp_ttl_check.c.

References _OptTreeNode::ds_list, FatalError(), file_line, file_name, ParseTtl(), PLUGIN_TTL_CHECK, and SnortAlloc().

Referenced by SetupTtlCheck().


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