#include "test_tcp_port.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../decoders/decode_tcp.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 | tcp_port_data |
Typedefs | |
typedef tcp_port_data | TCPPortData |
Functions | |
int | TestTCPPort (int PacketSlot, TestNode *Nodes) |
int | TCPPortAddNode (int TestID, int RuleID, char *Args) |
int | InitTestTCPPort () |
Variables | |
GlobalVars | Globals |
int | TCPDecoderID |
typedef struct tcp_port_data TCPPortData |
int InitTestTCPPort | ( | ) |
Definition at line 139 of file test_tcp_port.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, test_rec::ShortName, TCPDecoderID, TCPPortAddNode(), TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestTCPPort(), and TRUE.
Referenced by InitTests().
int TCPPortAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 111 of file test_tcp_port.c.
References AddRangesString(), FALSE, InitNumList(), LIST_TYPE_NORMAL, NULL, tcp_port_data::Ports, and TestAddNode().
Referenced by InitTestTCPPort().
int TestTCPPort | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 24 of file test_tcp_port.c.
References test_node::Data, decoder_data::Data, decoder_data::DecoderID, packet_rec::DecoderInfo, tcp_header::dest, FALSE, Globals, tcp_data::Header, IsInList(), test_node::Next, packet_rec::NumDecoderData, global_vars::NumRules, global_vars::Packets, tcp_port_data::Ports, test_node::RuleID, RuleIsActive(), SetRuleInactive(), tcp_header::source, TCPDecoderID, and TRUE.
Referenced by InitTestTCPPort().
int TCPDecoderID |
Definition at line 19 of file test_tcp_port.c.