Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

debug.h File Reference

Go to the source code of this file.

Defines

#define DEBUG_VARIABLE   "SNORT_DEBUG"
#define DEBUG_ALL   0xffffffff
#define DEBUG_INIT   0x00000001
#define DEBUG_CONFIGRULES   0x00000002
#define DEBUG_PLUGIN   0x00000004
#define DEBUG_DATALINK   0x00000008
#define DEBUG_IP   0x00000010
#define DEBUG_TCPUDP   0x00000020
#define DEBUG_DECODE   0x00000040
#define DEBUG_LOG   0x00000080
#define DEBUG_MSTRING   0x00000100
#define DEBUG_PARSER   0x00000200
#define DEBUG_PLUGBASE   0x00000400
#define DEBUG_RULES   0x00000800
#define DEBUG_FLOW   0x00001000
#define DEBUG_STREAM   0x00002000
#define DEBUG_PATTERN_MATCH   0x00004000
#define DEBUG_DETECT   0x00008000
#define DEBUG_CONVERSATION   0x00010000
#define DEBUG_FRAG   0x00020000
#define DEBUG_HTTP_DECODE   0x00040000
#define DEBUG_PORTSCAN2   0x00080000
#define DEBUG_RPC   0x00100000
#define DEBUG_FLOWSYS   0x00200000
#define DEBUG_HTTPINSPECT   0x00400000
#define DEBUG_STREAM_STATE   0x00800000
#define DEBUG_ASN1   0x01000000
#define DEBUG_STICKYDROP   0x02000000
#define DEBUG_CLAMAV   0x04000000
#define DEBUG_BAITANDSWITCH   0x08000000
#define DEBUG_WRAP(code)


Define Documentation

#define DEBUG_ALL   0xffffffff
 

Definition at line 26 of file debug.h.

#define DEBUG_ASN1   0x01000000
 

Definition at line 51 of file debug.h.

Referenced by Asn1Detect().

#define DEBUG_BAITANDSWITCH   0x08000000
 

Definition at line 54 of file debug.h.

#define DEBUG_CLAMAV   0x04000000
 

Definition at line 53 of file debug.h.

#define DEBUG_CONFIGRULES   0x00000002
 

Definition at line 28 of file debug.h.

Referenced by AddOptFuncToList(), AddRspFuncToList(), AddrToFunc(), AddRuleFuncToList(), ContinuationCheck(), ExpandVars(), IntegrityCheckRules(), IpAddrSetParse(), ParseConfig(), ParseCount(), ParseMessage(), ParsePreprocessor(), ParseRule(), ParseRuleOptions(), ParseRulesFile(), ParseRuleTypeDeclaration(), PortToFunc(), ProcessAlertFileOption(), ProcessFileOption(), ProcessHeadNode(), ProcessIP(), and SetupRTNFuncList().

#define DEBUG_CONVERSATION   0x00010000
 

Definition at line 43 of file debug.h.

Referenced by ConvAlloc(), ConvCompareFunc(), ConvFunc(), ConvGetSession(), FillStateRecord(), PruneConvCache(), PrunePortscanners(), PruneTargets(), and SetupConv().

#define DEBUG_DATALINK   0x00000008
 

Definition at line 30 of file debug.h.

#define DEBUG_DECODE   0x00000040
 

Definition at line 33 of file debug.h.

Referenced by DecodeARP(), DecodeChdlcPkt(), DecodeEAP(), DecodeEapol(), DecodeEapolKey(), DecodeEthLoopback(), DecodeEthPkt(), DecodeFDDIPkt(), DecodeI4LCiscoIPPkt(), DecodeI4LRawIPPkt(), DecodeICMP(), DecodeIEEE80211Pkt(), DecodeIP(), DecodeIPOnly(), DecodeIPOptions(), DecodeIPV6(), DecodeIPX(), DecodeNullPkt(), DecodeOldPflog(), DecodePflog(), DecodePPPoEPkt(), DecodePppPkt(), DecodePppPktEncapsulated(), DecodePppSerialPkt(), DecodeRawPkt(), DecodeSlipPkt(), DecodeTCP(), DecodeTCPOptions(), DecodeTRPkt(), DecodeUDP(), DecodeVlan(), IPHdrTests(), and ProcessPacket().

