actions/action_route_sip.c File Reference

#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 Documentation

#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 Documentation

typedef struct action_route_sip ActionRouteSIPRec


Function Documentation

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().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int IPDecoderID

Definition at line 24 of file action_route_sip.c.


Generated on Sat Jul 7 23:33:10 2007 for HLBR by  doxygen 1.5.2