tests/test_tcp_src.c File Reference

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

Go to the source code of this file.

Data Structures

struct  tcp_src_data

Typedefs

typedef tcp_src_data TCPSrcData

Functions

int TestTCPSrc (int PacketSlot, TestNode *Nodes)
int TCPSrcAddNode (int TestID, int RuleID, char *Args)
int InitTestTCPSrc ()

Variables

GlobalVars Globals
int TCPDecoderID


Typedef Documentation

typedef struct tcp_src_data TCPSrcData


Function Documentation

int InitTestTCPSrc (  ) 

Definition at line 136 of file test_tcp_src.c.

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

Referenced by InitTests().

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

Definition at line 109 of file test_tcp_src.c.

References AddRangesString(), FALSE, InitNumList(), LIST_TYPE_NORMAL, NULL, tcp_src_data::Ports, and TestAddNode().

Referenced by InitTestTCPSrc().

int TestTCPSrc ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 24 of file test_tcp_src.c.

References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, FALSE, Globals, tcp_data::Header, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, tcp_src_data::Ports, test_node::RuleID, RuleIsActive(), SetRuleInactive(), tcp_header::source, TCPDecoderID, and TRUE.

Referenced by InitTestTCPSrc().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int TCPDecoderID

Definition at line 19 of file test_tcp_src.c.


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