The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
dnslib.c File Reference
#include <string.h>
#include "dnslib.h"
#include "err_errno.h"
#include "log.h"
#include "xmalloc.h"
Include dependency graph for dnslib.c:

Macros

#define _GNU_SOURCE
 

Functions

int getlblptr (char *buf)
 
int read_label_octet (const char *src, char *dst, int limit)
 
int lbltoname (char *buf, char *start_pkt, char *dst, int limit)
 
int swap_straddr (char *src, char *dst)
 
int swap_straddr6 (char *src, char *dst)
 
int rm_inv_prefix (char *src, char *dst)
 
int add_inv_prefix (char *s, int family)
 
int swapped_straddr (char *src, char *dst)
 
int swapped_straddr_pref (char *src, char *dst, int family)
 
int nametolbl (char *name, char *dst)
 
int d_hdr_u (char *buf, dns_pkt_hdr *dph)
 
int d_qst_u (char *start_buf, char *buf, dns_pkt *dp, int limit_len)
 
int d_qsts_u (char *start_buf, char *buf, dns_pkt *dp, int limit_len)
 
int d_a_u (char *start_buf, char *buf, dns_pkt_a **dpa_orig, int limit_len)
 
int d_as_u (char *start_buf, char *buf, dns_pkt_a **dpa, int limit_len, int count)
 
int d_u (char *buf, int pktlen, dns_pkt **dpp)
 
int d_hdr_p (dns_pkt *dp, char *buf)
 
int d_qst_p (dns_pkt_qst *dpq, char *buf, int limitlen)
 
int d_qsts_p (dns_pkt *dp, char *buf, int limitlen)
 
int d_a_p (dns_pkt_a *dpa, char *buf, int limitlen)
 
int d_as_p (dns_pkt_a *dpa, char *buf, int limitlen, int count)
 
int d_p (dns_pkt *dp, char *buf)
 
dns_pktcreate_dns_pkt (void)
 
dns_pkt_qstcreate_dns_pkt_qst (void)
 
dns_pkt_acreate_dns_pkt_a (void)
 
dns_pkt_qstdns_add_qst (dns_pkt *dp)
 
void dns_del_last_qst (dns_pkt *dp)
 
dns_pkt_adns_add_a (dns_pkt_a **dpa)
 
void dns_a_default_fill (dns_pkt *dp, dns_pkt_a *dpa)
 
void destroy_dns_pkt (dns_pkt *dp)
 

Macro Definition Documentation

#define _GNU_SOURCE

Function Documentation

int add_inv_prefix ( char *  s,
int  family 
)

Here is the caller graph for this function:

dns_pkt* create_dns_pkt ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

dns_pkt_a* create_dns_pkt_a ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

dns_pkt_qst* create_dns_pkt_qst ( void  )

Here is the call graph for this function:

Here is the caller graph for this function:

int d_a_p ( dns_pkt_a dpa,
char *  buf,
int  limitlen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_a_u ( char *  start_buf,
char *  buf,
dns_pkt_a **  dpa_orig,
int  limit_len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_as_p ( dns_pkt_a dpa,
char *  buf,
int  limitlen,
int  count 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_as_u ( char *  start_buf,
char *  buf,
dns_pkt_a **  dpa,
int  limit_len,
int  count 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_hdr_p ( dns_pkt dp,
char *  buf 
)

Here is the caller graph for this function:

int d_hdr_u ( char *  buf,
dns_pkt_hdr dph 
)

Here is the caller graph for this function:

int d_p ( dns_pkt dp,
char *  buf 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_qst_p ( dns_pkt_qst dpq,
char *  buf,
int  limitlen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_qst_u ( char *  start_buf,
char *  buf,
dns_pkt dp,
int  limit_len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_qsts_p ( dns_pkt dp,
char *  buf,
int  limitlen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_qsts_u ( char *  start_buf,
char *  buf,
dns_pkt dp,
int  limit_len 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int d_u ( char *  buf,
int  pktlen,
dns_pkt **  dpp 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void destroy_dns_pkt ( dns_pkt dp)

Here is the caller graph for this function:

void dns_a_default_fill ( dns_pkt dp,
dns_pkt_a dpa 
)

Here is the caller graph for this function:

dns_pkt_a* dns_add_a ( dns_pkt_a **  dpa)

Here is the call graph for this function:

Here is the caller graph for this function:

dns_pkt_qst* dns_add_qst ( dns_pkt dp)

Here is the call graph for this function:

Here is the caller graph for this function:

void dns_del_last_qst ( dns_pkt dp)
int getlblptr ( char *  buf)

Here is the call graph for this function:

Here is the caller graph for this function:

int lbltoname ( char *  buf,
char *  start_pkt,
char *  dst,
int  limit 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int nametolbl ( char *  name,
char *  dst 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int read_label_octet ( const char *  src,
char *  dst,
int  limit 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int rm_inv_prefix ( char *  src,
char *  dst 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int swap_straddr ( char *  src,
char *  dst 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int swap_straddr6 ( char *  src,
char *  dst 
)

Here is the caller graph for this function:

int swapped_straddr ( char *  src,
char *  dst 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int swapped_straddr_pref ( char *  src,
char *  dst,
int  family 
)

Here is the call graph for this function:

Here is the caller graph for this function: