tests/test_icmp_type.c File Reference

#include "test_icmp_type.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_icmp.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  icmp_type_data

Typedefs

typedef icmp_type_data ICMPTypeData

Functions

int TestICMPType (int PacketSlot, TestNode *Nodes)
int ICMPTypeAddNode (int TestID, int RuleID, char *Args)
int InitTestICMPType ()

Variables

GlobalVars Globals
int ICMPDecoderID


Typedef Documentation

typedef struct icmp_type_data ICMPTypeData


Function Documentation

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

Definition at line 109 of file test_icmp_type.c.

References AddRangesString(), FALSE, ICMP_TYPE_ECHO, ICMP_TYPE_ECHOREPLY, InitNumList(), LIST_TYPE_NORMAL, num_alias_item::Num, TestAddNode(), and icmp_type_data::types.

Referenced by InitTestICMPType().

int InitTestICMPType (  ) 

Definition at line 141 of file test_icmp_type.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, ICMPDecoderID, ICMPTypeAddNode(), MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestICMPType(), global_vars::Tests, and TRUE.

Referenced by InitTests().

int TestICMPType ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 24 of file test_icmp_type.c.

References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, FALSE, Globals, icmp_data::Header, ICMPDecoderID, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, test_node::RuleID, RuleIsActive(), SetRuleInactive(), TRUE, icmp_header::type, and icmp_type_data::types.

Referenced by InitTestICMPType().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int ICMPDecoderID

Definition at line 19 of file test_icmp_type.c.


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