packets/packet_tcpdump.h File Reference

#include "../config.h"
#include "../engine/hlbr.h"
#include "packet.h"

Go to the source code of this file.

Functions

int OpenInterfaceTCPDump (int InterfaceID)
int ReadPacketTCPDump (int InterfaceID)
int WritePacketTCPDump (int InterfaceID, unsigned char *Packet, int PacketLen)
int LoopThreadTCPDump (int InterfaceID)


Function Documentation

int LoopThreadTCPDump ( int  InterfaceID  ) 

Definition at line 172 of file packet_tcpdump.c.

References FALSE, Globals, global_vars::Interfaces, interface_rec::Name, NULL, TCPDumpLoopFunc(), interface_rec::Thread, and interface_rec::ThreadID.

Referenced by StartInterfaceThread().

int OpenInterfaceTCPDump ( int  InterfaceID  ) 

Definition at line 39 of file packet_tcpdump.c.

References FALSE, interface_rec::FD, Globals, global_vars::Interfaces, interface_rec::IsPollable, interface_rec::MTU, interface_rec::Name, and TRUE.

Referenced by OpenInterface().

int ReadPacketTCPDump ( int  InterfaceID  ) 

Definition at line 82 of file packet_tcpdump.c.

References AddPacketToPending(), global_vars::Done, FALSE, interface_rec::FD, GetEmptyPacket(), Globals, packet_rec::InterfaceNum, global_vars::Interfaces, packet_rec::PacketLen, global_vars::Packets, packet_rec::RawPacket, ReturnEmptyPacket(), TRUE, and packet_rec::tv.

Referenced by ReadPacket(), and TCPDumpLoopFunc().

int WritePacketTCPDump ( int  InterfaceID,
unsigned char *  Packet,
int  PacketLen 
)

Definition at line 143 of file packet_tcpdump.c.

References FALSE.

Referenced by WritePacket().


Generated on Sat Jul 7 23:33:11 2007 for HLBR by  doxygen 1.5.2