#define DEBUG_DETECT   0x00008000
 

Definition at line 42 of file debug.h.

Referenced by ActivateAction(), AlertAction(), CallAlertPlugins(), CheckAddrPort(), CheckBidirectional(), CheckDstIP(), CheckDstIPNotEq(), CheckDstPortEqual(), CheckDstPortNotEq(), CheckSrcIP(), CheckSrcIPNotEq(), CheckSrcPortEqual(), CheckSrcPortNotEq(), DropAction(), DynamicAction(), fpEvalOTN(), fpEvalPacket(), fpEvalRTN(), fpEvalRTNSW(), fpLogEvent(), IntegrityCheck(), LogAction(), otnx_match(), PassAction(), Preprocess(), and TriggerResponses().

#define DEBUG_FLOW   0x00001000
 

Definition at line 39 of file debug.h.

Referenced by AddTagNode(), CheckTagging(), CheckTagList(), OpenLogFile(), ParseTag(), PrintEmbeddedTCPHeader(), SetTags(), TagHost(), TagSession(), UnifiedCleanExit(), and UnifiedRestart().

#define DEBUG_FLOWSYS   0x00200000
 

Definition at line 48 of file debug.h.

#define DEBUG_FRAG   0x00020000
 

Definition at line 44 of file debug.h.

Referenced by AddFragNode(), CompletionTraverse(), DupFragNode(), Frag2CompareFunc(), Frag2Defrag(), Frag2Init(), Frag3AutoFree(), Frag3CheckFirstLast(), Frag3Defrag(), Frag3DeleteFrag(), Frag3DeleteTracker(), Frag3Expire(), Frag3FraglistDeleteNode(), Frag3GetTracker(), Frag3Init(), Frag3Insert(), Frag3IsComplete(), Frag3NewTracker(), Frag3PreallocPop(), Frag3PreallocPush(), Frag3Prune(), Frag3Rebuild(), Frag3UserFree(), FragIsComplete(), GetFragTracker(), InsertFrag(), PruneFragCache(), RebuildFrag(), RebuildTraverse(), SetupFrag2(), and SetupFrag3().

#define DEBUG_HTTP_DECODE   0x00040000
 

Definition at line 45 of file debug.h.

Referenced by CheckUriPatternMatch().

#define DEBUG_HTTPINSPECT   0x00400000
 

Definition at line 49 of file debug.h.

Referenced by SetupHttpInspect().

#define DEBUG_INIT   0x00000001
 

Definition at line 27 of file debug.h.

Referenced by AlertCSVInit(), AlertCSVParseArgs(), AlertCSVSetup(), AlertFastInit(), AlertFastSetup(), AlertFullInit(), AlertFullSetup(), AlertSyslogInit(), AlertSyslogSetup(), AlertUnixSockInit(), AlertUnixSockSetup(), ARPspoofHostInit(), ARPspoofInit(), DatabaseSetup(), GenHomenet(), GenObfuscationMask(), LogTcpdumpInit(), LogTcpdumpSetup(), OpenAlertFile(), OpenPcap(), ParseCmdLine(), ParseConfig(), ParseRuleOptions(), ParseStream4Args(), ParseSyslogArgs(), ParseTcpdumpArgs(), SetChroot(), SetUidGid(), SetupARPspoof(), SnortMain(), UnifiedAlertInit(), UnifiedLogInit(), and UnifiedSetup().

#define DEBUG_IP   0x00000010
 

Definition at line 31 of file debug.h.

#define DEBUG_LOG   0x00000080
 

Definition at line 34 of file debug.h.

