tests/test_ethernet_dst.c File Reference

#include "test_ethernet_dst.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_ethernet.h"
#include "../packets/packet.h"

Go to the source code of this file.

Data Structures

struct  ethernet_dst_data

Typedefs

typedef ethernet_dst_data EthernetDstData

Functions

int TestEthernetDst (int PacketSlot, TestNode *Nodes)
int EthernetDstAddNode (int TestID, int RuleID, char *Args)
int InitTestEthernetDst ()

Variables

GlobalVars Globals
int EthernetDecoderID


Typedef Documentation

typedef struct ethernet_dst_data EthernetDstData


Function Documentation

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

Definition at line 120 of file test_ethernet_dst.c.

References ethernet_dst_data::EthernetDst, FALSE, NULL, and TestAddNode().

Referenced by InitTestEthernetDst().

int InitTestEthernetDst (  ) 

Definition at line 155 of file test_ethernet_dst.c.

References test_rec::AddNode, BindTestToDecoder(), CreateTest(), EthernetDecoderID, EthernetDstAddNode(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, TestEthernetDst(), test_rec::TestFunc, global_vars::Tests, and TRUE.

Referenced by InitTests().

int TestEthernetDst ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 22 of file test_ethernet_dst.c.

References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, ethernet_header::DstMac, EthernetDecoderID, ethernet_dst_data::EthernetDst, FALSE, Globals, ethernet_data::Header, test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, test_node::RuleID, RuleIsActive(), SetRuleInactive(), and TRUE.

Referenced by InitTestEthernetDst().


Variable Documentation

int EthernetDecoderID

Definition at line 17 of file test_ethernet_dst.c.

GlobalVars Globals

Definition at line 41 of file hlbr.c.


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