djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
axfr-get.c File Reference
#include <unistd.h>
#include "uint_t.h"
#include "stralloc.h"
#include "logmsg.h"
#include "getln.h"
#include "buffer.h"
#include "exit.h"
#include "open.h"
#include "scan.h"
#include "byte.h"
#include "str.h"
#include "ip.h"
#include "timeout.h"
#include "dns.h"
Include dependency graph for axfr-get.c:

Go to the source code of this file.

Macros

#define WHO   "axfr-get"

Functions

int rename (const char *, const char *)
void die_usage (void)
void die_generate (void)
void die_parse (void)
unsigned int x_copy (char *buf, unsigned int len, unsigned int pos, char *out, unsigned int outlen)
unsigned int x_getname (char *buf, unsigned int len, unsigned int pos, char **out)
unsigned int x_skipname (char *buf, unsigned int len, unsigned int pos)
void die_netread (void)
void die_netwrite (void)
void die_read (void)
void die_write (void)
ssize_t saferead (int fd, char *buf, unsigned int len)
ssize_t safewrite (int fd, char *buf, unsigned int len)
void netget (char *buf, unsigned int len)
void put (char *buf, unsigned int len)
int printable (char ch)
unsigned int doit (char *buf, unsigned int len, unsigned int pos)
int main (int argc, char **argv)

Variables

unsigned int zonelen
char * fn
char * fntmp
char netreadspace [1024]
buffer netread = BUFFER_INIT(saferead,6,netreadspace,sizeof(netreadspace))
char netwritespace [1024]
buffer netwrite = BUFFER_INIT(safewrite,7,netwritespace,sizeof(netwritespace))
int fd
buffer b
char bspace [1024]
stralloc line
int match
int numsoa
stralloc packet

Macro Definition Documentation

◆ WHO

#define WHO   "axfr-get"

Definition at line 16 of file axfr-get.c.

Function Documentation

◆ die_generate()

void die_generate ( void )

Definition at line 24 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_netread()

void die_netread ( void )

Definition at line 56 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_netwrite()

void die_netwrite ( void )

Definition at line 60 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_parse()

void die_parse ( void )

Definition at line 28 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_read()

void die_read ( void )

Definition at line 64 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_usage()

void die_usage ( void )

Definition at line 20 of file axfr-get.c.

Here is the caller graph for this function:

◆ die_write()

void die_write ( void )

Definition at line 68 of file axfr-get.c.

Here is the caller graph for this function:

◆ doit()

unsigned int doit ( char * buf,
unsigned int len,
unsigned int pos )

Definition at line 131 of file axfr-get.c.

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

◆ main()

int main ( int argc,
char ** argv )

Definition at line 261 of file axfr-get.c.

Here is the call graph for this function:

◆ netget()

void netget ( char * buf,
unsigned int len )

Definition at line 93 of file axfr-get.c.

Here is the caller graph for this function:

◆ printable()

int printable ( char ch)

Definition at line 112 of file axfr-get.c.

Here is the caller graph for this function:

◆ put()

void put ( char * buf,
unsigned int len )

Definition at line 107 of file axfr-get.c.

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

◆ rename()

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

◆ saferead()

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

Definition at line 73 of file axfr-get.c.

Here is the call graph for this function:

◆ safewrite()

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

Definition at line 81 of file axfr-get.c.

Here is the call graph for this function:

◆ x_copy()

unsigned int x_copy ( char * buf,
unsigned int len,
unsigned int pos,
char * out,
unsigned int outlen )

Definition at line 32 of file axfr-get.c.

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

◆ x_getname()

unsigned int x_getname ( char * buf,
unsigned int len,
unsigned int pos,
char ** out )

Definition at line 38 of file axfr-get.c.

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

◆ x_skipname()

unsigned int x_skipname ( char * buf,
unsigned int len,
unsigned int pos )

Definition at line 44 of file axfr-get.c.

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

Variable Documentation

◆ b

buffer b

Definition at line 104 of file axfr-get.c.

◆ bspace

char bspace[1024]

Definition at line 105 of file axfr-get.c.

◆ fd

int fd

Definition at line 103 of file axfr-get.c.

◆ fn

char* fn

Definition at line 53 of file axfr-get.c.

◆ fntmp

char* fntmp

Definition at line 54 of file axfr-get.c.

◆ line

stralloc line ( void )

Definition at line 126 of file axfr-get.c.

◆ match

int match

Definition at line 127 of file axfr-get.c.

◆ netread

buffer netread = BUFFER_INIT(saferead,6,netreadspace,sizeof(netreadspace))

Definition at line 89 of file axfr-get.c.

◆ netreadspace

char netreadspace[1024]

Definition at line 88 of file axfr-get.c.

◆ netwrite

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

Definition at line 91 of file axfr-get.c.

◆ netwritespace

char netwritespace[1024]

Definition at line 90 of file axfr-get.c.

◆ numsoa

int numsoa

Definition at line 129 of file axfr-get.c.

◆ packet

stralloc packet

Definition at line 259 of file axfr-get.c.

◆ zonelen

unsigned int zonelen

Definition at line 52 of file axfr-get.c.