global_vars Struct Reference

#include <hlbr.h>


Data Fields

char * SensorName
int SensorID
char Done
char UseThreads
char ParseOnly
char * ConfigFilename
char * RulesFilename
char * LogDir
int PacketLimit
MessageItemAlertHeader
unsigned int AlertCount
PacketRec Packets [MAX_PACKETS]
int IdleCount
int PendingCount
int SavedCount
int AllocatedCount
int ProcessingCount
RuleRec Rules [MAX_RULES]
int NumRules
InterfaceRec Interfaces [MAX_INTERFACES]
int NumInterfaces
DecoderRec Decoders [MAX_DECODERS]
int NumDecoders
int DecoderRoot
ModuleRec Modules [MAX_MODULES]
int NumModules
TestRec Tests [MAX_TESTS]
int NumTests
ActionItem ActionItems [MAX_ACTION_ITEMS]
int NumActionItems
ActionRec Actions [MAX_ACTIONS]
int NumActions
RouteRec Routes [MAX_ACTIONS]
int NumRoutes
MangleRec Mangles [MAX_ACTIONS]
int NumMangles
GlobalList Lists [MAX_LISTS]
int NumLists
TimerRec Timers [MAX_TIMERS]
FuncListShutdownFuncs
int PacketsPerSec
int TCPPerSec
int UDPPerSec
unsigned char logSession_StartEnd
unsigned char logSession_All
LogFileRec logSessionFile


Detailed Description

Definition at line 336 of file hlbr.h.


Field Documentation

char* global_vars::SensorName

Definition at line 337 of file hlbr.h.

Referenced by ParseSystem().

int global_vars::SensorID

Definition at line 338 of file hlbr.h.

Referenced by ParseSystem().

char global_vars::Done

Definition at line 340 of file hlbr.h.

Referenced by HandleSignal(), MainLoopPoll(), MainLoopThreaded(), ProcessPacket(), ProcessPacketThread(), ReadPacketTCPDump(), and TCPDumpLoopFunc().

char global_vars::UseThreads

Definition at line 341 of file hlbr.h.

Referenced by EMailMessage(), hlbr_mutex_lock(), hlbr_mutex_trylock(), hlbr_mutex_unlock(), main(), MainLoop(), ParseConfig(), and ParseSystem().

char global_vars::ParseOnly

Definition at line 342 of file hlbr.h.

Referenced by main(), and ParseArgs().

char* global_vars::ConfigFilename

Definition at line 343 of file hlbr.h.

Referenced by ParseArgs(), and ParseConfig().

char* global_vars::RulesFilename

Definition at line 344 of file hlbr.h.

Referenced by main(), ParseArgs(), and ParseRules().

char* global_vars::LogDir

Definition at line 345 of file hlbr.h.

Referenced by AlertFileParseArgs(), DumpPacketParseArgs(), and ParseArgs().

int global_vars::PacketLimit

Definition at line 346 of file hlbr.h.

Referenced by main(), ParseArgs(), and ProcessPacket().

MessageItem* global_vars::AlertHeader

Definition at line 347 of file hlbr.h.

Referenced by AlertConsoleAction(), AlertFileAction(), AlertListenSocketAction(), AlertSocketAction(), and ParseSystem().

unsigned int global_vars::AlertCount

Definition at line 348 of file hlbr.h.

Referenced by ApplyMessage(), and PerformActions().

PacketRec global_vars::Packets[MAX_PACKETS]

Definition at line 350 of file hlbr.h.

