djbdnscurve6 46
djbdnscurve6
Loading...
Searching...
No Matches
log.c File Reference
#include "buffer.h"
#include "uint_t.h"
#include "error.h"
#include "byte.h"
#include "ip.h"
#include "fmt.h"
#include "dns.h"
#include "log.h"
Include dependency graph for log.c:

Go to the source code of this file.

Macros

#define number(x)

Functions

void log_startup (const char listip[16], uint32 scope, const char sendip[16], int size)
void log_query (uint64 *qnum, const char client[16], unsigned int port, const char id[2], const char *q, const char qtype[2], const char *p)
void log_querydone (uint64 *qnum, unsigned int len, const char *p)
void log_querydrop (uint64 *qnum, const char *p)
void log_ignore_referral (const char server[16], const char *control, const char *referral)
void log_tcpopen (const char client[16], unsigned int port)
void log_tcpclose (const char client[16], unsigned int port)
void log_tx (const char *q, const char qtype[2], const char *control, const char servers[QUERY_MAXIPLEN], int flagkey, unsigned int gluelessness)
void log_cachedanswer (const char *q, const char type[2])
void log_cachedcname (const char *dn, const char *dn2)
void log_cachedns (const char *control, const char *ns)
void log_cachednxdomain (const char *dn)
void log_nxdomain (const char server[16], const char *q, unsigned int ttl)
void log_nodata (const char server[16], const char *q, const char qtype[2], unsigned int ttl)
void log_lame (const char server[16], const char *control, const char *referral)
void log_servflag (const char server[16], int flag)
void log_servfail (const char *dn)
void log_rr (const char server[16], const char *q, const char type[2], const char *buf, unsigned int len, unsigned int ttl)
void log_rrns (const char server[16], const char *q, const char *data, unsigned int ttl)
void log_rrcname (const char server[16], const char *q, const char *data, unsigned int ttl)
void log_rrptr (const char server[16], const char *q, const char *data, unsigned int ttl)
void log_rrmx (const char server[16], const char *q, const char *mx, const char pref[2], unsigned int ttl)
void log_rrsoa (const char server[16], const char *q, const char *n1, const char *n2, const char misc[20], unsigned int ttl)
void log_stats (void)

Macro Definition Documentation

◆ number

#define number ( x)
Value:
( (u64 = (x)), u64_print() )
struct line * x
uint64 u64
Definition siphash.c:24

Definition at line 11 of file log.c.

Function Documentation

◆ log_cachedanswer()

void log_cachedanswer ( const char * q,
const char type[2] )

Definition at line 181 of file log.c.

◆ log_cachedcname()

void log_cachedcname ( const char * dn,
const char * dn2 )

Definition at line 188 of file log.c.

◆ log_cachedns()

void log_cachedns ( const char * control,
const char * ns )

Definition at line 194 of file log.c.

◆ log_cachednxdomain()

void log_cachednxdomain ( const char * dn)

Definition at line 200 of file log.c.

◆ log_ignore_referral()

void log_ignore_referral ( const char server[16],
const char * control,
const char * referral )

Definition at line 136 of file log.c.

◆ log_lame()

void log_lame ( const char server[16],
const char * control,
const char * referral )

Definition at line 220 of file log.c.

◆ log_nodata()

void log_nodata ( const char server[16],
const char * q,
const char qtype[2],
unsigned int ttl )

Definition at line 213 of file log.c.

◆ log_nxdomain()

void log_nxdomain ( const char server[16],
const char * q,
unsigned int ttl )

Definition at line 206 of file log.c.

◆ log_query()

void log_query ( uint64 * qnum,
const char client[16],
unsigned int port,
const char id[2],
const char * q,
const char qtype[2],
const char * p )

Definition at line 111 of file log.c.

◆ log_querydone()

void log_querydone ( uint64 * qnum,
unsigned int len,
const char * p )

Definition at line 120 of file log.c.

Here is the caller graph for this function:

◆ log_querydrop()

void log_querydrop ( uint64 * qnum,
const char * p )

Definition at line 127 of file log.c.

Here is the caller graph for this function:

◆ log_rr()

void log_rr ( const char server[16],
const char * q,
const char type[2],
const char * buf,
unsigned int len,
unsigned int ttl )

Definition at line 246 of file log.c.

◆ log_rrcname()

void log_rrcname ( const char server[16],
const char * q,
const char * data,
unsigned int ttl )

Definition at line 270 of file log.c.

◆ log_rrmx()

void log_rrmx ( const char server[16],
const char * q,
const char * mx,
const char pref[2],
unsigned int ttl )

Definition at line 286 of file log.c.

◆ log_rrns()

void log_rrns ( const char server[16],
const char * q,
const char * data,
unsigned int ttl )

Definition at line 263 of file log.c.

◆ log_rrptr()

void log_rrptr ( const char server[16],
const char * q,
const char * data,
unsigned int ttl )

Definition at line 278 of file log.c.

◆ log_rrsoa()

void log_rrsoa ( const char server[16],
const char * q,
const char * n1,
const char * n2,
const char misc[20],
unsigned int ttl )

Definition at line 297 of file log.c.

◆ log_servfail()

void log_servfail ( const char * dn)

Definition at line 237 of file log.c.

◆ log_servflag()

void log_servflag ( const char server[16],
int flag )

Definition at line 227 of file log.c.

◆ log_startup()

void log_startup ( const char listip[16],
uint32 scope,
const char sendip[16],
int size )

Definition at line 95 of file log.c.

◆ log_stats()

void log_stats ( void )

Definition at line 312 of file log.c.

◆ log_tcpclose()

void log_tcpclose ( const char client[16],
unsigned int port )

Definition at line 150 of file log.c.

◆ log_tcpopen()

void log_tcpopen ( const char client[16],
unsigned int port )

Definition at line 143 of file log.c.

◆ log_tx()

void log_tx ( const char * q,
const char qtype[2],
const char * control,
const char servers[QUERY_MAXIPLEN],
int flagkey,
unsigned int gluelessness )

Definition at line 159 of file log.c.