#include "../config.h"
#include "../engine/hlbr.h"
Go to the source code of this file.
Defines | |
#define | ROUTE_NONE -1 |
#define | ROUTE_RESULT_DROP 0 |
#define | ROUTE_RESULT_CONTINUE 1 |
#define | ROUTE_RESULT_DONE 2 |
Functions | |
int | InitRoutes () |
int | CreateRoute (char *Name) |
int | GetRouteByName (char *Name) |
int | RouteAdd (int RouteID, char *Args) |
int | Route (int PacketSlot) |
#define ROUTE_NONE -1 |
Definition at line 7 of file route.h.
Referenced by CreateRoute(), InitMacFilter(), InitRouteARP(), InitRouteBNS(), InitRouteBroadcast(), InitRouteDIP(), InitRouteInterface(), InitRouteSIP(), InitSBridge(), and ParseRouting().
#define ROUTE_RESULT_CONTINUE 1 |
Definition at line 10 of file route.h.
Referenced by RouteARP(), RouteBNS(), RouteBroadcast(), RouteDIP(), RouteInterface(), RouteMacFilter(), RouteSBridge(), and RouteSIP().
#define ROUTE_RESULT_DONE 2 |
Definition at line 11 of file route.h.
Referenced by HandleARPPacket(), HandleIPPacket(), Route(), RouteARP(), RouteBroadcast(), and RouteDIP().
#define ROUTE_RESULT_DROP 0 |
Definition at line 9 of file route.h.
Referenced by HandleARPPacket(), HandleIPPacket(), Route(), RouteBNS(), and RouteMacFilter().
int CreateRoute | ( | char * | Name | ) |
Definition at line 72 of file route.c.
References DEBUGPATH, GetRouteByName(), Globals, route_rec::ID, MAX_NAME_LEN, route_rec::Name, global_vars::NumRoutes, ROUTE_NONE, and global_vars::Routes.
Referenced by InitMacFilter(), InitRouteARP(), InitRouteBNS(), InitRouteBroadcast(), InitRouteDIP(), InitRouteInterface(), InitRouteSIP(), and InitSBridge().
int GetRouteByName | ( | char * | Name | ) |
Definition at line 55 of file route.c.
References DEBUGPATH, Globals, route_rec::Name, global_vars::NumRoutes, and global_vars::Routes.
Referenced by CreateRoute(), ParseRouting(), and RouteSIPAdd().
int InitRoutes | ( | ) |
Definition at line 24 of file route.c.
References DEBUGPATH, FALSE, InitMacFilter(), InitRouteARP(), InitRouteBNS(), InitRouteBroadcast(), InitRouteDIP(), InitRouteInterface(), InitRouteSIP(), InitSBridge(), and TRUE.
Referenced by main().
int Route | ( | int | PacketSlot | ) |
Definition at line 102 of file route.c.
References route_rec::Active, DEBUGPATH, FALSE, Globals, global_vars::NumRoutes, ROUTE_RESULT_DONE, ROUTE_RESULT_DROP, route_rec::RouteFunc, global_vars::Routes, and TRUE.
Referenced by RouteAndSend().
int RouteAdd | ( | int | RouteID, | |
char * | Args | |||
) |
Definition at line 42 of file route.c.
References route_rec::AddNode, DEBUGPATH, FALSE, Globals, global_vars::NumRoutes, and global_vars::Routes.
Referenced by ParseRouting().