25 #define MY_NAMESERV "nameserver 127.0.0.1"
26 #define MY_NAMESERV_IPV6 "nameserver ::1"
27 #define ETC_RESOLV_CONF "/etc/resolv.conf"
28 #define ETC_RESOLV_CONF_BAK "/etc/resolv.conf.bak"
31 #define ANDNA_MAX_FLOODS (ANDNA_MAX_QUEUE*3+1)
34 #define ANDNA_MAX_NEW_GNODES 1024
76 #define ANDNA_HOOK_TIMEOUT 8
77 #define ANDNA_REV_RESOLVE_RQ_TIMEOUT 60
80 #define ANDNA_PKT_UPDATE 1
81 #define ANDNA_PKT_FORWARD (1<<1)
82 #define ANDNA_PKT_REV_RESOLVE (1<<2)
83 #define ANDNA_PKT_JUST_CHECK (1<<3)
85 #define ANDNA_PKT_SNSD_DEL (1<<4)
118 #define ANDNA_REG_PKT_SZ (sizeof(struct andna_reg_pkt))
119 #define ANDNA_REG_SIGNED_BLOCK_SZ (ANDNA_REG_PKT_SZ - ANDNA_SIGNATURE_LEN - \
144 #define ANDNA_RESOLVE_RQ_PKT_SZ (sizeof(struct andna_resolve_rq_pkt))
164 #define ANDNA_RESOLVE_REPLY_PKT_SZ (sizeof(struct andna_resolve_reply_pkt))
211 #define SINGLE_ACACHE_PKT_SZ(hgnodes) (sizeof(struct single_acache_hdr)+\
227 #define SPREAD_ACACHE_PKT_SZ (sizeof(struct spread_acache_pkt))
253 u_char proto,
int *records);
int andna_recv_resolve_rq(PACKET rpkt)
Definition: andna.c:1507
static const int_info andna_reg_pkt_iinfo
Definition: andna.h:121
u_int hash[4]
Definition: andna.h:225
char sign[128]
Definition: andna.h:111
snsd_service * andna_resolve_hname(char *hname, int service, u_char proto, int *records)
Definition: andna.c:1491
Definition: andna_cache.h:95
char flags
Definition: andna.h:137
int recv_spread_single_acache(PACKET rpkt)
Definition: andna.c:2062
u_int rip[4]
Definition: andna.h:103
int last_spread_acache_pkt_id[(5 *3+1)]
Definition: andna.h:44
u_short hname_updates
Definition: andna.h:108
void andna_init(void)
Definition: andna.c:158
int last_reg_pkt_id[(5 *3+1)]
Definition: andna.h:42
u_int rip[4]
Definition: andna.h:136
andna_cache * get_single_andna_c(u_int hash[4], u_int hash_gnode[4])
Definition: andna.c:1794
static const int_info spread_acache_pkt_info
Definition: andna.h:228
#define INT_TYPE_16BIT
Definition: endianness.h:36
int andna_recv_rev_resolve_rq(PACKET rpkt)
Definition: andna.c:1737
#define ANDNA_SIGNATURE_LEN
Definition: andna_cache.h:47
static const int_info single_acache_hdr_iinfo
Definition: andna.h:200
struct andna_reg_pkt _PACKED_
u_short hgnodes
Definition: andna.h:196
int last_counter_pkt_id[(5 *3+1)]
Definition: andna.h:43
void * andna_maintain_hnames_active(void *null)
Definition: andna.c:2420
#define ANDNA_MAX_FLOODS
Definition: andna.h:31
lcl_cache * andna_reverse_resolve(inet_prefix ip)
Definition: andna.c:1684
Definition: snsd_cache.h:125
static const int_info andna_resolve_reply_pkt_iinfo
Definition: andna.h:165
#define MAX_IP_SZ
Definition: inet.h:25
int spread_single_acache(u_int hash[4])
Definition: andna.c:2037
int andna_save_caches(void)
Definition: andna.c:103
int put_counter_cache(PACKET rq_pkt)
Definition: andna.c:2256
int andna_load_caches(void)
Definition: andna.c:60
#define MAX_IP_INT
Definition: inet.h:24
u_int hash[4]
Definition: andna.h:195
char pubkey[140]
Definition: andna.h:106
int put_single_acache(PACKET rpkt)
Definition: andna.c:1867
void andna_resolvconf_restore(void)
Definition: andna.c:140
u_int hash[4]
Definition: andna.h:139
int put_andna_cache(PACKET rq_pkt)
Definition: andna.c:2174
u_int hash[4]
Definition: andna.h:104
int andna_register_hname(lcl_cache *alcl, snsd_service *snsd_delete)
Definition: andna.c:611
#define INT_INFO
Definition: endianness.h:90
Definition: andna_cache.h:172
static const int_info andna_resolve_rq_pkt_iinfo
Definition: andna.h:145
u_char flags
Definition: andna.h:198
void andna_update_hnames(int only_new_hname)
Definition: andna.c:2388
int service
Definition: andna.h:141
snsd_service * andna_resolve_hash(u_int hname_hash[4], int service, u_char proto, int *records)
Definition: andna.c:1357
u_int rip[4]
Definition: andna.h:194
char flags
Definition: andna.h:115
u_char proto
Definition: andna.h:142
int andna_check_counter(PACKET pkt)
Definition: andna.c:1015
void andna_close(void)
Definition: andna.c:214
int andna_recv_reg_rq(PACKET rpkt)
Definition: andna.c:729
void andna_resolvconf_modify(void)
Definition: andna.c:123
#define INT_TYPE_32BIT
Definition: endianness.h:35
#define ANDNA_PKEY_LEN
Definition: andna_cache.h:45
int andna_recv_check_counter(PACKET rpkt)
Definition: andna.c:1079
uint32_t timestamp
Definition: andna.h:156
void * andna_main(void *)
Definition: andna.c:2458
void * andna_hook(void *)
Definition: andna.c:2297