tests/test_tcp_regex.c File Reference

#include "test_tcp_regex.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_tcp.h"
#include "../packets/packet.h"
#include <arpa/inet.h>

Go to the source code of this file.

Data Structures

struct  tcp_regexp_data

Typedefs

typedef tcp_regexp_data TCPRegExpData

Functions

int TestTCPRegExp (int PacketSlot, TestNode *Nodes)
int TCPRegExpAddNode (int TestID, int RuleID, char *Args)
int InitTestTCPRegExp ()

Variables

GlobalVars Globals
int TCPDecoderID


Typedef Documentation

typedef struct tcp_regexp_data TCPRegExpData


Function Documentation

int InitTestTCPRegExp (  ) 

Definition at line 120 of file test_tcp_regex.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, test_rec::ShortName, TCPDecoderID, TCPRegExpAddNode(), TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestTCPRegExp(), and TRUE.

Referenced by InitTests().

int TCPRegExpAddNode ( int  TestID,
int  RuleID,
char *  Args 
)

Definition at line 94 of file test_tcp_regex.c.

References MAX_CONTENT_LEN, tcp_regexp_data::re, tcp_regexp_data::tcp_content, and TestAddNode().

Referenced by InitTestTCPRegExp().

int TestTCPRegExp ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 25 of file test_tcp_regex.c.

References packet_rec::BeginData, test_node::Data, FALSE, Globals, match(), test_node::Next, global_vars::NumRules, global_vars::Packets, packet_rec::RawPacket, tcp_regexp_data::re, test_node::RuleID, RuleIsActive(), SetRuleInactive(), and TRUE.

Referenced by InitTestTCPRegExp().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int TCPDecoderID

Definition at line 19 of file test_tcp_regex.c.


Generated on Sat Jul 7 23:33:11 2007 for HLBR by  doxygen 1.5.2