|
Navigation
- Home
- Community
- Development
- myReactOS
- Fundraiser 2012
Doxygen
- Main Page
- Alphabetical List
- Data Structures
- Directories
- File List
- Data Fields
- Globals
- Related Pages
Search
|
#include "config.h"
#include <stdarg.h>
#include <assert.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include "adns.h"
#include "dlist.h"
Go to the source code of this file.
Data Structures |
| union | rr_align |
| struct | vbuf |
| struct | parseinfo |
| struct | typeinfo |
| struct | allocnode |
| union | maxalign |
| struct | qcontext |
| struct | adns_query |
| struct | query_queue |
| struct | adns_state |
| struct | adns_state::server |
| struct | adns_state::sortlist |
| struct | findlabel_state |
Defines |
| #define | MAXSERVERS 5 |
| #define | MAXSORTLIST 15 |
| #define | UDPMAXRETRIES 15 |
| #define | UDPRETRYMS 2000 |
| #define | TCPWAITMS 30000 |
| #define | TCPCONNMS 14000 |
| #define | TCPIDLEMS 30000 |
| #define | MAXTTLBELIEVE (7*86400) /* any TTL > 7 days is capped */ |
| #define | DNS_PORT 53 |
| #define | DNS_MAXUDP 512 |
| #define | DNS_MAXLABEL 63 |
| #define | DNS_MAXDOMAIN 255 |
| #define | DNS_HDRSIZE 12 |
| #define | DNS_IDOFFSET 0 |
| #define | DNS_CLASS_IN 1 |
| #define | DNS_INADDR_ARPA "in-addr", "arpa" |
| #define | MAX_POLLFDS ADNS_POLLFDS_RECOMMENDED |
| #define | MEM_ROUND(sz) |
| #define | GETIL_B(cb) (((dgram)[(cb)++]) & 0x0ff) |
| #define | GET_B(cb, tv) ((tv)= GETIL_B((cb))) |
| #define | GET_W(cb, tv) ((tv)=0, (tv)|=(GETIL_B((cb))<<8), (tv)|=GETIL_B(cb), (tv)) |
| #define | GET_L(cb, tv) |
Typedefs |
| typedef unsigned char | byte |
Enumerations |
| enum | consistency_checks { cc_user,
cc_entex,
cc_freq
} |
| enum | dns_rcode {
rcode_noerror,
rcode_formaterror,
rcode_servfail,
rcode_nxdomain,
rcode_notimp,
rcode_refused
} |
| enum | parsedomain_flags { pdf_quoteok = 0x001
} |
Functions |
| int | adns__setnonblock (adns_state ads, ADNS_SOCKET fd) |
| void | adns__vdiag (adns_state ads, const char *pfx, adns_initflags prevent, int serv, adns_query qu, const char *fmt, va_list al) |
| void | adns__debug (adns_state ads, int serv, adns_query qu, const char *fmt,...) PRINTFFORMAT(4 |
| void void | adns__warn (adns_state ads, int serv, adns_query qu, const char *fmt,...) PRINTFFORMAT(4 |
| void void void | adns__diag (adns_state ads, int serv, adns_query qu, const char *fmt,...) PRINTFFORMAT(4 |
| void void void int | adns__vbuf_ensure (vbuf *vb, int want) |
| int | adns__vbuf_appendstr (vbuf *vb, const char *data) |
| int | adns__vbuf_append (vbuf *vb, const byte *data, int len) |
| void | adns__vbuf_appendq (vbuf *vb, const byte *data, int len) |
| void | adns__vbuf_init (vbuf *vb) |
| void | adns__vbuf_free (vbuf *vb) |
| const char * | adns__diag_domain (adns_state ads, int serv, adns_query qu, vbuf *vb, const byte *dgram, int dglen, int cbyte) |
| void | adns__isort (void *array, int nobjs, int sz, void *tempbuf, int(*needswap)(void *context, const void *a, const void *b), void *context) |
| void | adns__sigpipe_protect (adns_state) |
| void | adns__sigpipe_unprotect (adns_state) |
| adns_status | adns__mkquery (adns_state ads, vbuf *vb, int *id_r, const char *owner, int ol, const typeinfo *typei, adns_queryflags flags) |
| adns_status | adns__mkquery_frdgram (adns_state ads, vbuf *vb, int *id_r, const byte *qd_dgram, int qd_dglen, int qd_begin, adns_rrtype type, adns_queryflags flags) |
| void | adns__querysend_tcp (adns_query qu, struct timeval now) |
| void | adns__query_send (adns_query qu, struct timeval now) |
| adns_status | adns__internal_submit (adns_state ads, adns_query *query_r, const typeinfo *typei, vbuf *qumsg_vb, int id, adns_queryflags flags, struct timeval now, const qcontext *ctx) |
| void | adns__search_next (adns_state ads, adns_query qu, struct timeval now) |
| void * | adns__alloc_interim (adns_query qu, size_t sz) |
| void * | adns__alloc_preserved (adns_query qu, size_t sz) |
| void | adns__transfer_interim (adns_query from, adns_query to, void *block, size_t sz) |
| void * | adns__alloc_mine (adns_query qu, size_t sz) |
| void * | adns__alloc_final (adns_query qu, size_t sz) |
| void | adns__makefinal_block (adns_query qu, void **blpp, size_t sz) |
| void | adns__makefinal_str (adns_query qu, char **strp) |
| void | adns__reset_preserved (adns_query qu) |
| void | adns__query_done (adns_query qu) |
| void | adns__query_fail (adns_query qu, adns_status stat) |
| void | adns__procdgram (adns_state ads, const byte *dgram, int len, int serv, int viatcp, struct timeval now) |
| const typeinfo * | adns__findtype (adns_rrtype type) |
| void | adns__findlabel_start (findlabel_state *fls, adns_state ads, int serv, adns_query qu, const byte *dgram, int dglen, int max, int dmbegin, int *dmend_rlater) |
| adns_status | adns__findlabel_next (findlabel_state *fls, int *lablen_r, int *labstart_r) |
| adns_status | adns__parse_domain (adns_state ads, int serv, adns_query qu, vbuf *vb, adns_queryflags flags, const byte *dgram, int dglen, int *cbyte_io, int max) |
| adns_status | adns__parse_domain_more (findlabel_state *fls, adns_state ads, adns_query qu, vbuf *vb, parsedomain_flags flags, const byte *dgram) |
| adns_status | adns__findrr (adns_query qu, int serv, const byte *dgram, int dglen, int *cbyte_io, int *type_r, int *class_r, unsigned long *ttl_r, int *rdlen_r, int *rdstart_r, int *ownermatchedquery_r) |
| adns_status | adns__findrr_anychk (adns_query qu, int serv, const byte *dgram, int dglen, int *cbyte_io, int *type_r, int *class_r, unsigned long *ttl_r, int *rdlen_r, int *rdstart_r, const byte *eo_dgram, int eo_dglen, int eo_cbyte, int *eo_matched_r) |
| void | adns__update_expires (adns_query qu, unsigned long ttl, struct timeval now) |
| int | vbuf__append_quoted1035 (vbuf *vb, const byte *buf, int len) |
| void | adns__tcp_broken (adns_state ads, const char *what, const char *why) |
| void | adns__tcp_tryconnect (adns_state ads, struct timeval now) |
| void | adns__autosys (adns_state ads, struct timeval now) |
| void | adns__must_gettimeofday (adns_state ads, const struct timeval **now_io, struct timeval *tv_buf) |
| int | adns__pollfds (adns_state ads, struct pollfd pollfds_buf[MAX_POLLFDS]) |
| void | adns__fdevents (adns_state ads, const struct pollfd *pollfds, int npollfds, int maxfd, const fd_set *readfds, const fd_set *writefds, const fd_set *exceptfds, struct timeval now, int *r_r) |
| int | adns__internal_check (adns_state ads, adns_query *query_io, adns_answer **answer, void **context_r) |
| void | adns__timeouts (adns_state ads, int act, struct timeval **tv_io, struct timeval *tvbuf, struct timeval now) |
| void | adns__consistency (adns_state ads, adns_query qu, consistency_checks cc) |
| static int | ctype_whitespace (int c) |
| static int | ctype_digit (int c) |
| static int | ctype_alpha (int c) |
| static int | ctype_822special (int c) |
| static int | ctype_domainunquoted (int c) |
| static int | errno_resources (int e) |
Generated on Fri May 25 2012 04:47:43 for ReactOS by
1.7.6.1
|