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

sp_ipoption_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 "util.h"
#include "plugin_enum.h"

Go to the source code of this file.

Typedefs

typedef _IpOptionData IpOptionData

Functions

void IpOptionInit (char *, OptTreeNode *, int)
void ParseIpOptionData (char *, OptTreeNode *)
int CheckIpOptions (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupIpOptionCheck (void)


Typedef Documentation

typedef struct _IpOptionData IpOptionData
 


Function Documentation

int CheckIpOptions Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 210 of file sp_ipoption_check.c.

References _Options::code, DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, int(), _Packet::ip_option_count, _Packet::ip_options, _Packet::iph, _OptFpList::next, _OptFpList::OptTestFunc, and PLUGIN_IPOPTION_CHECK.

Referenced by IpOptionInit().

void IpOptionInit char *  ,
OptTreeNode ,
int 
 

Definition at line 83 of file sp_ipoption_check.c.

References AddOptFuncToList(), CheckIpOptions(), _OptTreeNode::ds_list, FatalError(), file_line, file_name, ParseIpOptionData(), PLUGIN_IPOPTION_CHECK, and SnortAlloc().

Referenced by SetupIpOptionCheck().

void ParseIpOptionData char *  ,
OptTreeNode
 

Definition at line 121 of file sp_ipoption_check.c.

References _IpOptionData::any_flag, _OptTreeNode::ds_list, FatalError(), file_line, file_name, _IpOptionData::ip_option, IPOPT_EOL, IPOPT_LSRR, IPOPT_LSRR_E, IPOPT_NOP, IPOPT_RR, IPOPT_SATID, IPOPT_SECURITY, IPOPT_SSRR, IPOPT_TS, NULL, PLUGIN_IPOPTION_CHECK, and strncasecmp.

Referenced by IpOptionInit().

void SetupIpOptionCheck void   ) 
 

Definition at line 61 of file sp_ipoption_check.c.

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

Referenced by InitPlugIns().


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