djbdnscurve6 45
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 = 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 28 of file dnscache.c.

Function Documentation

◆ main()

int main ( )

Definition at line 431 of file dnscache.c.

Here is the call graph for this function:

◆ t_close()

void t_close ( int  j)

Definition at line 201 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 210 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 185 of file dnscache.c.

Here is the caller graph for this function:

◆ t_new()

void t_new ( void  )

Definition at line 303 of file dnscache.c.

Here is the call graph for this function:

◆ t_respond()

void t_respond ( int  j)

Definition at line 218 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 234 of file dnscache.c.

Here is the call graph for this function:

◆ t_timeout()

void t_timeout ( int  j)

Definition at line 192 of file dnscache.c.

Here is the caller graph for this function:

◆ u_drop()

void u_drop ( int  j)

Definition at line 86 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 105 of file dnscache.c.

Here is the call graph for this function:

◆ u_respond()

void u_respond ( int  j)

Definition at line 94 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 = 53

Definition at line 30 of file dnscache.c.

◆ eactive

int eactive = 0

Definition at line 84 of file dnscache.c.

◆ flagdualstack

int flagdualstack = 0

Definition at line 35 of file dnscache.c.

◆ flagipv6anycast

int flagipv6anycast = 0

Definition at line 36 of file dnscache.c.

◆ flagusetxtformat

int flagusetxtformat = 0

Definition at line 34 of file dnscache.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 350 of file dnscache.c.

◆ numqueries

uint64 numqueries = 0

Definition at line 68 of file dnscache.c.

◆ p

char* p = "u"

Definition at line 37 of file dnscache.c.

◆ seed

char seed[128]

Definition at line 429 of file dnscache.c.

◆ t

◆ tactive

int tactive = 0

Definition at line 175 of file dnscache.c.

◆ tcp53io

iopause_fd* tcp53io

Definition at line 352 of file dnscache.c.

◆ uactive

int uactive = 0

Definition at line 83 of file dnscache.c.

◆ udp53io

iopause_fd* udp53io

Definition at line 351 of file dnscache.c.