#include "test_udp_nocase.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_udp.h"
#include "../packets/packet.h"
#include "../engine/jtree.h"
#include <arpa/inet.h>
Go to the source code of this file.
Data Structures | |
struct | udp_nocase_data |
Typedefs | |
typedef udp_nocase_data | UDPNoCaseData |
Functions | |
int | TestUDPNoCase (int PacketSlot, TestNode *Nodes) |
int | UDPNoCaseAddNode (int TestID, int RuleID, char *Args) |
int | TestUDPNoCaseFinishedSetup () |
int | InitTestUDPNoCase () |
Variables | |
GlobalVars | Globals |
int | UDPDecoderID |
JTree | UDPNoCaseTree |
typedef struct udp_nocase_data UDPNoCaseData |
int InitTestUDPNoCase | ( | ) |
Definition at line 111 of file test_udp_nocase.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, test_rec::FinishedSetup, GetDecoderByName(), Globals, InitJTree(), MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestUDPNoCase(), TestUDPNoCaseFinishedSetup(), TRUE, UDPDecoderID, UDPNoCaseAddNode(), and UDPNoCaseTree.
Referenced by InitTests().
int TestUDPNoCase | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 25 of file test_udp_nocase.c.
References packet_rec::BeginData, FALSE, Globals, MatchStrings(), global_vars::NumRules, packet_rec::PacketLen, global_vars::Packets, packet_rec::RawPacket, packet_rec::RuleBits, RuleIsActive(), TRUE, and UDPNoCaseTree.
Referenced by InitTestUDPNoCase().
int TestUDPNoCaseFinishedSetup | ( | ) |
Definition at line 99 of file test_udp_nocase.c.
References FinalizeJTree(), and UDPNoCaseTree.
Referenced by InitTestUDPNoCase().
int UDPNoCaseAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 72 of file test_udp_nocase.c.
References AddStringJTree(), FALSE, MAX_CONTENT_LEN, NULL, TestAddNode(), udp_nocase_data::udp_content, and UDPNoCaseTree.
Referenced by InitTestUDPNoCase().
int UDPDecoderID |
Definition at line 19 of file test_udp_nocase.c.
Definition at line 20 of file test_udp_nocase.c.
Referenced by InitTestUDPNoCase(), TestUDPNoCase(), TestUDPNoCaseFinishedSetup(), and UDPNoCaseAddNode().