#include "test_ethernet_type.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <netinet/in.h>
#include "../decoders/decode_ethernet.h"
#include "../packets/packet.h"
#include "../engine/num_list.h"
Go to the source code of this file.
Data Structures | |
struct | ethernet_type_data |
Typedefs | |
typedef ethernet_type_data | EthernetTypeData |
Functions | |
int | TestEthernetType (int PacketSlot, TestNode *Nodes) |
int | EthernetTypeAddNode (int TestID, int RuleID, char *Args) |
int | InitTestEthernetType () |
Variables | |
GlobalVars | Globals |
int | EthernetDecoderID |
typedef struct ethernet_type_data EthernetTypeData |
int EthernetTypeAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 109 of file test_ethernet_type.c.
References AddRangesString(), ETHERNET_TYPE_ARP, ETHERNET_TYPE_IP, FALSE, InitNumList(), LIST_TYPE_NORMAL, num_alias_item::Num, TestAddNode(), and ethernet_type_data::Types.
Referenced by InitTestEthernetType().
int InitTestEthernetType | ( | ) |
Definition at line 142 of file test_ethernet_type.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), EthernetDecoderID, EthernetTypeAddNode(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, TestEthernetType(), test_rec::TestFunc, global_vars::Tests, and TRUE.
Referenced by InitTests().
int TestEthernetType | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 24 of file test_ethernet_type.c.
References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, EthernetDecoderID, FALSE, Globals, ethernet_data::Header, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, test_node::RuleID, RuleIsActive(), SetRuleInactive(), TRUE, ethernet_header::Type, and ethernet_type_data::Types.
Referenced by InitTestEthernetType().
Definition at line 19 of file test_ethernet_type.c.