#include "../config.h"
#include "hlbr.h"
Go to the source code of this file.
Functions | |
int | MainLoop () |
int | RouteAndSend (int) |
int MainLoop | ( | ) |
Main loop, start handling packets. Calls one of the two other functions: MainLoopThreaded() if HLBR is running in multi-thread mode, or MainLoopPolling(), if in single-thread mode.
Definition at line 350 of file main_loop.c.
References DEBUGPATH, FALSE, Globals, global_vars::Interfaces, interface_rec::IsPollable, MainLoopPoll(), global_vars::NumInterfaces, PRINTERROR, and global_vars::UseThreads.
Referenced by main().
int RouteAndSend | ( | int | PacketSlot | ) |
Apply the routing and send out the packet.
Definition at line 55 of file main_loop.c.
References DBG, DEBUGPATH, FALSE, Globals, packet_rec::InterfaceNum, global_vars::Interfaces, interface_rec::Name, global_vars::NumRoutes, global_vars::Packets, packet_rec::PassRawPacket, PRINTERROR, packet_rec::RawPacket, Route(), packet_rec::TargetInterface, TRUE, and WritePacket().
Referenced by ProcessPacket().