tests/test_udp_content.c File Reference

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

Go to the source code of this file.

Data Structures

struct  udp_content_data

Typedefs

typedef udp_content_data UDPContentData

Functions

int TestUDPContent (int PacketSlot, TestNode *Nodes)
int UDPContentAddNode (int TestID, int RuleID, char *Args)
int TestUDPContentFinishedSetup ()
int InitTestUDPContent ()

Variables

GlobalVars Globals
int UDPDecoderID
JTree UDPContentTree


Typedef Documentation

typedef struct udp_content_data UDPContentData


Function Documentation

int InitTestUDPContent (  ) 

Definition at line 136 of file test_udp_content.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, test_rec::FinishedSetup, GetDecoderByName(), Globals, InitJTree(), MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestUDPContent(), TestUDPContentFinishedSetup(), TRUE, UDPContentAddNode(), UDPContentTree, and UDPDecoderID.

Referenced by InitTests().

int TestUDPContent ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 51 of file test_udp_content.c.

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

Referenced by InitTestUDPContent().

int TestUDPContentFinishedSetup (  ) 

Definition at line 125 of file test_udp_content.c.

References FinalizeJTree(), and UDPContentTree.

Referenced by InitTestUDPContent().

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

Definition at line 98 of file test_udp_content.c.

References AddStringJTree(), FALSE, MAX_CONTENT_LEN, NULL, TestAddNode(), udp_content_data::udp_content, and UDPContentTree.

Referenced by InitTestUDPContent().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

JTree UDPContentTree

Definition at line 20 of file test_udp_content.c.

Referenced by InitTestUDPContent(), TestUDPContent(), TestUDPContentFinishedSetup(), and UDPContentAddNode().

int UDPDecoderID

Definition at line 19 of file test_udp_content.c.


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