#include "test_tcp_flags.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"
#include "../engine/bits.h"
Go to the source code of this file.
Data Structures | |
struct | tcp_flags_data |
Typedefs | |
typedef tcp_flags_data | TCPFlagsData |
Functions | |
int | TestTCPFlags (int PacketSlot, TestNode *Nodes) |
int | TCPFlagsAddNode (int TestID, int RuleID, char *Args) |
int | InitTestTCPFlags () |
Variables | |
GlobalVars | Globals |
int | TCPDecoderID |
TCPFlagsData * | TCPFlagsHead |
typedef struct tcp_flags_data TCPFlagsData |
int InitTestTCPFlags | ( | ) |
Definition at line 243 of file test_tcp_flags.c.
References test_rec::AddNode, BindTestToDecoder(), CreateTest(), FALSE, GetDecoderByName(), Globals, MAX_NAME_LEN, NULL, test_rec::ShortName, TCPDecoderID, TCPFlagsAddNode(), TCPFlagsHead, TEST_NONE, test_rec::TestFunc, global_vars::Tests, TestTCPFlags(), and TRUE.
Referenced by InitTests().
int TCPFlagsAddNode | ( | int | TestID, | |
int | RuleID, | |||
char * | Args | |||
) |
Definition at line 113 of file test_tcp_flags.c.
References tcp_flags_data::Ack, tcp_flags_data::Cwr, tcp_flags_data::Ece, FALSE, tcp_flags_data::Fin, GetBit(), Globals, tcp_flags_data::Next, NULL, global_vars::NumRules, tcp_flags_data::Psh, tcp_flags_data::Rst, tcp_flags_data::RuleBits, SetBit(), tcp_flags_data::Syn, TCPFlagsHead, TestAddNode(), and tcp_flags_data::Urg.
Referenced by InitTestTCPFlags().
int TestTCPFlags | ( | int | PacketSlot, | |
TestNode * | Nodes | |||
) |
Definition at line 36 of file test_tcp_flags.c.
References tcp_flags_data::Ack, tcp_flags_data::Cwr, tcp_flags_data::Ece, FALSE, tcp_flags_data::Fin, GetDataByID(), Globals, tcp_flags_data::Next, NotAndBitFields(), global_vars::NumRules, global_vars::Packets, tcp_flags_data::Psh, tcp_flags_data::Rst, tcp_flags_data::RuleBits, packet_rec::RuleBits, RuleIsActive(), tcp_flags_data::Syn, TCPDecoderID, TCPFlagsHead, TRUE, and tcp_flags_data::Urg.
Referenced by InitTestTCPFlags().
int TCPDecoderID |
Definition at line 30 of file test_tcp_flags.c.
Definition at line 31 of file test_tcp_flags.c.
Referenced by InitTestTCPFlags(), TCPFlagsAddNode(), and TestTCPFlags().