tests/test_icmp_code.c File Reference

#include "test_icmp_code.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_code_data

Typedefs

typedef icmp_code_data ICMPCodeData

Functions

int TestICMPCode (int PacketSlot, TestNode *Nodes)
int ICMPCodeAddNode (int TestID, int RuleID, char *Args)
int InitTestICMPCode ()

Variables

GlobalVars Globals
int ICMPDecoderID


Typedef Documentation

typedef struct icmp_code_data ICMPCodeData


Function Documentation

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

Definition at line 109 of file test_icmp_code.c.

References AddRangesString(), icmp_code_data::codes, FALSE, InitNumList(), LIST_TYPE_NORMAL, NULL, and TestAddNode().

Referenced by InitTestICMPCode().

int InitTestICMPCode (  ) 

Definition at line 136 of file test_icmp_code.c.

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

Referenced by InitTests().

int TestICMPCode ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 24 of file test_icmp_code.c.

References icmp_header::code, icmp_code_data::codes, 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(), and TRUE.

Referenced by InitTestICMPCode().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int ICMPDecoderID

Definition at line 19 of file test_icmp_code.c.

Referenced by InitTestICMPCode(), InitTestICMPType(), TestICMPCode(), and TestICMPType().


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