decoders/decode_dns.c File Reference

#include "decode_dns.h"
#include "decode_udp.h"
#include "../packets/packet.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>

Go to the source code of this file.

Functions

int DNS2Human (char *DNS, char *Human, int HumanLen)
void * DecodeDNS (int PacketSlot)
int InitDecoderDNS ()

Variables

GlobalVars Globals
int UDPDecoderID


Function Documentation

void* DecodeDNS ( int  PacketSlot  ) 

Definition at line 53 of file decode_dns.c.

References packet_rec::BeginData, DNS2Human(), DNS_FLAG_QUERY, dns_header_1::Flags, GetDataByID(), Globals, dns_data::Header1, MAX_DNS_QUERY_LEN, MAX_DNS_QUESTIONS, NULL, global_vars::Packets, dns_data::Q, dns_qestion::Query, dns_header_1::Questions, packet_rec::RawPacket, and UDPDecoderID.

Referenced by InitDecoderDNS().

int DNS2Human ( char *  DNS,
char *  Human,
int  HumanLen 
)

Definition at line 17 of file decode_dns.c.

References FALSE, and TRUE.

Referenced by DecodeDNS().

int InitDecoderDNS (  ) 

Definition at line 123 of file decode_dns.c.

References CreateDecoder(), DecodeDNS(), decoder_rec::DecodeFunc, DECODER_NONE, DecoderAddDecoder(), global_vars::Decoders, FALSE, GetDecoderByName(), Globals, TRUE, and UDPDecoderID.

Referenced by InitDecoders().


Variable Documentation

GlobalVars Globals

Definition at line 41 of file hlbr.c.

int UDPDecoderID

Definition at line 12 of file decode_dns.c.

Referenced by DecodeDNS(), HandleIPPacket(), InitDecoderDNS(), InitRouteBNS(), InitTestUDPContent(), InitTestUDPDst(), InitTestUDPNoCase(), InitTestUDPRegExp(), InitTestUDPSrc(), ProcessPacket(), TestUDPDst(), and TestUDPSrc().


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