decoders/decode_ip.c File Reference

#include "decode_ip.h"
#include "decode_ethernet.h"
#include "../packets/packet.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Functions

void * DecodeIP (int PacketSlot)
int InitDecoderIP ()

Variables

GlobalVars Globals
int EthernetDecoderID


Function Documentation

void* DecodeIP ( int  PacketSlot  ) 

Definition at line 18 of file decode_ip.c.

References packet_rec::BeginData, ip_header::daddr, DEBUGPATH, ETHERNET_TYPE_IP, EthernetDecoderID, GetDataByID(), Globals, ip_data::Header, ip_header::ihl, NULL, global_vars::Packets, packet_rec::RawPacket, and ip_header::saddr.

Referenced by InitDecoderIP().

int InitDecoderIP (  ) 

Definition at line 61 of file decode_ip.c.

References CreateDecoder(), DEBUGPATH, decoder_rec::DecodeFunc, DecodeIP(), DECODER_NONE, DecoderAddDecoder(), global_vars::Decoders, EthernetDecoderID, FALSE, GetDecoderByName(), Globals, and TRUE.

Referenced by InitDecoders().


Variable Documentation

int EthernetDecoderID

Definition at line 13 of file decode_ip.c.

GlobalVars Globals

Definition at line 41 of file hlbr.c.


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