Riferimenti per il file irc_reslib.c

#include "stdinc.h"
#include "irc_reslib.h"
#include "irc_res.h"
#include "ircd_defs.h"
#include "fileio.h"
#include "irc_string.h"
#include "irc_getaddrinfo.h"

Vai al codice sorgente di questo file.

Definizioni

#define NS_TYPE_ELT   0x40
#define DNS_LABELTYPE_BITSTRING   0x41
#define MAXLINE   128

Funzioni

static int parse_resvconf (void)
static void add_nameserver (char *arg)
static int labellen (const unsigned char *lp)
static int special (int ch)
static int printable (int ch)
static int irc_decode_bitstring (const char **cpp, char *dn, const char *eom)
static int irc_ns_name_compress (const char *src, unsigned char *dst, size_t dstsiz, const unsigned char **dnptrs, const unsigned char **lastdnptr)
static int irc_dn_find (const unsigned char *, const unsigned char *, const unsigned char *const *, const unsigned char *const *)
static int irc_encode_bitsring (const char **, const char *, unsigned char **, unsigned char **, const char *)
static int irc_ns_name_uncompress (const unsigned char *, const unsigned char *, const unsigned char *, char *, size_t)
static int irc_ns_name_unpack (const unsigned char *, const unsigned char *, const unsigned char *, unsigned char *, size_t)
static int irc_ns_name_ntop (const char *, char *, size_t)
static int irc_ns_name_skip (const unsigned char **, const unsigned char *)
static int mklower (int ch)
int irc_res_init (void)
int irc_dn_expand (const unsigned char *msg, const unsigned char *eom, const unsigned char *src, char *dst, int dstsiz)
static int irc_dn_comp (const char *src, unsigned char *dst, int dstsiz, unsigned char **dnptrs, unsigned char **lastdnptr)
int irc_dn_skipname (const unsigned char *ptr, const unsigned char *eom)
unsigned int irc_ns_get16 (const unsigned char *src)
unsigned long irc_ns_get32 (const unsigned char *src)
void irc_ns_put16 (unsigned int src, unsigned char *dst)
void irc_ns_put32 (unsigned long src, unsigned char *dst)
static int irc_ns_name_pton (const char *src, unsigned char *dst, size_t dstsiz)
static int irc_ns_name_pack (const unsigned char *src, unsigned char *dst, int dstsiz, const unsigned char **dnptrs, const unsigned char **lastdnptr)
int irc_res_mkquery (const char *dname, int class, int type, unsigned char *buf, int buflen)

Variabili

struct irc_ssaddr irc_nsaddr_list [IRCD_MAXNS]
int irc_nscount = 0
char irc_domain [HOSTLEN+1]
static const char digitvalue [256]
static const char digits [] = "0123456789"


Documentazione delle definizioni

#define DNS_LABELTYPE_BITSTRING   0x41

Definizione alla linea 92 del file irc_reslib.c.

Referenziato da irc_encode_bitsring(), irc_ns_name_ntop(), e labellen().

#define MAXLINE   128

Definizione alla linea 93 del file irc_reslib.c.

Referenziato da parse_resvconf().

#define NS_TYPE_ELT   0x40

Definizione alla linea 91 del file irc_reslib.c.

Referenziato da irc_ns_name_ntop(), irc_ns_name_skip(), irc_ns_name_unpack(), e labellen().


Documentazione delle funzioni

static void add_nameserver ( char *  arg  )  [static]

static int irc_decode_bitstring ( const char **  cpp,
char *  dn,
const char *  eom 
) [static]

Definizione alla linea 655 del file irc_reslib.c.

Referenziato da irc_ns_name_ntop().

static int irc_dn_comp ( const char *  src,
unsigned char *  dst,
int  dstsiz,
unsigned char **  dnptrs,
unsigned char **  lastdnptr 
) [static]

Definizione alla linea 481 del file irc_reslib.c.

Riferimenti irc_ns_name_compress().

Referenziato da irc_res_mkquery().

int irc_dn_expand ( const unsigned char *  msg,
const unsigned char *  eom,
const unsigned char *  src,
char *  dst,
int  dstsiz 
)

Definizione alla linea 262 del file irc_reslib.c.

Riferimenti irc_ns_name_uncompress().

Referenziato da proc_answer().

static int irc_dn_find ( const unsigned char *  domain,
const unsigned char *  msg,
const unsigned char *const *  dnptrs,
const unsigned char *const *  lastdnptr 
) [static]

Definizione alla linea 1061 del file irc_reslib.c.

Riferimenti labellen(), mklower(), e NS_CMPRSFLGS.

Referenziato da irc_ns_name_pack().

int irc_dn_skipname ( const unsigned char *  ptr,
const unsigned char *  eom 
)

Definizione alla linea 493 del file irc_reslib.c.

Riferimenti irc_ns_name_skip().

Referenziato da proc_answer().

static int irc_encode_bitsring ( const char **  bp,
const char *  end,
unsigned char **  labelp,
unsigned char **  dst,
const char *  eom 
) [static]

Definizione alla linea 947 del file irc_reslib.c.

Riferimenti digitvalue, e DNS_LABELTYPE_BITSTRING.

Referenziato da irc_ns_name_pton().

unsigned int irc_ns_get16 ( const unsigned char *  src  ) 

Definizione alla linea 555 del file irc_reslib.c.

Riferimenti IRC_NS_GET16.

Referenziato da proc_answer().

