Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

DNS_Mgr.cc File Reference

#include "config.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <time.h>
#include <sys/stat.h>
#include <unistd.h>
#include <netinet/in.h>
#include <errno.h>
#include <stdlib.h>
#include "DNS_Mgr.h"
#include "Event.h"
#include "Net.h"
#include "Var.h"
#include <netdb.h>
#include "nb_dns.h"

Include dependency graph for DNS_Mgr.cc:

Include dependency graph

Go to the source code of this file.

Classes

class  DNS_Mapping
class  DNS_Mgr_Request

Defines

#define MAX_PENDING_REQUESTS   20

Functions

int select (int, fd_set *, fd_set *, fd_set *, struct timeval *)
void DNS_Mgr_mapping_delete_func (void *v)
TableValempty_addr_set ()
uint32 raw_bytes_to_addr (const unsigned char b[4])


Define Documentation

#define MAX_PENDING_REQUESTS   20
 

Definition at line 525 of file DNS_Mgr.cc.

Referenced by DNS_Mgr::Resolve().


Function Documentation

void DNS_Mgr_mapping_delete_func void *  v  ) 
 

Definition at line 151 of file DNS_Mgr.cc.

Referenced by DNS_Mgr::DNS_Mgr().

00152         {
00153         delete (DNS_Mapping*) v;
00154         }

TableVal* empty_addr_set  )  [static]
 

Definition at line 156 of file DNS_Mgr.cc.

References TypeList::Append(), base_type(), and TYPE_ADDR.

Referenced by DNS_Mapping::AddrsSet(), and DNS_Mgr::LookupHost().

00157         {
00158         BroType* addr_t = base_type(TYPE_ADDR);
00159         TypeList* set_index = new TypeList(addr_t);
00160         set_index->Append(addr_t);
00161         SetType* s = new SetType(set_index, 0);
00162         return new TableVal(s);
00163         }

uint32 raw_bytes_to_addr const unsigned char  b[4]  )  [static]
 

Definition at line 295 of file DNS_Mgr.cc.

References uint32.

Referenced by DNS_Mapping::Init().

00296         {
00297         uint32 l = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3];
00298         return uint32(htonl(l));
00299         }

int select int  ,
fd_set *  ,
fd_set *  ,
fd_set *  ,
struct timeval * 
 


Generated on Wed Sep 14 02:59:11 2005 for bro_docs by doxygen 1.3.5