#include "test_ip_check.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"Go to the source code of this file.
Data Structures | |
| struct | ip_check_data |
Typedefs | |
| typedef ip_check_data | IPCheckData |
Functions | |
| int | TestIPCheck (int PacketSlot, TestNode *Nodes) |
| int | IPCheckAddNode (int TestID, int RuleID, char *Args) |
| int | InitTestIPCheck () |
Variables | |
| GlobalVars | Globals |
| int | IPDecoderID |
| typedef struct ip_check_data IPCheckData |
| int InitTestIPCheck | ( | ) |
Definition at line 136 of file test_ip_check.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, IPCheckAddNode(), IPDecoderID, MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestIPCheck(), global_vars::Tests, and TRUE.
| int IPCheckAddNode | ( | int | TestID, | |
| int | RuleID, | |||
| char * | Args | |||
| ) |
Definition at line 108 of file test_ip_check.c.
References AddRangesString(), ip_check_data::Checks, FALSE, InitNumList(), LIST_TYPE_NORMAL, NULL, and TestAddNode().
Referenced by InitTestIPCheck().
| int TestIPCheck | ( | int | PacketSlot, | |
| TestNode * | Nodes | |||
| ) |
Definition at line 25 of file test_ip_check.c.
References ip_header::check, ip_check_data::Checks, test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, FALSE, Globals, ip_data::Header, IPDecoderID, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, test_node::RuleID, RuleIsActive(), SetRuleInactive(), and TRUE.
Referenced by InitTestIPCheck().
| int IPDecoderID |
Definition at line 20 of file test_ip_check.c.
1.5.2