Referenced by AlertCSVCleanExit(), AlertCSVParseArgs(), AlertCSVRestart(), AlertFastCleanExitFunc(), AlertFastRestartFunc(), AlertFull(), AlertFullCleanExit(), AlertFullRestart(), AlertSyslogCleanExit(), AlertSyslogRestart(), AlertUnixSock(), AlertUnixSockCleanExit(), AlertUnixSockRestart(), Insert(), LogAscii(), OldUnifiedLogPacketAlert(), ParseAlertFastArgs(), ParseAlertFullArgs(), ParseAlertUnixSockArgs(), PrintIPPkt(), RealAlertCSV(), RealUnifiedLogAlert(), RealUnifiedLogPacketAlert(), RealUnifiedLogStreamAlert(), Select(), SpoDatabaseCleanExitFunction(), SpoDatabaseRestartFunction(), SpoLogTcpdumpCleanExitFunc(), SpoLogTcpdumpRestartFunc(), TcpdumpInitLogFile(), UnifiedInitAlertFile(), and UnifiedLogPacketAlert().

#define DEBUG_MSTRING   0x00000100
 

Definition at line 35 of file debug.h.

#define DEBUG_PARSER   0x00000200
 

Definition at line 36 of file debug.h.

Referenced by ParsePattern(), ParseReplacePattern(), and PayloadSearchOffset().

#define DEBUG_PATTERN_MATCH   0x00004000
 

Definition at line 41 of file debug.h.

Referenced by ByteJump(), ByteTest(), ByteTestParse(), CheckANDPatternMatch(), CheckORPatternMatch(), CheckUriPatternMatch(), computeDepth(), FTPBounce(), IsDataAt(), mContainsSubstr(), mSearch(), mSearchCI(), mSearchREG(), mSplit(), ParseContentListFile(), ParsePattern(), PayloadSearchDepth(), PayloadSearchDistance(), PayloadSearchInit(), PayloadSearchListInit(), PayloadSearchOffset(), PayloadSearchUri(), PayloadSearchWithin(), pcre_search(), SetupPatternMatch(), SnortPcre(), SnortPcreParse(), and uniSearchReal().

#define DEBUG_PLUGBASE   0x00000400
 

Definition at line 37 of file debug.h.

#define DEBUG_PLUGIN   0x00000004
 

Definition at line 29 of file debug.h.

Referenced by BoFind(), BoGetDirection(), BoInit(), CheckANDPatternMatch(), CheckDsizeEq(), CheckDsizeGT(), CheckDsizeLT(), CheckDsizeRange(), CheckFragBits(), CheckFragOffset(), CheckIpOptions(), CheckRpc(), CheckTcpAckEq(), CheckTCPFlags(), CheckTcpFlags(), CheckTcpSeqEq(), CheckTtlEq(), CheckTtlGT(), CheckTtlLT(), CheckTtlRG(), CheckUriPatternMatch(), ClearConnectionInfoFromSource(), CreateServerList(), DetectARPattacks(), ExpireConnections(), FlowBitsCheck(), FlowBitsParse(), IcmpCodeCheck(), IcmpIdCheck(), IcmpSeqCheck(), IcmpTypeCheck(), IpIdCheckEq(), IpProtoDetectorFunction(), IpSameCheck(), IpTosCheckEq(), LogAsciiInit(), LogAsciiSetup(), LogNullInit(), LogNullSetup(), LogScanInfoToSeparateFile(), LookupIPMacEntryByIP(), NewScan(), NewSource(), NormalizeTelnet(), ParseDsize(), ParseFlowArgs(), ParseIcmpId(), ParseIcmpSeq(), ParseIpId(), ParseIpTos(), ParsePortscanArgs(), ParseRpc(), ParseTag(), ParseTcpAck(), ParseTcpSeq(), ParseTtl(), PerfMonitorInit(), PortscanPreprocFunction(), RegisterOutputPlugin(), RegisterPlugin(), RegisterPreprocessor(), SetupAsn1(), SetupBo(), SetupByteJump(), SetupByteTest(), SetupClientServer(), SetupDsizeCheck(), SetupFlowBits(), SetupFragBits(), SetupFragOffset(), SetupFTPBounce(), SetupIcmpCodeCheck(), SetupIcmpIdCheck(), SetupIcmpSeqCheck(), SetupIcmpTypeCheck(), SetupIpIdCheck(), SetupIpOptionCheck(), SetupIpProto(), SetupIpSameCheck(), SetupIpTosCheck(), SetupIsDataAt(), SetupPerfMonitor(), SetupRpcCheck(), SetupSession(), SetupTcpAckCheck(), SetupTCPFlagCheck(), SetupTcpSeqCheck(), SetupTelNeg(), SetupTemplate(), SetupTtlCheck(), SnortXLINK2STATE(), TCPFlagCheckInit(), TcpWinCheckEq(), TelNegInit(), TemplateDetectorFunction(), TemplateInit(), and UnifiedParseArgs().

