djbdnscurve6 53
djbdnscurve6
Loading...
Searching...
No Matches
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 "sipcache.h"
#include "ndelay.h"
#include "log.h"
#include "clientok.h"
#include "droproot.h"
#include "readclose.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 = DNSPORT
 
stralloc ifname = {0}
 
uint32 ifidx = 0
 
int flagedserver
 
int flagusetxtformat
 
unsigned int fallback
 
unsigned int flagedns0 = 0
 
unsigned int msgsize = MSGSIZE
 
int flagdualstack = 0
 
int flagipv6anycast = 0
 
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 28 of file dnscache.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 446 of file dnscache.c.

Here is the call graph for this function:

◆ t_close()

void t_close ( int  j)

Definition at line 219 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 228 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 203 of file dnscache.c.

Here is the caller graph for this function:

◆ t_new()

void t_new ( void  )

Definition at line 318 of file dnscache.c.

Here is the call graph for this function:

◆ t_respond()

void t_respond ( int  j)

Definition at line 235 of file dnscache.c.

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

◆ t_rw()

void t_rw ( int  j)

Definition at line 250 of file dnscache.c.

Here is the call graph for this function:

◆ t_timeout()

void t_timeout ( int  j)

Definition at line 210 of file dnscache.c.

Here is the caller graph for this function:

◆ u_drop()

void u_drop ( int  j)

Definition at line 90 of file dnscache.c.

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

◆ u_new()

void u_new ( void  )

Definition at line 122 of file dnscache.c.

Here is the call graph for this function:

◆ u_respond()

void u_respond ( int  j)

Definition at line 99 of file dnscache.c.

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

Variable Documentation

◆ dnsport

uint16 dnsport = DNSPORT

Definition at line 30 of file dnscache.c.

◆ eactive

int eactive = 0

Definition at line 88 of file dnscache.c.

◆ fallback

unsigned int fallback
extern

Definition at line 21 of file curvedns.c.

◆ flagdualstack

int flagdualstack = 0

Definition at line 41 of file dnscache.c.

◆ flagedns0

unsigned int flagedns0 = 0

Definition at line 38 of file dnscache.c.

◆ flagedserver

int flagedserver
extern

Definition at line 19 of file curvedns.c.

◆ flagipv6anycast

int flagipv6anycast = 0

Definition at line 42 of file dnscache.c.

◆ flagusetxtformat

int flagusetxtformat
extern

Definition at line 20 of file curvedns.c.

◆ ifidx

uint32 ifidx = 0

Definition at line 32 of file dnscache.c.

◆ ifname

stralloc ifname = {0}

Definition at line 31 of file dnscache.c.

◆ io

iopause_fd io[3+QUERY_MAXUDP+QUERY_MAXTCP]

Definition at line 365 of file dnscache.c.

◆ msgsize

unsigned int msgsize = MSGSIZE

Definition at line 39 of file dnscache.c.

◆ numqueries

uint64 numqueries = 0

Definition at line 72 of file dnscache.c.

◆ seed

char seed[128]

Definition at line 444 of file dnscache.c.

◆ t

◆ tactive

int tactive = 0

Definition at line 193 of file dnscache.c.

◆ tcp53io

iopause_fd* tcp53io

Definition at line 367 of file dnscache.c.

◆ uactive

int uactive = 0

Definition at line 87 of file dnscache.c.

◆ udp53io

iopause_fd* udp53io

Definition at line 366 of file dnscache.c.