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