tests/test_tcp_nocase.c File Reference

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

Go to the source code of this file.

Data Structures

struct  tcp_nocase_data

Typedefs

typedef tcp_nocase_data TCPNoCaseData

Functions

int TestTCPNoCase (int PacketSlot, TestNode *Nodes)
int TCPNoCaseAddNode (int TestID, int RuleID, char *Args)
int TestTCPNoCaseFinishedSetup ()
int InitTestTCPNoCase ()

Variables

GlobalVars Globals
int TCPDecoderID
JTree TCPNoCaseTree


Typedef Documentation

typedef struct tcp_nocase_data TCPNoCaseData


Function Documentation

int InitTestTCPNoCase (  ) 

Set up the test of the TCP NoCase

Definition at line 106 of file test_tcp_nocase.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, test_rec::FinishedSetup, GetDecoderByName(), Globals, InitJTree(), MAX_NAME_LEN, test_rec::ShortName, TCPDecoderID, TCPNoCaseAddNode(), TCPNoCaseTree, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestTCPNoCase(), TestTCPNoCaseFinishedSetup(), and TRUE.

Referenced by InitTests().

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

Definition at line 67 of file test_tcp_nocase.c.

References AddStringJTree(), FALSE, MAX_CONTENT_LEN, NULL, tcp_nocase_data::tcp_content, TCPNoCaseTree, and TestAddNode().

Referenced by InitTestTCPNoCase().

int TestTCPNoCase ( int  PacketSlot,
TestNode Nodes 
)

Apply the Test TCP NoCase

Definition at line 25 of file test_tcp_nocase.c.

References packet_rec::BeginData, DEBUGPATH, FALSE, Globals, MatchStrings(), global_vars::NumRules, packet_rec::PacketLen, global_vars::Packets, packet_rec::RawPacket, packet_rec::RuleBits, RuleIsActive(), TCPNoCaseTree, and TRUE.

Referenced by InitTestTCPNoCase().

int TestTCPNoCaseFinishedSetup (  ) 

Called when we're all done adding TCP NoCase rules

Definition at line 94 of file test_tcp_nocase.c.

References FinalizeJTree(), and TCPNoCaseTree.

Referenced by InitTestTCPNoCase().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int TCPDecoderID

Definition at line 19 of file test_tcp_nocase.c.

JTree TCPNoCaseTree

Definition at line 20 of file test_tcp_nocase.c.

Referenced by InitTestTCPNoCase(), TCPNoCaseAddNode(), TestTCPNoCase(), and TestTCPNoCaseFinishedSetup().


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