#define DEBUG_PORTSCAN2   0x00080000
 

Definition at line 46 of file debug.h.

Referenced by AddPortScanner(), AddTarget(), ConvCompareFunc(), DeletePortscanner(), psCompareFunc(), psWatch(), and SAlert().

#define DEBUG_RPC   0x00100000
 

Definition at line 47 of file debug.h.

Referenced by ConvertRPC(), PreprocRpcDecode(), RpcDecodeInit(), and SetupRpcDecode().

#define DEBUG_RULES   0x00000800
 

Definition at line 38 of file debug.h.

Referenced by DumpChain(), and ParseTag().

#define DEBUG_STICKYDROP   0x02000000
 

Definition at line 52 of file debug.h.

#define DEBUG_STREAM   0x00002000
 

Definition at line 40 of file debug.h.

Referenced by AlertFlushStream(), BuildPacket(), CheckFromClient(), CheckRst(), CleanHashTable(), CreateNewSession(), DropSession(), FlushDeletedStream(), FlushStream(), GetNewSession(), GetSessionFromSplayTree(), isBetween(), LoadStateTable(), NotForStream4(), parse_one_v1(), PrintSessionCache(), PruneCheck(), PruneConvCache(), PruneSessionCache(), ReassembleStream4(), SegmentCleanTraverse(), SetFinSent(), SetupStream4(), StoreStreamPkt(), Stream4Init(), Stream4InitReassembler(), StreamSegmentAdd(), StreamSegmentSub(), TcpAction(), TcpActionAsync(), TraverseFunc(), UpdateState2(), and UpdateStateAsync().

#define DEBUG_STREAM_STATE   0x00800000
 

Definition at line 50 of file debug.h.

Referenced by EvalStateQueue(), GetTcpTimestamp(), QueueState(), ReassembleStream4(), and UpdateState2().

#define DEBUG_TCPUDP   0x00000020
 

Definition at line 32 of file debug.h.

#define DEBUG_VARIABLE   "SNORT_DEBUG"
 

Definition at line 24 of file debug.h.

#define DEBUG_WRAP code   ) 
 

Definition at line 81 of file debug.h.

