tests/test_udp_src.c File Reference

#include "test_udp_src.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_udp.h"
#include "../packets/packet.h"
#include <arpa/inet.h>
#include "../engine/num_list.h"
#include "../engine/bits.h"

Go to the source code of this file.

Data Structures

struct  udp_src_data

Typedefs

typedef udp_src_data UDPSrcData

Functions

int TestUDPSrc (int PacketSlot, TestNode *Nodes)
int UDPSrcAddNode (int TestID, int RuleID, char *Args)
int InitTestUDPSrc ()

Variables

GlobalVars Globals
int UDPDecoderID
UDPSrcDataUDPSrcHead


Typedef Documentation

typedef struct udp_src_data UDPSrcData


Function Documentation

int InitTestUDPSrc (  ) 

Definition at line 166 of file test_udp_src.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, NULL, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestUDPSrc(), TRUE, UDPDecoderID, UDPSrcAddNode(), and UDPSrcHead.

Referenced by InitTests().

int TestUDPSrc ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 29 of file test_udp_src.c.

References FALSE, GetDataByID(), Globals, IsInList(), udp_src_data::Next, NotAndBitFields(), global_vars::NumRules, global_vars::Packets, udp_src_data::Ports, udp_src_data::RuleBits, packet_rec::RuleBits, RuleIsActive(), TRUE, UDPDecoderID, and UDPSrcHead.

Referenced by InitTestUDPSrc().

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

Definition at line 99 of file test_udp_src.c.

References AddRangesString(), DestroyNumList(), FALSE, GetBit(), Globals, InitNumList(), LIST_TYPE_NORMAL, udp_src_data::Next, NULL, NumListCompare(), global_vars::NumRules, udp_src_data::Ports, udp_src_data::RuleBits, SetBit(), TestAddNode(), and UDPSrcHead.

Referenced by InitTestUDPSrc().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int UDPDecoderID

Definition at line 22 of file test_udp_src.c.

UDPSrcData* UDPSrcHead

Definition at line 23 of file test_udp_src.c.

Referenced by InitTestUDPSrc(), TestUDPSrc(), and UDPSrcAddNode().


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