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

sp_byte_jump.c File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include "bounds.h"
#include "rules.h"
#include "decode.h"
#include "plugbase.h"
#include "parser.h"
#include "debug.h"
#include "util.h"
#include "plugin_enum.h"
#include "mstring.h"
#include "byte_extract.h"

Go to the source code of this file.

Typedefs

typedef _ByteJumpData ByteJumpData

Functions

void ByteJumpInit (char *, OptTreeNode *, int)
void ByteJumpParse (char *, ByteJumpData *, OptTreeNode *)
int ByteJump (Packet *, struct _OptTreeNode *, OptFpList *)
void SetupByteJump (void)

Variables

u_int8_tdoe_ptr
u_int8_t DecodeBuffer [DECODE_BLEN]


Typedef Documentation

typedef struct _ByteJumpData ByteJumpData
 


Function Documentation

int ByteJump Packet ,
struct _OptTreeNode ,
OptFpList
 

Definition at line 317 of file sp_byte_jump.c.

References _ByteJumpData::align_flag, _Packet::alt_dsize, _ByteJumpData::base, byte_extract(), _ByteJumpData::bytes_to_grab, _OptFpList::context, _Packet::data, _ByteJumpData::data_string_convert_flag, DEBUG_PATTERN_MATCH, DEBUG_WRAP, DecodeBuffer, doe_ptr, _Packet::dsize, _ByteJumpData::endianess, _ByteJumpData::from_beginning_flag, inBounds(), _ByteJumpData::multiplier, _OptFpList::next, _ByteJumpData::offset, _OptFpList::OptTestFunc, _Packet::packet_flags, PKT_ALT_DECODE, _ByteJumpData::relative_flag, and string_extract().

Referenced by ByteJumpInit().

void ByteJumpInit char *  ,
OptTreeNode ,
int 
 

Definition at line 127 of file sp_byte_jump.c.

References AddOptFuncToList(), ByteJump(), ByteJumpParse(), _OptFpList::context, FatalError(), file_line, file_name, and NULL.

Referenced by SetupByteJump().

void ByteJumpParse char *  ,
ByteJumpData ,
OptTreeNode
 

Definition at line 170 of file sp_byte_jump.c.

References _ByteJumpData::align_flag, _ByteJumpData::base, BIG, _ByteJumpData::bytes_to_grab, _ByteJumpData::data_string_convert_flag, _ByteJumpData::endianess, FatalError(), file_line, file_name, _ByteJumpData::from_beginning_flag, LITTLE, mSplit(), mSplitFree(), _ByteJumpData::multiplier, _ByteJumpData::offset, PARSELEN, _ByteJumpData::relative_flag, strcasecmp, strncasecmp, strtol(), and strtoul().

Referenced by ByteJumpInit().

void SetupByteJump void   ) 
 

Definition at line 103 of file sp_byte_jump.c.

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

Referenced by InitPlugIns().


Variable Documentation

u_int8_t DecodeBuffer[DECODE_BLEN]
 

Definition at line 45 of file decode.c.

u_int8_t* doe_ptr
 

Definition at line 72 of file sp_pattern_match.c.


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