The Netsukuku Project  0.0.9
An Alternative routing method
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
andns_snsd.h
Go to the documentation of this file.
1 #ifndef ANDNS_SNSD_H
2 #define ANDNS_SNSD_H
3 
4 #include "dnslib.h"
5 #include "andns_lib.h"
6 #include "andna_cache.h"
7 
8 #define ANDNS_SNSD_PROTO_TCP 1
9 #define ANDNS_SNSD_PROTO_UDP 2
10 
11 /* functions */
12 
13 int snsd_main_ip(u_int *hname_hash,snsd_node *dst);
14 int snsd_node_to_data(char *buf,snsd_node *sn,u_char prio,int iplen,int recursion);
15 size_t snsd_node_to_aansw(char *buf,snsd_node *sn,u_char prio,int iplen);
16 int snsd_prio_to_aansws(char *buf,snsd_prio *sp,int iplen,int recursion,int *count);
17 int snsd_service_to_aansws(char *buf,snsd_service *ss,int iplen,int *count,int recursion);
18 int snsd_node_to_dansw(dns_pkt *dp,snsd_node *sn,int iplen);
19 int snsd_prio_to_dansws(dns_pkt *dp,snsd_prio *sp,int iplen);
21 size_t lcl_cache_to_aansws(char *buf,lcl_cache *lc,int *count);
22 #endif /* ANDNS_SNSD_H */
Definition: snsd_cache.h:114
int snsd_node_to_data(char *buf, snsd_node *sn, u_char prio, int iplen, int recursion)
Definition: andns_snsd.c:59
int snsd_prio_to_dansws(dns_pkt *dp, snsd_prio *sp, int iplen)
Definition: andns_snsd.c:255
Definition: snsd_cache.h:97
int snsd_service_to_aansws(char *buf, snsd_service *ss, int iplen, int *count, int recursion)
Definition: andns_snsd.c:147
int snsd_prio_to_aansws(char *buf, snsd_prio *sp, int iplen, int recursion, int *count)
Definition: andns_snsd.c:128
Definition: snsd_cache.h:125
size_t lcl_cache_to_aansws(char *buf, lcl_cache *lc, int *count)
Definition: andns_snsd.c:297
size_t snsd_node_to_aansw(char *buf, snsd_node *sn, u_char prio, int iplen)
Definition: dnslib.h:111
int snsd_main_ip(u_int *hname_hash, snsd_node *dst)
Definition: andns_snsd.c:22
int snsd_node_to_dansw(dns_pkt *dp, snsd_node *sn, int iplen)
Definition: andns_snsd.c:226
Definition: andna_cache.h:172
int lcl_cache_to_dansws(dns_pkt *dp, lcl_cache *lc)
Definition: andns_snsd.c:275