djbdnscurve6 45
djbdnscurve6
Loading...
Searching...
No Matches
Macros | Functions | Variables
axfrdns.c File Reference
#include <unistd.h>
#include "droproot.h"
#include "exit.h"
#include "env.h"
#include "uint_t.h"
#include "ip.h"
#include "tai.h"
#include "buffer.h"
#include "timeout.h"
#include "open.h"
#include "seek.h"
#include "cdbread.h"
#include "stralloc.h"
#include "logmsg.h"
#include "str.h"
#include "byte.h"
#include "case.h"
#include "dns.h"
#include "scan.h"
#include "qlog.h"
#include "response.h"
#include "clientloc.h"
Include dependency graph for axfrdns.c:

Go to the source code of this file.

Macros

#define WHO   "axfrdns"
 

Functions

int respond (char *, char *, char *)
 
void nomem ()
 
void die_truncated ()
 
void die_netwrite ()
 
void die_netread ()
 
void die_outside ()
 
void die_cdbread ()
 
void die_cdbformat ()
 
ssize_t safewrite (int fd, char *buf, unsigned int len)
 
void print (char *buf, unsigned int len)
 
void axfrcheck (char *q)
 
void get_cdb (char *buf, unsigned int len)
 
void dns_copy (char *buf, unsigned int len)
 
void doname (stralloc *sa)
 
int build (stralloc *sa, char *q, int flagsoa, char id[2])
 
void doaxfr (char id[2])
 
void netread (char *buf, unsigned int len)
 
int main ()
 

Variables

char netwritespace [1024]
 
buffer netwrite = BUFFER_INIT(safewrite,1,netwritespace,sizeof(netwritespace))
 
char * axfr
 
unsigned int zonelen
 
char typeclass [4]
 
int fdcdb
 
buffer bcdb
 
char bcdbspace [1024]
 
char ip [16]
 
unsigned long port
 
char clientloc [2]
 
struct tai now
 
char data [32767]
 
uint32 dlen
 
uint32 dpos
 
char tcpheader [2]
 
char buf [MSGSIZE]
 
uint16 len
 

Macro Definition Documentation

◆ WHO

#define WHO   "axfrdns"

Definition at line 26 of file axfrdns.c.

Function Documentation

◆ axfrcheck()

void axfrcheck ( char *  q)

Definition at line 81 of file axfrdns.c.

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

◆ build()

int build ( stralloc *  sa,
char *  q,
int  flagsoa,
char  id[2] 
)

Definition at line 148 of file axfrdns.c.

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

◆ die_cdbformat()

void die_cdbformat ( )

Definition at line 52 of file axfrdns.c.

Here is the caller graph for this function:

◆ die_cdbread()

void die_cdbread ( )

Definition at line 48 of file axfrdns.c.

Here is the caller graph for this function:

◆ die_netread()

void die_netread ( void  )

Definition at line 40 of file axfrdns.c.

Here is the caller graph for this function:

◆ die_netwrite()

void die_netwrite ( void  )

Definition at line 36 of file axfrdns.c.

Here is the caller graph for this function:

◆ die_outside()

void die_outside ( )

Definition at line 44 of file axfrdns.c.

Here is the caller graph for this function:

◆ die_truncated()

void die_truncated ( )

Definition at line 32 of file axfrdns.c.

Here is the caller graph for this function:

◆ dns_copy()

void dns_copy ( char *  buf,
unsigned int  len 
)

Definition at line 134 of file axfrdns.c.

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

◆ doaxfr()

void doaxfr ( char  id[2])

Definition at line 240 of file axfrdns.c.

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

◆ doname()

void doname ( stralloc *  sa)

Definition at line 140 of file axfrdns.c.

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

◆ get_cdb()

void get_cdb ( char *  buf,
unsigned int  len 
)

Definition at line 112 of file axfrdns.c.

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

◆ main()

int main ( )

Definition at line 323 of file axfrdns.c.

Here is the call graph for this function:

◆ netread()

void netread ( char *  buf,
unsigned int  len 
)

Definition at line 305 of file axfrdns.c.

Here is the call graph for this function:

◆ nomem()

void nomem ( void  )

Definition at line 28 of file axfrdns.c.

Here is the caller graph for this function:

◆ print()

void print ( char *  buf,
unsigned int  len 
)

Definition at line 69 of file axfrdns.c.

Here is the caller graph for this function:

◆ respond()

int respond ( char *  ,
char *  ,
char *   
)
Here is the caller graph for this function:

◆ safewrite()

ssize_t safewrite ( int  fd,
char *  buf,
unsigned int  len 
)

Definition at line 57 of file axfrdns.c.

Here is the call graph for this function:

Variable Documentation

◆ axfr

char* axfr

Definition at line 78 of file axfrdns.c.

◆ bcdb

buffer bcdb

Definition at line 109 of file axfrdns.c.

◆ bcdbspace

char bcdbspace[1024]

Definition at line 110 of file axfrdns.c.

◆ buf

char buf[MSGSIZE]

Definition at line 318 of file axfrdns.c.

◆ clientloc

char clientloc[2]

Definition at line 127 of file axfrdns.c.

◆ data

char data[32767]

Definition at line 130 of file axfrdns.c.

◆ dlen

uint32 dlen

Definition at line 131 of file axfrdns.c.

◆ dpos

uint32 dpos

Definition at line 132 of file axfrdns.c.

◆ fdcdb

int fdcdb

Definition at line 108 of file axfrdns.c.

◆ ip

char ip[16]

Definition at line 125 of file axfrdns.c.

◆ len

uint16 len

Definition at line 319 of file axfrdns.c.

◆ netwrite

buffer netwrite = BUFFER_INIT(safewrite,1,netwritespace,sizeof(netwritespace))

Definition at line 67 of file axfrdns.c.

◆ netwritespace

char netwritespace[1024]

Definition at line 66 of file axfrdns.c.

◆ now

struct tai now

Definition at line 129 of file axfrdns.c.

◆ port

unsigned long port

Definition at line 126 of file axfrdns.c.

◆ tcpheader

char tcpheader[2]

Definition at line 317 of file axfrdns.c.

◆ typeclass

char typeclass[4]

Definition at line 106 of file axfrdns.c.

◆ zonelen

unsigned int zonelen

Definition at line 105 of file axfrdns.c.