djbdnscurve6 45
djbdnscurve6
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
query.h File Reference
#include "dns.h"
#include "uint_t.h"
Include dependency graph for query.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  query
 

Macros

#define QUERY_MAXLEVEL   5 /* search depth */
 
#define QUERY_MAXALIAS   16 /* glue depth */
 
#define QUERY_MAXLOOP   100 /* queries per NS */
 
#define QUERY_MAXUDP   400 /* used by dnscache */
 
#define QUERY_MAXTCP   40
 
#define IP6_LOOPBACK_ARPA   "\0011\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\003ip6\004arpa\0"
 
#define IP6_LOCALNET_ARPA   "\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\003ip6\004arpa\0"
 
#define IP6_MULTICAST_ARPA   "\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\001f\001f\003ip6\004arpa\0"
 
#define IP6_ALLNODESMULTICAST_ARPA   "\0011\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0012\0010\001f\001f\003ip6\004arpa\0"
 
#define IP6_ALLROUTERSMULTICAST_ARPA   "\0012\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0012\0010\001f\001f\003ip6\004arpa\0"
 
#define IP6_LOOPBACK_OCTAL   "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001"
 
#define IP6_UNSPECIFIED_OCTAL   "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
 
#define IP6_MULTICASTPFX_OCTAL   "\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"
 
#define IP6_ALLNODES_OCTAL   "\377\002\000\000\000\000\000\000\000\000\000\000\000\000\000\001"
 
#define IP6_ALLROUTERS_OCTAL   "\377\002\000\000\000\000\000\000\000\000\000\000\000\000\000\002"
 
#define IP4_LOCALHOST_ARPA   "\0010\0010\0010\0010\7in-addr\4arpa\0"
 
#define IP4_LOOPBACK_ARPA   "\0011\0010\0010\003127\7in-addr\4arpa\0"
 
#define IP4_LOOPBACK_OCTAL   "\177\0\0\1"
 
#define IP4_LOCALHOST_OCTAL   "\0\0\0\0"
 
#define IP4_LOCALNET   IP4_LOCALHOST_OCTAL
 
#define IP6_LOCALNET   IP6_UNSPECIFIED_OCTAL
 
#define IP6_LOCALHOST   IP6_LOOPBACK_OCTAL
 
#define IP6_LOCALHOST_ARPA   IP6_LOOPBACK_ARPA
 

Functions

int query_start (struct query *, char *, char *, char *, char *, uint32)
 
int query_get (struct query *, iopause_fd *, struct taia *)
 
void query_io (struct query *, iopause_fd *, struct taia *)
 
void query_init (void)
 
void query_forwardonly (void)
 

Macro Definition Documentation

◆ IP4_LOCALHOST_ARPA

#define IP4_LOCALHOST_ARPA   "\0010\0010\0010\0010\7in-addr\4arpa\0"

Definition at line 40 of file query.h.

◆ IP4_LOCALHOST_OCTAL

#define IP4_LOCALHOST_OCTAL   "\0\0\0\0"

Definition at line 47 of file query.h.

◆ IP4_LOCALNET

#define IP4_LOCALNET   IP4_LOCALHOST_OCTAL

Definition at line 51 of file query.h.

◆ IP4_LOOPBACK_ARPA

#define IP4_LOOPBACK_ARPA   "\0011\0010\0010\003127\7in-addr\4arpa\0"

Definition at line 42 of file query.h.

◆ IP4_LOOPBACK_OCTAL

#define IP4_LOOPBACK_OCTAL   "\177\0\0\1"

Definition at line 45 of file query.h.

◆ IP6_ALLNODES_OCTAL

#define IP6_ALLNODES_OCTAL   "\377\002\000\000\000\000\000\000\000\000\000\000\000\000\000\001"

Definition at line 35 of file query.h.

◆ IP6_ALLNODESMULTICAST_ARPA

#define IP6_ALLNODESMULTICAST_ARPA   "\0011\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0012\0010\001f\001f\003ip6\004arpa\0"

Definition at line 24 of file query.h.

◆ IP6_ALLROUTERS_OCTAL

#define IP6_ALLROUTERS_OCTAL   "\377\002\000\000\000\000\000\000\000\000\000\000\000\000\000\002"

Definition at line 37 of file query.h.

◆ IP6_ALLROUTERSMULTICAST_ARPA

#define IP6_ALLROUTERSMULTICAST_ARPA   "\0012\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0012\0010\001f\001f\003ip6\004arpa\0"

Definition at line 26 of file query.h.

◆ IP6_LOCALHOST

#define IP6_LOCALHOST   IP6_LOOPBACK_OCTAL

Definition at line 53 of file query.h.

◆ IP6_LOCALHOST_ARPA

#define IP6_LOCALHOST_ARPA   IP6_LOOPBACK_ARPA

Definition at line 54 of file query.h.

◆ IP6_LOCALNET

#define IP6_LOCALNET   IP6_UNSPECIFIED_OCTAL

Definition at line 52 of file query.h.

◆ IP6_LOCALNET_ARPA

#define IP6_LOCALNET_ARPA   "\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\003ip6\004arpa\0"

Definition at line 20 of file query.h.

◆ IP6_LOOPBACK_ARPA

#define IP6_LOOPBACK_ARPA   "\0011\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\003ip6\004arpa\0"

Definition at line 18 of file query.h.

◆ IP6_LOOPBACK_OCTAL

#define IP6_LOOPBACK_OCTAL   "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001"

Definition at line 29 of file query.h.

◆ IP6_MULTICAST_ARPA

#define IP6_MULTICAST_ARPA   "\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\0010\001f\001f\003ip6\004arpa\0"

Definition at line 22 of file query.h.

◆ IP6_MULTICASTPFX_OCTAL

#define IP6_MULTICASTPFX_OCTAL   "\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

Definition at line 33 of file query.h.

◆ IP6_UNSPECIFIED_OCTAL

#define IP6_UNSPECIFIED_OCTAL   "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"

Definition at line 31 of file query.h.

◆ QUERY_MAXALIAS

#define QUERY_MAXALIAS   16 /* glue depth */

Definition at line 10 of file query.h.

◆ QUERY_MAXLEVEL

#define QUERY_MAXLEVEL   5 /* search depth */

Definition at line 9 of file query.h.

◆ QUERY_MAXLOOP

#define QUERY_MAXLOOP   100 /* queries per NS */

Definition at line 11 of file query.h.

◆ QUERY_MAXTCP

#define QUERY_MAXTCP   40

Definition at line 14 of file query.h.

◆ QUERY_MAXUDP

#define QUERY_MAXUDP   400 /* used by dnscache */

Definition at line 13 of file query.h.

Function Documentation

◆ query_forwardonly()

void query_forwardonly ( void  )

Definition at line 36 of file query.c.

Here is the caller graph for this function:

◆ query_get()

int query_get ( struct query z,
iopause_fd *  x,
struct taia *  stamp 
)

Definition at line 1192 of file query.c.

Here is the call graph for this function:

◆ query_init()

void query_init ( void  )

Definition at line 23 of file query.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ query_io()

void query_io ( struct query z,
iopause_fd *  x,
struct taia *  deadline 
)

Definition at line 1203 of file query.c.

Here is the call graph for this function:

◆ query_start()

int query_start ( struct query ,
char *  ,
char *  ,
char *  ,
char *  ,
uint32   
)
Here is the caller graph for this function: