djbdnscurve6  38
djbdnscurve6
Macros | Functions | Variables
tinydns-edit.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "stralloc.h"
#include "buffer.h"
#include "exit.h"
#include "open.h"
#include "getln.h"
#include "logmsg.h"
#include "scan.h"
#include "byte.h"
#include "str.h"
#include "fmt.h"
#include "ip.h"
#include "dns.h"
Include dependency graph for tinydns-edit.c:

Go to the source code of this file.

Macros

#define WHO   "tinydns-edit"
 
#define TTL_NS   259200
 
#define TTL_POSITIVE   86400
 
#define NUMFIELDS   10
 

Functions

void die_usage ()
 
void nomem ()
 
void die_read ()
 
void die_write ()
 
void put (const char *buf, unsigned int len)
 
int main (int argc, char **argv)
 

Variables

char * fn
 
char * fnnew
 
char mode
 
char targetip4 [4]
 
char targetip6 [16]
 
int fd
 
buffer b
 
char bspace [1024]
 
int fdnew
 
buffer bnew
 
char bnewspace [1024]
 
int match = 1
 
char ip4 [4]
 
char ip6 [16]
 
char ip4str [IP4_FMT]
 
char ip6str [IP6_FMT]
 
char strnum [FMT_ULONG]
 

Macro Definition Documentation

◆ NUMFIELDS

#define NUMFIELDS   10

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

◆ TTL_NS

#define TTL_NS   259200

Definition at line 19 of file tinydns-edit.c.

◆ TTL_POSITIVE

#define TTL_POSITIVE   86400

Definition at line 20 of file tinydns-edit.c.

◆ WHO

#define WHO   "tinydns-edit"

Definition at line 17 of file tinydns-edit.c.

Function Documentation

◆ die_read()

void die_read ( void  )

Definition at line 34 of file tinydns-edit.c.

◆ die_usage()

void die_usage ( void  )

Definition at line 25 of file tinydns-edit.c.

◆ die_write()

void die_write ( void  )

Definition at line 38 of file tinydns-edit.c.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 78 of file tinydns-edit.c.

◆ nomem()

void nomem ( void  )

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

◆ put()

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

Definition at line 73 of file tinydns-edit.c.

Here is the call graph for this function:

Variable Documentation

◆ b

buffer b

Definition at line 49 of file tinydns-edit.c.

◆ bnew

buffer bnew

Definition at line 53 of file tinydns-edit.c.

◆ bnewspace

char bnewspace[1024]

Definition at line 54 of file tinydns-edit.c.

◆ bspace

char bspace[1024]

Definition at line 50 of file tinydns-edit.c.

◆ fd

int fd

Definition at line 48 of file tinydns-edit.c.

◆ fdnew

int fdnew

Definition at line 52 of file tinydns-edit.c.

◆ fn

char* fn

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

◆ fnnew

char* fnnew

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

◆ ip4

char ip4[4]

Definition at line 64 of file tinydns-edit.c.

◆ ip4str

char ip4str[IP4_FMT]

Definition at line 66 of file tinydns-edit.c.

◆ ip6

char ip6[16]

Definition at line 65 of file tinydns-edit.c.

◆ ip6str

char ip6str[IP6_FMT]

Definition at line 67 of file tinydns-edit.c.

◆ match

int match = 1

Definition at line 57 of file tinydns-edit.c.

◆ mode

char mode

Definition at line 43 of file tinydns-edit.c.

◆ strnum

char strnum[FMT_ULONG]

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

◆ targetip4

char targetip4[4]

Definition at line 45 of file tinydns-edit.c.

◆ targetip6

char targetip6[16]

Definition at line 46 of file tinydns-edit.c.