The Netsukuku Project
0.0.9
An Alternative routing method
|
#include <string.h>
#include <netdb.h>
#include "includes.h"
#include "common.h"
#include "andns.h"
#include "err_errno.h"
#include "andna.h"
#include "andns_lib.h"
#include "andns_net.h"
#include "andns_snsd.h"
#include "dnslib.h"
Macros | |
#define | _GNU_SOURCE |
Functions | |
int | store_ns (char *ns) |
int | collect_resolv_conf (char *resolve_conf) |
void | reset_andns_ns (void) |
int | andns_init (int restricted, char *resolv_conf, int family) |
void | andns_close (void) |
int | ns_general_send (char *msg, int msglen, char *answer, int anslen) |
void | dpktacpy (dns_pkt *dst, dns_pkt *src, const char *prefix) |
dns_pkt * | dpktcpy (dns_pkt *src, const char *prefix) |
char * | rm_realm_prefix (char *from, char *dst, int type) |
dns_pkt * | dpktcpy_rm_pref (dns_pkt *src) |
int | andns_realm (dns_pkt_qst *dpq, int *prefixed) |
int | is_prefixed (dns_pkt *dp) |
int | qtype_a_to_d (andns_pkt *ap) |
int | apqsttodpqst (andns_pkt *ap, dns_pkt **dpsrc) |
int | dpanswtoapansw (dns_pkt *dp, andns_pkt *ap) |
int | andns_gethostbyname (char *hname, inet_prefix *ip) |
int | dns_forward (dns_pkt *dp, char *msg, int msglen, char *answer) |
int | inet_rslv (dns_pkt *dp, char *msg, int msglen, char *answer) |
int | nk_rslv (andns_pkt *ap, char *msg, int msglen, char *answer) |
int | nk_forward (andns_pkt *ap, char *msg, int msglen, char *answer) |
char * | andns_rslv (char *msg, int msglen, char *answer, int *answ_len) |
Variables | |
static uint8_t | _dns_forwarding_ |
static uint8_t | _andns_ns_count_ |
static uint8_t | _default_realm_ |
static struct addrinfo | _ns_filter_ |
static struct addrinfo * | _andns_ns_ [3] |
static int | _ip_len_ |
#define _GNU_SOURCE |
void andns_close | ( | void | ) |
int andns_gethostbyname | ( | char * | hname, |
inet_prefix * | ip | ||
) |
int andns_init | ( | int | restricted, |
char * | resolv_conf, | ||
int | family | ||
) |
int andns_realm | ( | dns_pkt_qst * | dpq, |
int * | prefixed | ||
) |
char* andns_rslv | ( | char * | msg, |
int | msglen, | ||
char * | answer, | ||
int * | answ_len | ||
) |
int collect_resolv_conf | ( | char * | resolve_conf | ) |
int dns_forward | ( | dns_pkt * | dp, |
char * | msg, | ||
int | msglen, | ||
char * | answer | ||
) |
int inet_rslv | ( | dns_pkt * | dp, |
char * | msg, | ||
int | msglen, | ||
char * | answer | ||
) |
int is_prefixed | ( | dns_pkt * | dp | ) |
int nk_forward | ( | andns_pkt * | ap, |
char * | msg, | ||
int | msglen, | ||
char * | answer | ||
) |
int nk_rslv | ( | andns_pkt * | ap, |
char * | msg, | ||
int | msglen, | ||
char * | answer | ||
) |
int ns_general_send | ( | char * | msg, |
int | msglen, | ||
char * | answer, | ||
int | anslen | ||
) |
int qtype_a_to_d | ( | andns_pkt * | ap | ) |
void reset_andns_ns | ( | void | ) |
char* rm_realm_prefix | ( | char * | from, |
char * | dst, | ||
int | type | ||
) |
int store_ns | ( | char * | ns | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |