#include "test_ip_dst.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_ip.h"
#include "../packets/packet.h"
#include <arpa/inet.h>
#include "../engine/num_list.h"
#include "../engine/bits.h"
Go to the source code of this file.
Data Structures | |
struct | ip_dst_data |
Typedefs | |
typedef ip_dst_data | IPDstData |
Functions | |
int | TestIPDst (int PacketSlot, TestNode *Nodes) |
int | IPDstAddNode (int TestID, int RuleID, char *Args) |
int | InitTestIPDst () |
Variables | |
GlobalVars | Globals |
int | IPDecoderID |
IPDstData * | IPDstHead |
typedef struct ip_dst_data IPDstData |
int InitTestIPDst | ( | ) |
Definition at line 163 of file test_ip_dst.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, IPDecoderID, IPDstAddNode(), IPDstHead, MAX_NAME_LEN, NULL, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestIPDst(), global_vars::Tests, and TRUE.
Referenced by InitTests().
int IPDstAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 99 of file test_ip_dst.c.
References AddIPRanges(), DEBUGPATH, DestroyNumList(), FALSE, GetBit(), Globals, InitNumList(), IPDstHead, ip_dst_data::IPS, LIST_TYPE_NORMAL, ip_dst_data::Next, NULL, NumListCompare(), global_vars::NumRules, ip_dst_data::RuleBits, SetBit(), and TestAddNode().
Referenced by InitTestIPDst().
int TestIPDst | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 28 of file test_ip_dst.c.
References DEBUGPATH, FALSE, GetDataByID(), Globals, IPDecoderID, IPDstHead, ip_dst_data::IPS, IsInList(), ip_dst_data::Next, NotAndBitFields(), global_vars::NumRules, global_vars::Packets, ip_dst_data::RuleBits, packet_rec::RuleBits, RuleIsActive(), and TRUE.
Referenced by InitTestIPDst().
int IPDecoderID |
Definition at line 22 of file test_ip_dst.c.
Definition at line 23 of file test_ip_dst.c.
Referenced by InitTestIPDst(), IPDstAddNode(), and TestIPDst().