#include "test_udp_regex.h"#include <stdio.h>#include <string.h>#include <stdlib.h>#include "../decoders/decode_udp.h"#include "../packets/packet.h"#include <arpa/inet.h>Go to the source code of this file.
Data Structures | |
| struct | udp_regexp_data |
Typedefs | |
| typedef udp_regexp_data | UDPRegExpData |
Functions | |
| int | TestUDPRegExp (int PacketSlot, TestNode *Nodes) |
| int | UDPRegExpAddNode (int TestID, int RuleID, char *Args) |
| int | InitTestUDPRegExp () |
Variables | |
| GlobalVars | Globals |
| int | UDPDecoderID |
| typedef struct udp_regexp_data UDPRegExpData |
| int InitTestUDPRegExp | ( | ) |
Definition at line 120 of file test_udp_regex.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, test_rec::ShortName, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestUDPRegExp(), TRUE, UDPDecoderID, and UDPRegExpAddNode().
Referenced by InitTests().
| int TestUDPRegExp | ( | int | PacketSlot, | |
| TestNode * | Nodes | |||
| ) |
Definition at line 25 of file test_udp_regex.c.
References packet_rec::BeginData, test_node::Data, FALSE, Globals, match(), test_node::Next, global_vars::NumRules, global_vars::Packets, packet_rec::RawPacket, udp_regexp_data::re, test_node::RuleID, RuleIsActive(), SetRuleInactive(), and TRUE.
Referenced by InitTestUDPRegExp().
| int UDPRegExpAddNode | ( | int | TestID, | |
| int | RuleID, | |||
| char * | Args | |||
| ) |
Definition at line 94 of file test_udp_regex.c.
References MAX_CONTENT_LEN, udp_regexp_data::re, TestAddNode(), and udp_regexp_data::udp_content.
Referenced by InitTestUDPRegExp().
| int UDPDecoderID |
Definition at line 19 of file test_udp_regex.c.
1.5.2