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

sp_ip_tos_check.c File Reference

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

Go to the source code of this file.

Typedefs

typedef _IpTosData IpTosData

Functions

void IpTosCheckInit (char *, OptTreeNode *, int)
void ParseIpTos (char *, OptTreeNode *)
int IpTosCheckEq (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupIpTosCheck (void)


Typedef Documentation

typedef struct _IpTosData IpTosData
 


Function Documentation

int IpTosCheckEq Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 178 of file sp_ip_tos_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _IPHdr::ip_tos, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_IP_TOS_CHECK.

Referenced by IpTosCheckInit().

void IpTosCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 87 of file sp_ip_tos_check.c.

References AddOptFuncToList(), _OptTreeNode::ds_list, FatalError(), file_line, file_name, IpTosCheckEq(), ParseIpTos(), PLUGIN_IP_TOS_CHECK, and SnortAlloc().

Referenced by SetupIpTosCheck().

void ParseIpTos char *  ,
OptTreeNode
 

Definition at line 125 of file sp_ip_tos_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, index, _IpTosData::ip_tos, _IpTosData::not_flag, NULL, PLUGIN_IP_TOS_CHECK, and strtol().

Referenced by IpTosCheckInit().

void SetupIpTosCheck void   ) 
 

Definition at line 66 of file sp_ip_tos_check.c.

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

Referenced by InitPlugIns().


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