#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 |
NumList * | SInterfaces [MAX_INTERFACES] |
GlobalVars | Globals |
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().
int ARPDecoderID |
Definition at line 23 of file route_sip.c.
int IPDecoderID |
Definition at line 22 of file route_sip.c.
NumList* SInterfaces[MAX_INTERFACES] |