tests/test_ethernet_src.c File Reference

#include "test_ethernet_src.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_src_data

Defines

#define DEBUG

Typedefs

typedef ethernet_src_data EthernetSrcData

Functions

int TestEthernetSrc (int PacketSlot, TestNode *Nodes)
int EthernetSrcAddNode (int TestID, int RuleID, char *Args)
int InitTestEthernetSrc ()

Variables

GlobalVars Globals
int EthernetDecoderID


Define Documentation

#define DEBUG

Definition at line 14 of file test_ethernet_src.c.


Typedef Documentation

typedef struct ethernet_src_data EthernetSrcData


Function Documentation

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

Definition at line 120 of file test_ethernet_src.c.

References ethernet_src_data::EthernetSrc, FALSE, NULL, and TestAddNode().

Referenced by InitTestEthernetSrc().

int InitTestEthernetSrc (  ) 

Definition at line 155 of file test_ethernet_src.c.

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

Referenced by InitTests().

int TestEthernetSrc ( int  PacketSlot,
TestNode Nodes 
)

Definition at line 22 of file test_ethernet_src.c.

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

Referenced by InitTestEthernetSrc().


Variable Documentation

int EthernetDecoderID

Definition at line 17 of file test_ethernet_src.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