#include "action_bns.h"
#include <stdio.h>
#include "../engine/message.h"
#include "../decoders/decode_ip.h"
#include "../routes/route_bns.h"
#include "../actions/action.h"
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Go to the source code of this file.
Data Structures | |
struct | action_bns |
Typedefs | |
typedef action_bns | ActionBNSRec |
Functions | |
void * | BNSParseArgs (char *Args) |
int | BNSMessage (char *Message, void *Data) |
int | BNSAction (int RuleNum, int PacketSlot, void *Data) |
int | InitActionBNS () |
Variables | |
GlobalVars | Globals |
int | IPDecoderID |
typedef struct action_bns ActionBNSRec |
int BNSAction | ( | int | RuleNum, | |
int | PacketSlot, | |||
void * | Data | |||
) |
Definition at line 91 of file action_bns.c.
References AddRangeTime(), BNSRerouteList, FALSE, GetDataByID(), Globals, action_bns::GreenList, IPDecoderID, IsInList(), LogMessageAllActions(), global_vars::Packets, action_bns::TimeOut, and packet_rec::tv.
Referenced by InitActionBNS().
int BNSMessage | ( | char * | Message, | |
void * | Data | |||
) |
void* BNSParseArgs | ( | char * | Args | ) |
Definition at line 28 of file action_bns.c.
References AddIPRanges(), action_bns::GreenList, InitNumList(), LIST_TYPE_NORMAL, NULL, and action_bns::TimeOut.
Referenced by InitActionBNS().
int InitActionBNS | ( | ) |
Definition at line 136 of file action_bns.c.
References ACTION_NONE, action_item::ActionFunc, global_vars::ActionItems, BNSAction(), BNSMessage(), BNSParseArgs(), CreateAction(), FALSE, GetDecoderByName(), Globals, IPDecoderID, action_item::MessageFunc, action_item::ParseArgs, and TRUE.
Referenced by InitActions().
int IPDecoderID |
Definition at line 23 of file action_bns.c.
Referenced by AssignSessionTCP(), BNSAction(), DecodeICMP(), DecodeIPDefrag(), DecodeTCP(), DecodeUDP(), InitActionBNS(), InitActionRouteSIP(), InitDecoderICMP(), InitDecoderIPDefrag(), InitDecoderTCP(), InitDecoderUDP(), InitRouteBNS(), InitRouteDIP(), InitRouteSIP(), InitSession(), InitTestIPCheck(), InitTestIPDst(), InitTestIPProto(), InitTestIPSrc(), InitTestIPTTL(), RebuildPacket(), RouteBNS(), RouteDIP(), RouteSIP(), RouteSIPAction(), TestIPCheck(), TestIPDst(), TestIPProto(), TestIPSrc(), and TestIPTTL().