#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 DEBUG |
Definition at line 14 of file test_ethernet_src.c.
| typedef struct ethernet_src_data EthernetSrcData |
| 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().
Definition at line 17 of file test_ethernet_src.c.
1.5.2