djbdnscurve6  38
djbdnscurve6
Data Structures | Macros | Functions | Variables
dnscache.c File Reference
#include <unistd.h>
#include "case.h"
#include "env.h"
#include "exit.h"
#include "scan.h"
#include "logmsg.h"
#include "str.h"
#include "ip.h"
#include "uint_t.h"
#include "socket_if.h"
#include "dns.h"
#include "taia.h"
#include "byte.h"
#include "roots.h"
#include "fmt.h"
#include "iopause.h"
#include "query.h"
#include "alloc.h"
#include "response.h"
#include "cache.h"
#include "ndelay.h"
#include "log.h"
#include "clientok.h"
#include "droproot.h"
#include "readclose.h"
#include "edns0.h"
#include "curvedns.h"
Include dependency graph for dnscache.c:

Go to the source code of this file.

Data Structures

struct  udpclient
 
struct  tcpclient
 

Macros

#define WHO   "dnscache"
 

Functions

void u_drop (int j)
 
void u_respond (int j)
 
void u_new (void)
 
void t_free (int j)
 
void t_timeout (int j)
 
void t_close (int j)
 
void t_drop (int j)
 
void t_respond (int j)
 
void t_rw (int j)
 
void t_new (void)
 
int main ()
 

Variables

uint16 dnsport = 53
 
stralloc ifname = {0}
 
uint32 ifidx = 0
 
int flagusetxtformat = 0
 
int flagdualstack = 0
 
int flagipv6anycast = 0
 
char * p = "u"
 
uint64 numqueries = 0
 
int uactive = 0
 
int eactive = 0
 
struct tcpclient t [QUERY_MAXTCP]
 
int tactive = 0
 
iopause_fd io [3+QUERY_MAXUDP+QUERY_MAXTCP]
 
iopause_fd * udp53io
 
iopause_fd * tcp53io
 
char seed [128]
 

Macro Definition Documentation

◆ WHO

#define WHO   "dnscache"

Definition at line 33 of file dnscache.c.

Function Documentation

◆ main()

int main ( )

Definition at line 438 of file dnscache.c.

◆ t_close()

void t_close ( int  j)

Definition at line 205 of file dnscache.c.

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

◆ t_drop()

void t_drop ( int  j)

Definition at line 214 of file dnscache.c.

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

◆ t_free()

void t_free ( int  j)

Definition at line 189 of file dnscache.c.

Here is the caller graph for this function:

◆ t_new()

void t_new ( void  )

Definition at line 309 of file dnscache.c.

Here is the call graph for this function:

◆ t_respond()

void t_respond ( int  j)

Definition at line 222 of file dnscache.c.

Here is the call graph for this function:

◆ t_rw()

void t_rw ( int  j)

Definition at line 238 of file dnscache.c.

◆ t_timeout()

void t_timeout ( int  j)

Definition at line 196 of file dnscache.c.

◆ u_drop()

void u_drop ( int  j)

Definition at line 87 of file dnscache.c.

Here is the call graph for this function:

◆ u_new()

void u_new ( void  )

Definition at line 109 of file dnscache.c.

◆ u_respond()

void u_respond ( int  j)

Definition at line 95 of file dnscache.c.

Here is the call graph for this function:

Variable Documentation

◆ dnsport

uint16 dnsport = 53

Definition at line 29 of file dnscache.c.

◆ eactive

int eactive = 0

Definition at line 85 of file dnscache.c.

◆ flagdualstack

int flagdualstack = 0

Definition at line 36 of file dnscache.c.

◆ flagipv6anycast

int flagipv6anycast = 0

Definition at line 37 of file dnscache.c.

◆ flagusetxtformat

int flagusetxtformat = 0

Definition at line 35 of file dnscache.c.

◆ ifidx

uint32 ifidx = 0

Definition at line 31 of file dnscache.c.

◆ ifname

stralloc ifname = {0}

Definition at line 30 of file dnscache.c.

◆ io

iopause_fd io[3+QUERY_MAXUDP+QUERY_MAXTCP]

Definition at line 357 of file dnscache.c.

◆ numqueries

uint64 numqueries = 0

Definition at line 70 of file dnscache.c.

◆ p

char* p = "u"

Definition at line 38 of file dnscache.c.

◆ seed

char seed[128]

Definition at line 436 of file dnscache.c.

◆ t

◆ tactive

int tactive = 0

Definition at line 179 of file dnscache.c.

◆ tcp53io

iopause_fd* tcp53io

Definition at line 359 of file dnscache.c.

◆ uactive

int uactive = 0

Definition at line 84 of file dnscache.c.

◆ udp53io

iopause_fd* udp53io

Definition at line 358 of file dnscache.c.