Referenced by ActivateAction(), AddFragNode(), AddOptFuncToList(), AddPortScanner(), AddRspFuncToList(), AddrToFunc(), AddRuleFuncToList(), AddTagNode(), AddTarget(), AlertAction(), AlertCSVCleanExit(), AlertCSVInit(), AlertCSVParseArgs(), AlertCSVRestart(), AlertCSVSetup(), AlertFastCleanExitFunc(), AlertFastInit(), AlertFastRestartFunc(), AlertFastSetup(), AlertFlushStream(), AlertFull(), AlertFullCleanExit(), AlertFullInit(), AlertFullRestart(), AlertFullSetup(), AlertSyslogCleanExit(), AlertSyslogInit(), AlertSyslogRestart(), AlertSyslogSetup(), AlertUnixSock(), AlertUnixSockCleanExit(), AlertUnixSockInit(), AlertUnixSockRestart(), AlertUnixSockSetup(), ARPspoofHostInit(), ARPspoofInit(), Asn1Detect(), BoFind(), BoGetDirection(), BoInit(), BuildPacket(), ByteJump(), ByteTest(), ByteTestParse(), CallAlertPlugins(), CheckAddrPort(), CheckANDPatternMatch(), CheckBidirectional(), CheckDsizeEq(), CheckDsizeGT(), CheckDsizeLT(), CheckDsizeRange(), CheckDstIP(), CheckDstIPNotEq(), CheckDstPortEqual(), CheckDstPortNotEq(), CheckFragBits(), CheckFragOffset(), CheckFromClient(), CheckIpOptions(), CheckORPatternMatch(), CheckRpc(), CheckRst(), CheckSrcIP(), CheckSrcIPNotEq(), CheckSrcPortEqual(), CheckSrcPortNotEq(), CheckTagging(), CheckTagList(), CheckTcpAckEq(), CheckTCPFlags(), CheckTcpFlags(), CheckTcpSeqEq(), CheckUriPatternMatch(), CleanHashTable(), ClearConnectionInfoFromSource(), CommitTransaction(), CompletionTraverse(), computeDepth(), ContinuationCheck(), ConvAlloc(), ConvCompareFunc(), ConvertRPC(), ConvFunc(), ConvGetSession(), CreateNewSession(), CreateServerList(), DatabaseSetup(), DecodeARP(), DecodeChdlcPkt(), DecodeEAP(), DecodeEapol(), DecodeEapolKey(), DecodeEthLoopback(), DecodeEthPkt(), DecodeFDDIPkt(), DecodeI4LCiscoIPPkt(), DecodeI4LRawIPPkt(), DecodeICMP(), DecodeIEEE80211Pkt(), DecodeIP(), DecodeIPOnly(), DecodeIPOptions(), DecodeIPV6(), DecodeIPX(), DecodeNullPkt(), DecodeOldPflog(), DecodePflog(), DecodePPPoEPkt(), DecodePppPkt(), DecodePppPktEncapsulated(), DecodePppSerialPkt(), DecodeRawPkt(), DecodeSlipPkt(), DecodeTCP(), DecodeTCPOptions(), DecodeTRPkt(), DecodeUDP(), DecodeVlan(), DeletePortscanner(), DetectARPattacks(), DropAction(), DropSession(), DumpChain(), DupFragNode(), DynamicAction(), EvalStateQueue(), ExpandVars(), ExpireConnections(), FillStateRecord(), FlowBitsCheck(), FlowBitsParse(), FlushDeletedStream(), FlushStream(), fpEvalOTN(), fpEvalPacket(), fpEvalRTN(), fpEvalRTNSW(), fpLogEvent(), Frag2CompareFunc(), Frag2Defrag(), Frag2Init(), Frag3AutoFree(), Frag3CheckFirstLast(), Frag3Defrag(), Frag3DeleteFrag(), Frag3DeleteTracker(), Frag3FraglistDeleteNode(), Frag3GetTracker(), Frag3Init(), Frag3Insert(), Frag3IsComplete(), Frag3NewTracker(), Frag3PreallocPop(), Frag3PreallocPush(), Frag3Prune(), Frag3Rebuild(), Frag3UserFree(), FragIsComplete(), FTPBounce(), GenHomenet(), GenObfuscationMask(), GetFragTracker(), GetNewSession(), GetSessionFromSplayTree(), GetTcpTimestamp(), IcmpCodeCheck(), IcmpIdCheck(), IcmpSeqCheck(), IcmpTypeCheck(), Insert(), InsertFrag(), IntegrityCheck(), IntegrityCheckRules(), IpAddrSetParse(), IPHdrTests(), IpIdCheckEq(), IpProtoDetectorFunction(), IpSameCheck(), IpTosCheckEq(), isBetween(), IsDataAt(), LoadStateTable(), LogAction(), LogAscii(), LogAsciiInit(), LogAsciiSetup(), LogNullInit(), LogNullSetup(), LogScanInfoToSeparateFile(), LogTcpdumpInit(), LogTcpdumpSetup(), LookupIPMacEntryByIP(), mContainsSubstr(), mSearch(), mSearchCI(), mSearchREG(), mSplit(), NewScan(), NewSource(), NormalizeTelnet(), NotForStream4(), OldUnifiedLogPacketAlert(), OpenAlertFile(), OpenLogFile(), OpenPcap(), otnx_match(), parse_one_v1(), ParseAlertFastArgs(), ParseAlertFullArgs(), ParseAlertUnixSockArgs(), ParseCmdLine(), ParseConfig(), ParseContentListFile(), ParseCount(), ParseDsize(), ParseFlowArgs(), ParseIcmpId(), ParseIcmpSeq(), ParseIpId(), ParseIpTos(), ParseMessage(), ParsePattern(), ParsePortscanArgs(), ParsePreprocessor(), ParseReplacePattern(), ParseRpc(), ParseRule(), ParseRuleOptions(), ParseRulesFile(), ParseRuleTypeDeclaration(), ParseStream4Args(), ParseSyslogArgs(), ParseTag(), ParseTcpAck(), ParseTcpdumpArgs(), ParseTcpSeq(), ParseTtl(), PassAction(), PayloadSearchDepth(), PayloadSearchDistance(), PayloadSearchInit(), PayloadSearchListInit(), PayloadSearchOffset(), PayloadSearchUri(), PayloadSearchWithin(), pcre_search(), PerfMonitorInit(), PortscanPreprocFunction(), PortToFunc(), Preprocess(), PreprocRpcDecode(), PrintEmbeddedTCPHeader(), PrintIPPkt(), PrintSessionCache(), ProcessAlertFileOption(), ProcessFileOption(), ProcessHeadNode(), ProcessIP(), ProcessPacket(), PruneCheck(), PruneConvCache(), PruneFragCache(), PrunePortscanners(), PruneSessionCache(), PruneTargets(), psWatch(), QueueState(), RealAlertCSV(), RealUnifiedLogAlert(), RealUnifiedLogPacketAlert(), RealUnifiedLogStreamAlert(), ReassembleStream4(), RebuildFrag(), RebuildTraverse(), RegisterOutputPlugin(), RegisterPlugin(), RegisterPreprocessor(), RollbackTransaction(), RpcDecodeInit(), SAlert(), Select(), SetChroot(), SetFinSent(), SetTags(), SetUidGid(), SetupARPspoof(), SetupAsn1(), SetupBo(), SetupByteJump(), SetupByteTest(), SetupClientServer(), SetupConv(), SetupDsizeCheck(), SetupFlowBits(), SetupFrag2(), SetupFrag3(), SetupFragBits(), SetupFragOffset(), SetupFTPBounce(), SetupHttpInspect(), SetupIcmpCodeCheck(), SetupIcmpIdCheck(), SetupIcmpSeqCheck(), SetupIcmpTypeCheck(), SetupIpIdCheck(), SetupIpOptionCheck(), SetupIpProto(), SetupIpSameCheck(), SetupIpTosCheck(), SetupIsDataAt(), SetupPatternMatch(), SetupPerfMonitor(), SetupRpcCheck(), SetupRpcDecode(), SetupRTNFuncList(), SetupSession(), SetupStream4(), SetupTcpAckCheck(), SetupTCPFlagCheck(), SetupTcpSeqCheck(), SetupTelNeg(), SetupTtlCheck(), SnortMain(), SnortPcre(), SnortPcreParse(), SnortXLINK2STATE(), SpoDatabaseCleanExitFunction(), SpoDatabaseRestartFunction(), SpoLogTcpdumpCleanExitFunc(), SpoLogTcpdumpRestartFunc(), StoreStreamPkt(), Stream4Init(), Stream4InitReassembler(), StreamSegmentAdd(), TagHost(), TagSession(), TcpAction(), TcpActionAsync(), TcpdumpInitLogFile(), TCPFlagCheckInit(), TelNegInit(), TraverseFunc(), TriggerResponses(), UnifiedAlertInit(), UnifiedCleanExit(), UnifiedInitAlertFile(), UnifiedLogInit(), UnifiedLogPacketAlert(), UnifiedParseArgs(), UnifiedRestart(), UnifiedSetup(), uniSearchReal(), UpdateState2(), and UpdateStateAsync().


Generated on Sun May 14 14:51:22 2006 by  doxygen 1.4.2