tests/test_tcp_port.c File Reference

#include "test_tcp_port.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_port_data

Typedefs

typedef tcp_port_data TCPPortData

Functions

int TestTCPPort (int PacketSlot, TestNode *Nodes)
int TCPPortAddNode (int TestID, int RuleID, char *Args)
int InitTestTCPPort ()

Variables

GlobalVars Globals
int TCPDecoderID


Typedef Documentation

typedef struct tcp_port_data TCPPortData


Function Documentation

int InitTestTCPPort (  ) 

Definition at line 139 of file test_tcp_port.c.

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

Referenced by InitTests().

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

Definition at line 111 of file test_tcp_port.c.

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

Referenced by InitTestTCPPort().

int TestTCPPort ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 24 of file test_tcp_port.c.

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

Referenced by InitTestTCPPort().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int TCPDecoderID

Definition at line 19 of file test_tcp_port.c.


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