djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
tinydns-data.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "uint_t.h"
#include "str.h"
#include "byte.h"
#include "fmt.h"
#include "ip.h"
#include "exit.h"
#include "case.h"
#include "scan.h"
#include "buffer.h"
#include "logmsg.h"
#include "getln.h"
#include "cdbmake.h"
#include "stralloc.h"
#include "readclose.h"
#include "open.h"
#include "dns.h"
Include dependency graph for tinydns-data.c:

Go to the source code of this file.

Macros

#define TTL_NS   259200
#define TTL_POSITIVE   86400
#define TTL_NEGATIVE   2560
#define TXT_LABLEN   255
#define WHO   "tinydns-data"
#define NUMFIELDS   15

Functions

int rename (const char *, const char *)
void die_datatmp (void)
void nomem (void)
void ttdparse (stralloc *sa, char ttd[8])
void locparse (stralloc *sa, char loc[2])
void ipprefix_get (stralloc *out, char *s)
void hexparse (stralloc *sa)
void txtparse (stralloc *sa)
void textparse (stralloc *sa)
void defaultsoa_init (int fd)
void rr_add (const char *buf, unsigned int len)
void rr_addname (const char *d)
void rr_start (const char type[2], unsigned long ttl, const char ttd[8], const char loc[2])
void rr_finish (const char *owner)
void syntaxerror (const char *why)
int main ()

Variables

char defaultsoa [20]
int fdcdb
struct cdb_make cdb
buffer b
char bspace [1024]
int match = 1
unsigned long linenum = 0
char d4ptr [DNS_NAME4_DOMAIN]
char d6ptr [DNS_NAME6_DOMAIN]
char strnum [FMT_ULONG]

Macro Definition Documentation

◆ NUMFIELDS

#define NUMFIELDS   15

Definition at line 218 of file tinydns-data.c.

◆ TTL_NEGATIVE

#define TTL_NEGATIVE   2560

Definition at line 23 of file tinydns-data.c.

◆ TTL_NS

#define TTL_NS   259200

Definition at line 21 of file tinydns-data.c.

◆ TTL_POSITIVE

#define TTL_POSITIVE   86400

Definition at line 22 of file tinydns-data.c.

◆ TXT_LABLEN

#define TXT_LABLEN   255

Definition at line 24 of file tinydns-data.c.

◆ WHO

#define WHO   "tinydns-data"

Definition at line 26 of file tinydns-data.c.

Function Documentation

◆ defaultsoa_init()

void defaultsoa_init ( int fd)

Definition at line 157 of file tinydns-data.c.

Here is the caller graph for this function:

◆ die_datatmp()

void die_datatmp ( void )

Definition at line 30 of file tinydns-data.c.

Here is the caller graph for this function:

◆ hexparse()

void hexparse ( stralloc * sa)

Definition at line 86 of file tinydns-data.c.

Here is the caller graph for this function:

◆ ipprefix_get()

void ipprefix_get ( stralloc * out,
char * s )

Definition at line 68 of file tinydns-data.c.

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

◆ locparse()

void locparse ( stralloc * sa,
char loc[2] )

Definition at line 59 of file tinydns-data.c.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 234 of file tinydns-data.c.

Here is the call graph for this function:

◆ nomem()

void nomem ( void )

Definition at line 35 of file tinydns-data.c.

Here is the caller graph for this function:

◆ rename()

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

◆ rr_add()

void rr_add ( const char * buf,
unsigned int len )

Definition at line 174 of file tinydns-data.c.

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

◆ rr_addname()

void rr_addname ( const char * d)

Definition at line 179 of file tinydns-data.c.

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

◆ rr_finish()

void rr_finish ( const char * owner)

Definition at line 199 of file tinydns-data.c.

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

◆ rr_start()

void rr_start ( const char type[2],
unsigned long ttl,
const char ttd[8],
const char loc[2] )

Definition at line 184 of file tinydns-data.c.

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

◆ syntaxerror()

void syntaxerror ( const char * why)

Definition at line 228 of file tinydns-data.c.

Here is the caller graph for this function:

◆ textparse()

void textparse ( stralloc * sa)

Definition at line 138 of file tinydns-data.c.

Here is the caller graph for this function:

◆ ttdparse()

void ttdparse ( stralloc * sa,
char ttd[8] )

Definition at line 40 of file tinydns-data.c.

Here is the caller graph for this function:

◆ txtparse()

void txtparse ( stralloc * sa)

Definition at line 108 of file tinydns-data.c.

Here is the caller graph for this function:

Variable Documentation

◆ b

buffer b

Definition at line 211 of file tinydns-data.c.

◆ bspace

char bspace[1024]

Definition at line 212 of file tinydns-data.c.

◆ cdb

struct cdb_make cdb

Definition at line 169 of file tinydns-data.c.

◆ d4ptr

char d4ptr[DNS_NAME4_DOMAIN]

Definition at line 223 of file tinydns-data.c.

◆ d6ptr

char d6ptr[DNS_NAME6_DOMAIN]

Definition at line 224 of file tinydns-data.c.

◆ defaultsoa

char defaultsoa[20]

Definition at line 155 of file tinydns-data.c.

◆ fdcdb

int fdcdb

Definition at line 168 of file tinydns-data.c.

◆ linenum

unsigned long linenum = 0

Definition at line 216 of file tinydns-data.c.

◆ match

int match = 1

Definition at line 215 of file tinydns-data.c.

◆ strnum

char strnum[FMT_ULONG]

Definition at line 226 of file tinydns-data.c.