decoders/decode_tcp.c File Reference

#include "decode_tcp.h"
#include "decode_ip.h"
#include "../packets/packet.h"
#include "../engine/hlbrlib.h"
#include "../engine/session.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>

Go to the source code of this file.

Functions

void * DecodeTCP (int PacketSlot)
int InitDecoderTCP ()

Variables

GlobalVars Globals
int IPDecoderID


Function Documentation

void* DecodeTCP ( int  PacketSlot  ) 

Apply the TCP decoding.

Definition at line 19 of file decode_tcp.c.

References AssignSessionTCP(), packet_rec::BeginData, tcp_data::Data, tcp_data::DataLen, DBG, DEBUGPATH, tcp_header::dest, tcp_header::doff, GetDataByID(), Globals, tcp_data::Header, IP_PROTO_TCP, IPDecoderID, NULL, packet_rec::PacketLen, global_vars::Packets, PRINTERROR, PRINTERROR1, PRINTERROR3, packet_rec::RawPacket, and tcp_header::source.

Referenced by InitDecoderTCP().

int InitDecoderTCP (  ) 

Set up the TCP decoder.

Definition at line 60 of file decode_tcp.c.

References CreateDecoder(), DBG, DEBUGPATH, decoder_rec::DecodeFunc, DECODER_NONE, DecoderAddDecoder(), global_vars::Decoders, DecodeTCP(), FALSE, GetDecoderByName(), Globals, IPDecoderID, PRINTERROR, and TRUE.

Referenced by InitDecoders().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int IPDecoderID

Definition at line 14 of file decode_tcp.c.


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