#include "test_icmp_type.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_icmp.h"
#include "../packets/packet.h"
#include <arpa/inet.h>
#include "../engine/num_list.h"
Go to the source code of this file.
Data Structures | |
struct | icmp_type_data |
Typedefs | |
typedef icmp_type_data | ICMPTypeData |
Functions | |
int | TestICMPType (int PacketSlot, TestNode *Nodes) |
int | ICMPTypeAddNode (int TestID, int RuleID, char *Args) |
int | InitTestICMPType () |
Variables | |
GlobalVars | Globals |
int | ICMPDecoderID |
typedef struct icmp_type_data ICMPTypeData |
int ICMPTypeAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 109 of file test_icmp_type.c.
References AddRangesString(), FALSE, ICMP_TYPE_ECHO, ICMP_TYPE_ECHOREPLY, InitNumList(), LIST_TYPE_NORMAL, num_alias_item::Num, TestAddNode(), and icmp_type_data::types.
Referenced by InitTestICMPType().
int InitTestICMPType | ( | ) |
Definition at line 141 of file test_icmp_type.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, ICMPDecoderID, ICMPTypeAddNode(), MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestICMPType(), global_vars::Tests, and TRUE.
Referenced by InitTests().
int TestICMPType | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 24 of file test_icmp_type.c.
References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, FALSE, Globals, icmp_data::Header, ICMPDecoderID, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, test_node::RuleID, RuleIsActive(), SetRuleInactive(), TRUE, icmp_header::type, and icmp_type_data::types.
Referenced by InitTestICMPType().
int ICMPDecoderID |
Definition at line 19 of file test_icmp_type.c.