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

sp_tcp_flag_check.c File Reference

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

Go to the source code of this file.

Defines

#define M_NORMAL   0
#define M_ALL   1
#define M_ANY   2
#define M_NOT   3

Typedefs

typedef _TCPFlagCheckData TCPFlagCheckData

Functions

void TCPFlagCheckInit (char *, OptTreeNode *, int)
void ParseTCPFlags (char *, OptTreeNode *)
int CheckTcpFlags (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupTCPFlagCheck (void)


Define Documentation

#define M_ALL   1
 

Definition at line 39 of file sp_tcp_flag_check.c.

Referenced by CheckTcpFlags(), and ParseTCPFlags().

#define M_ANY   2
 

Definition at line 40 of file sp_tcp_flag_check.c.

Referenced by CheckTcpFlags(), and ParseTCPFlags().

#define M_NORMAL   0
 

Definition at line 38 of file sp_tcp_flag_check.c.

Referenced by CheckTcpFlags(), and ParseTCPFlags().

#define M_NOT   3
 

Definition at line 41 of file sp_tcp_flag_check.c.

Referenced by CheckTcpFlags(), and ParseTCPFlags().


Typedef Documentation

typedef struct _TCPFlagCheckData TCPFlagCheckData
 


Function Documentation

int CheckTcpFlags Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 264 of file sp_tcp_flag_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, M_ALL, M_ANY, M_NORMAL, M_NOT, _TCPFlagCheckData::mode, _OptFpList::next, _OptFpList::OptTestFunc, PLUGIN_TCP_FLAG_CHECK, _TCPFlagCheckData::tcp_flags, _TCPFlagCheckData::tcp_mask, _Packet::tcph, and _TCPHdr::th_flags.

Referenced by TCPFlagCheckInit().

void ParseTCPFlags char *  ,
OptTreeNode
 

Definition at line 107 of file sp_tcp_flag_check.c.

References _OptTreeNode::ds_list, FatalError(), file_line, file_name, M_ALL, M_ANY, M_NORMAL, M_NOT, _TCPFlagCheckData::mode, NULL, PLUGIN_TCP_FLAG_CHECK, R_ACK, R_FIN, R_PSH, R_RES1, R_RES2, R_RST, R_SYN, R_URG, _TCPFlagCheckData::tcp_flags, and _TCPFlagCheckData::tcp_mask.

Referenced by TCPFlagCheckInit().

void SetupTCPFlagCheck void   ) 
 

Definition at line 57 of file sp_tcp_flag_check.c.

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

Referenced by InitPlugIns().

void TCPFlagCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 65 of file sp_tcp_flag_check.c.

References AddOptFuncToList(), CheckTcpFlags(), DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, FatalError(), file_line, file_name, ParseTCPFlags(), PLUGIN_TCP_FLAG_CHECK, and SnortAlloc().

Referenced by SetupTCPFlagCheck().


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