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

sp_rpc_check.c File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
#include <rpc/rpc.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 IXDR_GET_LONG   IXDR_GET_INT32
#define RPC_CHECK_PROG   1
#define RPC_CHECK_VERS   2
#define RPC_CHECK_PROC   4

Typedefs

typedef _RpcCheckData RpcCheckData

Functions

void RpcCheckInit (char *, OptTreeNode *, int)
void ParseRpc (char *, OptTreeNode *)
int CheckRpc (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupRpcCheck (void)


Define Documentation

#define IXDR_GET_LONG   IXDR_GET_INT32
 

Definition at line 47 of file sp_rpc_check.c.

Referenced by CheckRpc().

#define RPC_CHECK_PROC   4
 

Definition at line 61 of file sp_rpc_check.c.

Referenced by CheckRpc(), and ParseRpc().

#define RPC_CHECK_PROG   1
 

Definition at line 59 of file sp_rpc_check.c.

Referenced by CheckRpc(), and ParseRpc().

#define RPC_CHECK_VERS   2
 

Definition at line 60 of file sp_rpc_check.c.

Referenced by CheckRpc(), and ParseRpc().


Typedef Documentation

typedef struct _RpcCheckData RpcCheckData
 


Function Documentation

int CheckRpc Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 199 of file sp_rpc_check.c.

References CALL, _Packet::data, DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _Packet::dsize, _RpcCheckData::flags, _IPHdr::ip_proto, _Packet::iph, IXDR_GET_ENUM, IXDR_GET_LONG, _OptFpList::next, _OptFpList::OptTestFunc, PLUGIN_RPC_CHECK, _RpcCheckData::proc, _RpcCheckData::program, RPC_CHECK_PROC, RPC_CHECK_PROG, RPC_CHECK_VERS, RPC_MSG_VERSION, _Packet::tcph, _Packet::udph, and _RpcCheckData::vers.

Referenced by RpcCheckInit().

void ParseRpc char *  ,
OptTreeNode
 

Definition at line 145 of file sp_rpc_check.c.

References DEBUG_PLUGIN, DEBUG_WRAP, _OptTreeNode::ds_list, _RpcCheckData::flags, PLUGIN_RPC_CHECK, _RpcCheckData::proc, _RpcCheckData::program, RPC_CHECK_PROC, RPC_CHECK_PROG, RPC_CHECK_VERS, strtoul(), and _RpcCheckData::vers.

Referenced by RpcCheckInit().

void RpcCheckInit char *  ,
OptTreeNode ,
int 
 

Definition at line 102 of file sp_rpc_check.c.

References AddOptFuncToList(), CheckRpc(), _OptTreeNode::ds_list, FatalError(), file_line, file_name, ParseRpc(), PLUGIN_RPC_CHECK, and SnortAlloc().

Referenced by SetupRpcCheck().

void SetupRpcCheck void   ) 
 

Definition at line 80 of file sp_rpc_check.c.

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

Referenced by InitPlugIns().


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