unsigned long irc_ns_get32 ( const unsigned char *  src  ) 

Definizione alla linea 564 del file irc_reslib.c.

Riferimenti IRC_NS_GET32.

Referenziato da proc_answer().

static int irc_ns_name_compress ( const char *  src,
unsigned char *  dst,
size_t  dstsiz,
const unsigned char **  dnptrs,
const unsigned char **  lastdnptr 
) [static]

Definizione alla linea 936 del file irc_reslib.c.

Riferimenti irc_ns_name_pack(), irc_ns_name_pton(), e NS_MAXCDNAME.

Referenziato da irc_dn_comp().

static int irc_ns_name_ntop ( const char *  src,
char *  dst,
size_t  dstsiz 
) [static]

static int irc_ns_name_pack ( const unsigned char *  src,
unsigned char *  dst,
int  dstsiz,
const unsigned char **  dnptrs,
const unsigned char **  lastdnptr 
) [static]

Definizione alla linea 844 del file irc_reslib.c.

Riferimenti irc_dn_find(), labellen(), NS_CMPRSFLGS, e NS_MAXCDNAME.

Referenziato da irc_ns_name_compress().

static int irc_ns_name_pton ( const char *  src,
unsigned char *  dst,
size_t  dstsiz 
) [static]

Definizione alla linea 697 del file irc_reslib.c.

Riferimenti digits, irc_encode_bitsring(), NS_CMPRSFLGS, e NS_MAXCDNAME.

Referenziato da irc_ns_name_compress().

static int irc_ns_name_skip ( const unsigned char **  ptrptr,
const unsigned char *  eom 
) [static]

Definizione alla linea 508 del file irc_reslib.c.

Riferimenti labellen(), NS_CMPRSFLGS, e NS_TYPE_ELT.

Referenziato da irc_dn_skipname().

static int irc_ns_name_uncompress ( const unsigned char *  msg,
const unsigned char *  eom,
const unsigned char *  src,
char *  dst,
size_t  dstsiz 
) [static]

Definizione alla linea 281 del file irc_reslib.c.

Riferimenti irc_ns_name_ntop(), irc_ns_name_unpack(), e NS_MAXCDNAME.

Referenziato da irc_dn_expand().

static int irc_ns_name_unpack ( const unsigned char *  msg,
const unsigned char *  eom,
const unsigned char *  src,
unsigned char *  dst,
size_t  dstsiz 
) [static]

Definizione alla linea 300 del file irc_reslib.c.

Riferimenti labellen(), NS_CMPRSFLGS, e NS_TYPE_ELT.

Referenziato da irc_ns_name_uncompress().

void irc_ns_put16 ( unsigned int  src,
unsigned char *  dst 
)

Definizione alla linea 573 del file irc_reslib.c.

Riferimenti IRC_NS_PUT16.

void irc_ns_put32 ( unsigned long  src,
unsigned char *  dst 
)

Definizione alla linea 579 del file irc_reslib.c.

Riferimenti IRC_NS_PUT32.

int irc_res_init ( void   ) 

Definizione alla linea 144 del file irc_reslib.c.

Riferimenti irc_nscount, e parse_resvconf().

Referenziato da start_resolver().

int irc_res_mkquery ( const char *  dname,
int  class,
int  type,
unsigned char *  buf,
int  buflen 
)

static int labellen ( const unsigned char *  lp  )  [static]

static int mklower ( int  ch  )  [static]

Definizione alla linea 1125 del file irc_reslib.c.

Referenziato da irc_dn_find().

static int parse_resvconf ( void   )  [static]

Definizione alla linea 157 del file irc_reslib.c.

Riferimenti add_nameserver(), fbclose(), fbgets(), fbopen(), HOSTLEN, irc_domain, irccmp(), IsSpace, MAXLINE, e strlcpy().

Referenziato da irc_res_init().

static int printable ( int  ch  )  [static]

Definizione alla linea 649 del file irc_reslib.c.

Referenziato da irc_ns_name_ntop().

static int special ( int  ch  )  [static]

Definizione alla linea 594 del file irc_reslib.c.

Referenziato da irc_ns_name_ntop().


Documentazione delle variabili

const char digits[] = "0123456789" [static]

Definizione alla linea 123 del file irc_reslib.c.

Referenziato da irc_ns_name_ntop(), irc_ns_name_pton(), e try_parse_v4_netmask().

const char digitvalue[256] [static]

Valore iniziale:

 {
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
   0,  1,  2,  3,  4,  5,  6,  7,  8,  9, -1, -1, -1, -1, -1, -1, 
  -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 
}

Definizione alla linea 101 del file irc_reslib.c.

Referenziato da irc_encode_bitsring().

char irc_domain[HOSTLEN+1]

Definizione alla linea 99 del file irc_reslib.c.

Referenziato da add_local_domain(), e parse_resvconf().

struct irc_ssaddr irc_nsaddr_list[IRCD_MAXNS]

Definizione alla linea 97 del file irc_reslib.c.

Referenziato da add_nameserver(), report_dns_servers(), res_ourserver(), send_res_msg(), e start_resolver().

int irc_nscount = 0

Definizione alla linea 98 del file irc_reslib.c.

Referenziato da add_nameserver(), irc_res_init(), report_dns_servers(), res_ourserver(), e send_res_msg().


Generato il Wed Apr 15 00:19:21 2009 per ircd-hybrid da  doxygen 1.5.6