Referenced by AddPacketToPending(), AlertConsoleAction(), AlertEMailAction(), AlertFileAction(), AlertListenSocketAction(), AlertSocketAction(), AlertSyslogAction(), ApplyMessage(), AssignSessionTCP(), BlockPacket(), BNSAction(), Decode(), DecodeARP(), DecodeDNS(), DecodeEthernet(), DecodeICMP(), DecodeInterface(), DecodeIP(), DecodeIPDefrag(), DecodeTCP(), DecodeTCPStream(), DecodeUDP(), DropAction(), DropPacket(), DumpPacketAction(), FreeSaved(), GetAndLockSavedPackets(), GetDataByID(), GetEmptyPacket(), HandleARPPacket(), HandleIPPacket(), PerformActions(), PopFromPending(), ProcessPacket(), ReadPacketTCPDump(), RebuildPacket(), ReturnEmptyPacket(), RouteAndSend(), RouteARP(), RouteBNS(), RouteBroadcast(), RouteDIP(), RouteInterface(), RouteMacFilter(), RouteSBridge(), RouteSIP(), RouteSIPAction(), RuleIsActive(), SavePacket(), SendARP(), SetRuleInactive(), TestEthernetDst(), TestEthernetSrc(), TestEthernetType(), TestICMPCode(), TestICMPType(), TestInterfaceName(), TestIPCheck(), TestIPDst(), TestIPProto(), TestIPSrc(), TestIPTTL(), TestTCPContent(), TestTCPDst(), TestTCPDstOld(), TestTCPFlags(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestTCPOffset(), TestTCPPort(), TestTCPRegExp(), TestTCPSrc(), TestUDPContent(), TestUDPDst(), TestUDPNoCase(), TestUDPRegExp(), TestUDPSrc(), UnlockSavedQuery(), and WritePacket().

int global_vars::IdleCount

Definition at line 351 of file hlbr.h.

Referenced by IdleFunc(), main(), and ReturnEmptyPacket().

int global_vars::PendingCount

Definition at line 352 of file hlbr.h.

Referenced by AddPacketToPending(), IdleFunc(), and PopFromPending().

int global_vars::SavedCount

Definition at line 353 of file hlbr.h.

Referenced by FreeSaved(), IdleFunc(), and TimeoutSavedPackets().

int global_vars::AllocatedCount

Definition at line 354 of file hlbr.h.

Referenced by AddPacketToPending(), IdleFunc(), and ReturnEmptyPacket().

int global_vars::ProcessingCount

Definition at line 355 of file hlbr.h.

Referenced by IdleFunc(), PopFromPending(), and ReturnEmptyPacket().

RuleRec global_vars::Rules[MAX_RULES]

Definition at line 357 of file hlbr.h.

Referenced by AlertConsoleAction(), AlertEMailAction(), AlertFileAction(), AlertListenSocketAction(), AlertSocketAction(), AlertSyslogAction(), LogMessageAllActions(), ParseRule(), and PerformActions().

int global_vars::NumRules

Definition at line 358 of file hlbr.h.

Referenced by AddToTree(), AddToTreeSorted(), Decode(), DecoderSetDependency(), IPDstAddNode(), IPSrcAddNode(), IPTTLAddNode(), main(), MatchStrings(), MatchStringTree(), ParseRule(), PerformActions(), ProcessPacket(), RuleIsActive(), SetRuleInactive(), TCPDstAddNode(), TCPFlagsAddNode(), TestEthernetDst(), TestEthernetSrc(), TestEthernetType(), TestICMPCode(), TestICMPType(), TestIPCheck(), TestIPDst(), TestIPProto(), TestIPSrc(), TestIPTTL(), TestSetDependency(), TestTCPContent(), TestTCPDst(), TestTCPDstOld(), TestTCPFlags(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestTCPPort(), TestTCPRegExp(), TestTCPSrc(), TestUDPContent(), TestUDPDst(), TestUDPNoCase(), TestUDPRegExp(), TestUDPSrc(), and UDPSrcAddNode().

InterfaceRec global_vars::Interfaces[MAX_INTERFACES]

Definition at line 360 of file hlbr.h.

Referenced by DecodeInterface(), GetInterfaceByName(), InterfaceNameAddNode(), LoopThreadTCPDump(), MainLoop(), MainLoopPoll(), OpenInterface(), OpenInterfaceTCPDump(), ParseInterface(), ReadPacket(), ReadPacketTCPDump(), RouteAndSend(), RouteBNSAddNode(), RouteDIP(), RouteDIPAddNode(), RouteMacFilter(), RouteMacFilterAddNode(), RouteSIP(), RouteSIPAddNode(), RouteSIPParseArgs(), StartInterfaceThread(), and WritePacket().

int global_vars::NumInterfaces

Definition at line 361 of file hlbr.h.

Referenced by GetInterfaceByName(), InterfaceNameAddNode(), MainLoop(), MainLoopPoll(), MainLoopThreaded(), OpenInterfaces(), ParseInterface(), RouteDIP(), RouteDIPAddNode(), RouteMacFilterAddNode(), RouteSIPAddNode(), RouteSIPParseArgs(), and WritePacket().

DecoderRec global_vars::Decoders[MAX_DECODERS]

Definition at line 363 of file hlbr.h.

Referenced by CreateDecoder(), Decode(), DecoderAddDecoder(), DecoderAddModule(), DecoderAddTest(), DecoderSetDependency(), GetDecoderByName(), InitDecoderARP(), InitDecoderDNS(), InitDecoderEthernet(), InitDecoderICMP(), InitDecoderInterface(), InitDecoderIP(), InitDecoderIPDefrag(), InitDecoders(), InitDecoderTCP(), InitDecoderTCPStream(), InitDecoderUDP(), ParseDecoderLine(), and TestAddNode().

int global_vars::NumDecoders

Definition at line 364 of file hlbr.h.

Referenced by CreateDecoder(), and GetDecoderByName().

int global_vars::DecoderRoot

Definition at line 365 of file hlbr.h.

Referenced by InitDecoders(), and ProcessPacket().

ModuleRec global_vars::Modules[MAX_MODULES]

Definition at line 367 of file hlbr.h.

Referenced by DecoderAddModule().

int global_vars::NumModules

Definition at line 368 of file hlbr.h.

TestRec global_vars::Tests[MAX_TESTS]

Definition at line 370 of file hlbr.h.

Referenced by BindTestToDecoder(), CreateTest(), DecoderAddTest(), GetTestByName(), InitTestEthernetDst(), InitTestEthernetSrc(), InitTestEthernetType(), InitTestICMPCode(), InitTestICMPType(), InitTestInterfaceName(), InitTestIPCheck(), InitTestIPDst(), InitTestIPProto(), InitTestIPSrc(), InitTestIPTTL(), InitTestTCPContent(), InitTestTCPDst(), InitTestTCPFlags(), InitTestTCPListContent(), InitTestTCPListNoCase(), InitTestTCPNoCase(), InitTestTCPOffset(), InitTestTCPPort(), InitTestTCPRegExp(), InitTestTCPSrc(), InitTestUDPContent(), InitTestUDPDst(), InitTestUDPNoCase(), InitTestUDPRegExp(), InitTestUDPSrc(), TestAddNode(), TestSetDependency(), and TestsFinishSetup().

int global_vars::NumTests

Definition at line 371 of file hlbr.h.

Referenced by CreateTest(), GetTestByName(), TestSetDependency(), and TestsFinishSetup().

ActionItem global_vars::ActionItems[MAX_ACTION_ITEMS]

Definition at line 373 of file hlbr.h.

Referenced by CreateAction(), GetActionByName(), InitActionAlertConsole(), InitActionAlertEMail(), InitActionAlertFile(), InitActionAlertListenSocket(), InitActionAlertSocket(), InitActionAlertSyslog(), InitActionBNS(), InitActionDrop(), InitActionDumpPacket(), InitActionRouteSIP(), LogMessageAllActions(), ParseAction(), and PerformActions().

int global_vars::NumActionItems

Definition at line 374 of file hlbr.h.

Referenced by CreateAction(), and GetActionByName().

ActionRec global_vars::Actions[MAX_ACTIONS]

Definition at line 376 of file hlbr.h.

Referenced by LogMessageAllActions(), ParseAction(), ParseRule(), PerformActions(), and SetAction().

int global_vars::NumActions

Definition at line 377 of file hlbr.h.

Referenced by LogMessageAllActions(), ParseAction(), and SetAction().

RouteRec global_vars::Routes[MAX_ACTIONS]

Definition at line 379 of file hlbr.h.

Referenced by CreateRoute(), GetRouteByName(), InitMacFilter(), InitRouteARP(), InitRouteBNS(), InitRouteBroadcast(), InitRouteDIP(), InitRouteInterface(), InitRouteSIP(), InitSBridge(), ParseRouting(), Route(), RouteAdd(), and RouteSIPAdd().

int global_vars::NumRoutes

Definition at line 380 of file hlbr.h.

Referenced by CreateRoute(), GetRouteByName(), Route(), RouteAdd(), and RouteAndSend().

MangleRec global_vars::Mangles[MAX_ACTIONS]

Definition at line 382 of file hlbr.h.

int global_vars::NumMangles

Definition at line 383 of file hlbr.h.

GlobalList global_vars::Lists[MAX_LISTS]

Definition at line 385 of file hlbr.h.

Referenced by AddIPRanges(), GetListByName(), and ParseList().

int global_vars::NumLists

Definition at line 386 of file hlbr.h.

Referenced by GetListByName(), and ParseList().

TimerRec global_vars::Timers[MAX_TIMERS]

Definition at line 388 of file hlbr.h.

Referenced by CreateTimer(), and HandleTimers().

FuncList* global_vars::ShutdownFuncs

Definition at line 390 of file hlbr.h.

Referenced by AddShutdownHandler(), and CallShutdownHandlers().

int global_vars::PacketsPerSec

Definition at line 393 of file hlbr.h.

Referenced by ListenSocketTimerFunc(), and ProcessPacket().

int global_vars::TCPPerSec

Definition at line 394 of file hlbr.h.

Referenced by ListenSocketTimerFunc(), and ProcessPacket().

int global_vars::UDPPerSec

Definition at line 395 of file hlbr.h.

Referenced by ListenSocketTimerFunc(), and ProcessPacket().

unsigned char global_vars::logSession_StartEnd

Definition at line 398 of file hlbr.h.

Referenced by FindPortPair(), ParseArgs(), and RemovePort().

unsigned char global_vars::logSession_All

Definition at line 399 of file hlbr.h.

Referenced by FindPortPair(), and ParseArgs().

LogFileRec global_vars::logSessionFile

Definition at line 400 of file hlbr.h.

Referenced by FindPortPair(), ParseArgs(), and RemovePort().


The documentation for this struct was generated from the following file:
Generated on Sat Jul 7 23:33:11 2007 for HLBR by  doxygen 1.5.2