decoders/decode_arp.h File Reference

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

Go to the source code of this file.

Data Structures

struct  arp_header
struct  arp_ether_ip
struct  arp_data

Defines

#define ARP_TYPE_ETHERNET   0x0001
#define ARP_TYPE_IP   0x0800
#define ARP_OP_REQUEST   0x0001
#define ARP_OP_REPLY   0x0002

Typedefs

typedef arp_header ARPHdr
typedef arp_ether_ip ARPEtherIP
typedef arp_data ARPData

Functions

int InitDecoderARP ()


Define Documentation

#define ARP_OP_REPLY   0x0002

Definition at line 12 of file decode_arp.h.

Referenced by DecodeARP(), HandleARPPacket(), RouteARP(), and RouteSIP().

#define ARP_OP_REQUEST   0x0001

Definition at line 11 of file decode_arp.h.

Referenced by DecodeARP(), HandleARPPacket(), RouteARP(), and SendARP().

#define ARP_TYPE_ETHERNET   0x0001

Definition at line 8 of file decode_arp.h.

Referenced by SendARP().

#define ARP_TYPE_IP   0x0800

Definition at line 9 of file decode_arp.h.

Referenced by SendARP().


Typedef Documentation

typedef struct arp_data ARPData

typedef struct arp_ether_ip ARPEtherIP

typedef struct arp_header ARPHdr


Function Documentation

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().


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