Experimental: rr types as pointer to struct, not enum.
[adns] / src / reply.c
1 /**/
2
3 #include "internal.h"
4
5 void adns__procdgram(adns_state ads, const byte *dgram, int len, int serv) {
6 /* FIXME do something with incoming datagrams */
7 adns__diag(ads,serv,"received datagram size %d",len);
8
9
10 }
11
12 struct adns__rrtype adns_r_a [1]= {{ 1, rcf_a }};
13 struct adns__rrtype adns_r_ns [1]= {{ 2, rcf_ns }};
14 struct adns__rrtype adns_r_ns_raw [1]= {{ 2, rcf_domain }};
15 struct adns__rrtype adns_r_ns [1]= {{ 5, rcf_cname }};
16 struct adns__rrtype adns_r_soa [1]= {{ 5, rcf_soa }};
17 struct adns__rrtype adns_r_soa_raw [1]= {{ 6, rcf_soa_raw }};
18 struct adns__rrtype adns_r_null [1]= {{ 10, rcf_null }};
19 struct adns__rrtype adns_r_ptr [1]= {{ 12, rcf_ptr }};
20 struct adns__rrtype adns_r_ptr_raw [1]= {{ 12, rcf_ptr_raw }};
21 struct adns__rrtype adns_r_hinfo [1]= {{ 13, rcf_hinfo }};
22 struct adns__rrtype adns_r_mx [1]= {{ 15, rcf_mx }};
23 struct adns__rrtype adns_r_mx_raw [1]= {{ 15, rcf_mx_raw }};
24 struct adns__rrtype adns_r_txt [1]= {{ 16, rcf_txt }};
25 struct adns__rrtype adns_r_rp [1]= {{ 17, rcf_rp_raw }};
26 struct adns__rrtype adns_r_rp_raw [1]= {{ 17, rcf_rp_raw }};