routes/route_sip.c File Reference

#include "route_sip.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "../packets/packet.h"
#include "../engine/num_list.h"
#include "../decoders/decode.h"
#include "../decoders/decode_ip.h"
#include "../decoders/decode_arp.h"
#include <arpa/inet.h>
#include <netinet/in.h>

Go to the source code of this file.

Functions

int RouteSIP (int PacketSlot)
int RouteSIPAddNode (int RouteID, char *Args)
int InitRouteSIP ()
int RouteSIPAdd (unsigned int SIP, int Interface, long UntilTime)

Variables

int IPDecoderID
int ARPDecoderID
NumListSInterfaces [MAX_INTERFACES]
GlobalVars Globals


Function Documentation

int InitRouteSIP (  ) 

Definition at line 168 of file route_sip.c.

References route_rec::AddNode, ARPDecoderID, CreateRoute(), DECODER_NONE, FALSE, GetDecoderByName(), Globals, IPDecoderID, MAX_INTERFACES, ROUTE_NONE, route_rec::RouteFunc, global_vars::Routes, RouteSIP(), RouteSIPAddNode(), SInterfaces, and TRUE.

Referenced by InitRoutes().

int RouteSIP ( int  PacketSlot  ) 

Definition at line 33 of file route_sip.c.

References ARP_OP_REPLY, ARPDecoderID, GetDataByID(), Globals, packet_rec::InterfaceNum, global_vars::Interfaces, IPDecoderID, interface_rec::Name, global_vars::Packets, and ROUTE_RESULT_CONTINUE.

Referenced by InitRouteSIP().

int RouteSIPAdd ( unsigned int  SIP,
int  Interface,
long  UntilTime 
)

Definition at line 201 of file route_sip.c.

References route_rec::Active, FALSE, GetRouteByName(), Globals, InitNumList(), IsInList(), LIST_TYPE_NORMAL, global_vars::Routes, SInterfaces, and TRUE.

Referenced by RouteSIPAction().

int RouteSIPAddNode ( int  RouteID,
char *  Args 
)

Definition at line 109 of file route_sip.c.

References FALSE, Globals, global_vars::Interfaces, interface_rec::Name, and global_vars::NumInterfaces.

Referenced by InitRouteSIP().


Variable Documentation

int ARPDecoderID

Definition at line 23 of file route_sip.c.

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int IPDecoderID

Definition at line 22 of file route_sip.c.

NumList* SInterfaces[MAX_INTERFACES]

Definition at line 24 of file route_sip.c.

Referenced by InitRouteSIP(), and RouteSIPAdd().


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