tests/test_tcp_flags.c File Reference

#include "test_tcp_flags.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"
#include "../engine/bits.h"

Go to the source code of this file.

Data Structures

struct  tcp_flags_data

Typedefs

typedef tcp_flags_data TCPFlagsData

Functions

int TestTCPFlags (int PacketSlot, TestNode *Nodes)
int TCPFlagsAddNode (int TestID, int RuleID, char *Args)
int InitTestTCPFlags ()

Variables

GlobalVars Globals
int TCPDecoderID
TCPFlagsDataTCPFlagsHead


Typedef Documentation

typedef struct tcp_flags_data TCPFlagsData


Function Documentation

int InitTestTCPFlags (  ) 

Definition at line 243 of file test_tcp_flags.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, NULL, test_rec::ShortName, TCPDecoderID, TCPFlagsAddNode(), TCPFlagsHead, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestTCPFlags(), and TRUE.

Referenced by InitTests().

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

Definition at line 113 of file test_tcp_flags.c.

References tcp_flags_data::Ack, tcp_flags_data::Cwr, tcp_flags_data::Ece, FALSE, tcp_flags_data::Fin, GetBit(), Globals, tcp_flags_data::Next, NULL, global_vars::NumRules, tcp_flags_data::Psh, tcp_flags_data::Rst, tcp_flags_data::RuleBits, SetBit(), tcp_flags_data::Syn, TCPFlagsHead, TestAddNode(), and tcp_flags_data::Urg.

Referenced by InitTestTCPFlags().

int TestTCPFlags ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 36 of file test_tcp_flags.c.

References tcp_flags_data::Ack, tcp_flags_data::Cwr, tcp_flags_data::Ece, FALSE, tcp_flags_data::Fin, GetDataByID(), Globals, tcp_flags_data::Next, NotAndBitFields(), global_vars::NumRules, global_vars::Packets, tcp_flags_data::Psh, tcp_flags_data::Rst, tcp_flags_data::RuleBits, packet_rec::RuleBits, RuleIsActive(), tcp_flags_data::Syn, TCPDecoderID, TCPFlagsHead, TRUE, and tcp_flags_data::Urg.

Referenced by InitTestTCPFlags().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int TCPDecoderID

Definition at line 30 of file test_tcp_flags.c.

TCPFlagsData* TCPFlagsHead

Definition at line 31 of file test_tcp_flags.c.

Referenced by InitTestTCPFlags(), TCPFlagsAddNode(), and TestTCPFlags().


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