#include "action_route_sip.h"
#include <stdio.h>
#include "../engine/message.h"
#include "../decoders/decode_ip.h"
#include "../routes/route_sip.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_route_sip |
Defines | |
#define | DEBUG |
Typedefs | |
typedef action_route_sip | ActionRouteSIPRec |
Functions | |
void * | RouteSIPParseArgs (char *Args) |
int | RouteSIPMessage (char *Message, void *Data) |
int | RouteSIPAction (int RuleNum, int PacketSlot, void *Data) |
int | InitActionRouteSIP () |
Variables | |
GlobalVars | Globals |
int | IPDecoderID |
#define DEBUG |
Definition at line 14 of file action_route_sip.c.
Referenced by AlertSocketParseArgs(), GetAndLockSavedPackets(), GetEmptyPacket(), HandleIPPacket(), IsInList(), IsInListTime(), MainLoopPoll(), MatchStringTree(), NumListCompare(), PerformActions(), RemoveFromList(), RouteDIP(), RouteSIPParseArgs(), TCPOffsetAddNode(), and WritePacket().
typedef struct action_route_sip ActionRouteSIPRec |
int InitActionRouteSIP | ( | ) |
Definition at line 177 of file action_route_sip.c.
References ACTION_NONE, action_item::ActionFunc, global_vars::ActionItems, CreateAction(), FALSE, GetDecoderByName(), Globals, IPDecoderID, action_item::MessageFunc, action_item::ParseArgs, RouteSIPAction(), RouteSIPMessage(), RouteSIPParseArgs(), and TRUE.
Referenced by InitActions().
int RouteSIPAction | ( | int | RuleNum, | |
int | PacketSlot, | |||
void * | Data | |||
) |
Definition at line 133 of file action_route_sip.c.
References FALSE, GetDataByID(), Globals, action_route_sip::Interface, IPDecoderID, IsInList(), action_route_sip::LocalList, global_vars::Packets, RouteSIPAdd(), action_route_sip::Timeout, and packet_rec::tv.
Referenced by InitActionRouteSIP().
int RouteSIPMessage | ( | char * | Message, | |
void * | Data | |||
) |
Definition at line 121 of file action_route_sip.c.
References TRUE.
Referenced by InitActionRouteSIP().
void* RouteSIPParseArgs | ( | char * | Args | ) |
Definition at line 29 of file action_route_sip.c.
References DEBUG, Globals, global_vars::Interfaces, interface_rec::Name, NULL, and global_vars::NumInterfaces.
Referenced by InitActionRouteSIP().
int IPDecoderID |
Definition at line 24 of file action_route_sip.c.