tests/test_interface_name.c File Reference

#include "test_interface_name.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_interface.h"
#include "../packets/packet.h"

Go to the source code of this file.

Data Structures

struct  interface_name_data

Defines

#define DEBUG

Typedefs

typedef interface_name_data InterfaceNameData

Functions

int TestInterfaceName (int PacketSlot, TestNode *Nodes)
int InterfaceNameAddNode (int TestID, int RuleID, char *Args)
int InitTestInterfaceName ()

Variables

GlobalVars Globals
int InterfaceDecoderID


Define Documentation

#define DEBUG

Definition at line 14 of file test_interface_name.c.


Typedef Documentation

typedef struct interface_name_data InterfaceNameData


Function Documentation

int InitTestInterfaceName (  ) 

Definition at line 128 of file test_interface_name.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, InterfaceDecoderID, InterfaceNameAddNode(), MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestInterfaceName(), global_vars::Tests, and TRUE.

Referenced by InitTests().

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

Definition at line 99 of file test_interface_name.c.

References Globals, interface_name_data::InterfaceNum, global_vars::Interfaces, interface_rec::Name, global_vars::NumInterfaces, and TestAddNode().

Referenced by InitTestInterfaceName().

int TestInterfaceName ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 21 of file test_interface_name.c.

References decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, Globals, InterfaceDecoderID, packet_rec::NumDecoderData, and global_vars::Packets.

Referenced by InitTestInterfaceName().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int InterfaceDecoderID

Definition at line 16 of file test_interface_name.c.

Referenced by InitTestInterfaceName(), and TestInterfaceName().


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