decoders/decode_arp.c File Reference

#include "decode_arp.h"
#include "decode_ethernet.h"
#include "../packets/packet.h"
#include "../engine/hlbr.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 * DecodeARP (int PacketSlot)
int InitDecoderARP ()

Variables

GlobalVars Globals
int EthernetDecoderID


Function Documentation

void* DecodeARP ( int  PacketSlot  ) 

Apply the ARP decoding.

Definition at line 19 of file decode_arp.c.

References ARP_OP_REPLY, ARP_OP_REQUEST, packet_rec::BeginData, DBG, DEBUGPATH, ETHERNET_TYPE_ARP, arp_data::EthernetARPHeader, EthernetDecoderID, GetDataByID(), Globals, arp_data::Header, MALLOC, NULL, arp_header::Operation, global_vars::Packets, PRINTERROR, PRINTERROR1, PRINTERROR6, packet_rec::RawPacket, arp_ether_ip::SenderIP, arp_ether_ip::SenderMac, arp_ether_ip::TargetIP, and arp_ether_ip::TargetMac.

Referenced by InitDecoderARP().

int InitDecoderARP (  ) 

Set up the ARP decoder.

Definition at line 102 of file decode_arp.c.

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

Referenced by InitDecoders().


Variable Documentation

int EthernetDecoderID

Definition at line 14 of file decode_arp.c.

Referenced by DecodeARP(), DecodeIP(), HandleARPPacket(), HandleIPPacket(), InitDecoderARP(), InitDecoderIP(), InitMacFilter(), InitRouteBNS(), InitRouteBroadcast(), InitTestEthernetDst(), InitTestEthernetSrc(), InitTestEthernetType(), RouteBroadcast(), RouteMacFilter(), TestEthernetDst(), TestEthernetSrc(), and TestEthernetType().

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