#include "test_ip_ttl.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_ttl_data |
Typedefs | |
typedef ip_ttl_data | IPTTLData |
Functions | |
int | TestIPTTL (int PacketSlot, TestNode *Nodes) |
int | IPTTLAddNode (int TestID, int RuleID, char *Args) |
int | InitTestIPTTL () |
Variables | |
GlobalVars | Globals |
int | IPDecoderID |
IPTTLData * | IPTTLHead |
typedef struct ip_ttl_data IPTTLData |
int InitTestIPTTL | ( | ) |
Definition at line 168 of file test_ip_ttl.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, IPDecoderID, IPTTLAddNode(), IPTTLHead, MAX_NAME_LEN, NULL, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, TestIPTTL(), global_vars::Tests, and TRUE.
Referenced by InitTests().
int IPTTLAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 98 of file test_ip_ttl.c.
References AddIPRanges(), DestroyNumList(), FALSE, GetBit(), Globals, InitNumList(), IPTTLHead, LIST_TYPE_NORMAL, ip_ttl_data::Next, NULL, NumListCompare(), global_vars::NumRules, ip_ttl_data::RuleBits, SetBit(), TestAddNode(), and ip_ttl_data::TTLs.
Referenced by InitTestIPTTL().
int TestIPTTL | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 28 of file test_ip_ttl.c.
References FALSE, GetDataByID(), Globals, IPDecoderID, IPTTLHead, IsInList(), ip_ttl_data::Next, NotAndBitFields(), global_vars::NumRules, global_vars::Packets, ip_ttl_data::RuleBits, packet_rec::RuleBits, RuleIsActive(), TRUE, and ip_ttl_data::TTLs.
Referenced by InitTestIPTTL().
int IPDecoderID |
Definition at line 22 of file test_ip_ttl.c.
Definition at line 23 of file test_ip_ttl.c.
Referenced by InitTestIPTTL(), IPTTLAddNode(), and TestIPTTL().