packet_rec Struct Reference

#include <hlbr.h>


Data Fields

int PacketSlot
unsigned int PacketNum
int InterfaceNum
int TargetInterface
unsigned char * RawPacket
char Pad [2]
unsigned char TypicalPacket [TYPICAL_PACKET_SIZE]
char LargePacket
int PacketLen
unsigned char RuleBits [MAX_RULES/8]
timeval tv
DecoderData DecoderInfo [MAX_DECODER_DEPTH]
int NumDecoderData
int BeginData
char PassRawPacket
int SaveCount
char Status
pthread_mutex_t Mutex
int LockID
port_pairStream


Detailed Description

The packet, as it is stored in memory.

Definition at line 160 of file hlbr.h.


Field Documentation

int packet_rec::PacketSlot

Definition at line 161 of file hlbr.h.

Referenced by DecodeTCPStream(), GetEmptyPacket(), HandleARPPacket(), HandleIPPacket(), RouteBNS(), RouteBroadcast(), RouteDIP(), and RouteMacFilter().

unsigned int packet_rec::PacketNum

Definition at line 162 of file hlbr.h.

Referenced by ApplyMessage(), and ProcessPacket().

int packet_rec::InterfaceNum

Definition at line 164 of file hlbr.h.

Referenced by DecodeInterface(), HandleARPPacket(), HandleIPPacket(), ReadPacketTCPDump(), RebuildPacket(), RouteAndSend(), RouteBNS(), RouteDIP(), RouteInterface(), RouteMacFilter(), RouteSBridge(), and RouteSIP().

int packet_rec::TargetInterface

Definition at line 165 of file hlbr.h.

Referenced by HandleARPPacket(), HandleIPPacket(), RouteAndSend(), RouteARP(), RouteBroadcast(), RouteDIP(), RouteInterface(), RouteMacFilter(), RouteSBridge(), SendARP(), and WritePacket().

unsigned char* packet_rec::RawPacket

Definition at line 167 of file hlbr.h.

Referenced by DecodeARP(), DecodeDNS(), DecodeEthernet(), DecodeICMP(), DecodeIP(), DecodeTCP(), DecodeUDP(), DumpPacketAction(), ReadPacketTCPDump(), RebuildPacket(), ReturnEmptyPacket(), RouteAndSend(), SendARP(), TestTCPContent(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestTCPRegExp(), TestUDPContent(), TestUDPNoCase(), TestUDPRegExp(), and WritePacket().

char packet_rec::Pad[2]

Definition at line 168 of file hlbr.h.

unsigned char packet_rec::TypicalPacket[TYPICAL_PACKET_SIZE]

Definition at line 169 of file hlbr.h.

Referenced by ReturnEmptyPacket(), and SendARP().

char packet_rec::LargePacket

Definition at line 170 of file hlbr.h.

Referenced by RebuildPacket(), and ReturnEmptyPacket().

int packet_rec::PacketLen

Definition at line 171 of file hlbr.h.

Referenced by DecodeTCP(), DumpPacketAction(), ReadPacketTCPDump(), RebuildPacket(), SendARP(), TestTCPContent(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestUDPContent(), TestUDPNoCase(), and WritePacket().

unsigned char packet_rec::RuleBits[MAX_RULES/8]

Definition at line 173 of file hlbr.h.

Referenced by Decode(), ProcessPacket(), RuleIsActive(), SetRuleInactive(), TestIPDst(), TestIPTTL(), TestTCPContent(), TestTCPDst(), TestTCPFlags(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestUDPContent(), TestUDPNoCase(), and TestUDPSrc().

struct timeval packet_rec::tv [read]

Definition at line 174 of file hlbr.h.

Referenced by ApplyMessage(), AssignSessionTCP(), BNSAction(), DecodeIPDefrag(), DumpPacketAction(), HandleIPPacket(), ProcessPacket(), ReadPacketTCPDump(), RebuildPacket(), RouteSIPAction(), and SavePacket().

DecoderData packet_rec::DecoderInfo[MAX_DECODER_DEPTH]

Definition at line 176 of file hlbr.h.

Referenced by Decode(), DecodeEthernet(), GetDataByID(), ReturnEmptyPacket(), TestEthernetDst(), TestEthernetSrc(), TestEthernetType(), TestICMPCode(), TestICMPType(), TestInterfaceName(), TestIPCheck(), TestIPProto(), TestTCPOffset(), TestTCPPort(), and TestTCPSrc().

int packet_rec::NumDecoderData

Definition at line 177 of file hlbr.h.

Referenced by Decode(), GetDataByID(), ReturnEmptyPacket(), TestEthernetDst(), TestEthernetSrc(), TestEthernetType(), TestICMPCode(), TestICMPType(), TestInterfaceName(), TestIPCheck(), TestIPProto(), TestTCPOffset(), TestTCPPort(), and TestTCPSrc().

int packet_rec::BeginData

Definition at line 178 of file hlbr.h.

Referenced by DecodeARP(), DecodeDNS(), DecodeEthernet(), DecodeICMP(), DecodeIP(), DecodeTCP(), DecodeUDP(), TestTCPContent(), TestTCPListContent(), TestTCPListNoCase(), TestTCPNoCase(), TestTCPRegExp(), TestUDPContent(), TestUDPNoCase(), and TestUDPRegExp().

char packet_rec::PassRawPacket

true if we pass this one as is (route it), false to be dropped

Definition at line 181 of file hlbr.h.

Referenced by DecodeIPDefrag(), DropAction(), DropPacket(), and RouteAndSend().

int packet_rec::SaveCount

Definition at line 182 of file hlbr.h.

Referenced by DecodeIPDefrag(), FreeSaved(), GetEmptyPacket(), ReturnEmptyPacket(), and SavePacket().

char packet_rec::Status

where the packet is in the processing loop (see packet.h)

Definition at line 185 of file hlbr.h.

Referenced by AddPacketToPending(), BlockPacket(), DropAction(), GetEmptyPacket(), PopFromPending(), ProcessPacket(), RebuildPacket(), and ReturnEmptyPacket().

pthread_mutex_t packet_rec::Mutex

Definition at line 187 of file hlbr.h.

Referenced by FreeSaved(), GetAndLockSavedPackets(), SavePacket(), and UnlockSavedQuery().

int packet_rec::LockID

Definition at line 188 of file hlbr.h.

Referenced by GetAndLockSavedPackets(), and SavePacket().

struct port_pair* packet_rec::Stream [read]

Definition at line 190 of file hlbr.h.

Referenced by AssignSessionTCP().


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