Searched refs:rdata (Results 1 - 25 of 190) sorted by relevance

12345678

/bind-9.11.3/lib/dns/include/dns/
H A Dsoa.h42 dns_rdata_t *rdata);
44 * Build the rdata of an SOA record.
49 *\li rdata Points to an initialized dns_rdata_t.
52 * \li *rdata Contains a valid SOA rdata. The 'data' member
57 dns_soa_getserial(dns_rdata_t *rdata);
59 dns_soa_getrefresh(dns_rdata_t *rdata);
61 dns_soa_getretry(dns_rdata_t *rdata);
63 dns_soa_getexpire(dns_rdata_t *rdata);
65 dns_soa_getminimum(dns_rdata_t *rdata);
[all...]
H A Drdata.h16 /*! \file dns/rdata.h
18 * Provides facilities for manipulating DNS rdata, including conversions to
21 * Given the large amount of rdata possible in a nameserver, it was important
22 * to come up with a very efficient way of storing rdata, but at the same
25 * The decision was to store rdata in uncompressed wire format,
27 * server know rdata is stored that way. This saves a lot of memory, and
28 * makes adding rdata to messages easy. Having much of the server know
30 * user of rdata to be manipulating such a low-level structure. This is
31 * where the rdata module comes in. The module allows rdata handle
[all...]
/bind-9.11.3/lib/dns/
H A Dsoa.c19 #include <dns/rdata.h>
40 soa_get(dns_rdata_t *rdata, int offset) { argument
41 INSIST(rdata->type == dns_rdatatype_soa);
52 INSIST(rdata->length >= 20);
54 return (decode_uint32(rdata->data + rdata->length - 20 + offset));
63 dns_rdata_t *rdata) {
86 return (dns_rdata_fromstruct(rdata, rdclass, dns_rdatatype_soa,
91 dns_soa_getserial(dns_rdata_t *rdata) { argument
92 return soa_get(rdata,
58 dns_soa_buildrdata(dns_name_t *origin, dns_name_t *contact, dns_rdataclass_t rdclass, isc_uint32_t serial, isc_uint32_t refresh, isc_uint32_t retry, isc_uint32_t expire, isc_uint32_t minimum, unsigned char *buffer, dns_rdata_t *rdata) argument
95 dns_soa_getrefresh(dns_rdata_t *rdata) argument
99 dns_soa_getretry(dns_rdata_t *rdata) argument
103 dns_soa_getexpire(dns_rdata_t *rdata) argument
107 dns_soa_getminimum(dns_rdata_t *rdata) argument
112 soa_set(dns_rdata_t *rdata, isc_uint32_t val, int offset) argument
120 dns_soa_setserial(isc_uint32_t val, dns_rdata_t *rdata) argument
124 dns_soa_setrefresh(isc_uint32_t val, dns_rdata_t *rdata) argument
128 dns_soa_setretry(isc_uint32_t val, dns_rdata_t *rdata) argument
132 dns_soa_setexpire(isc_uint32_t val, dns_rdata_t *rdata) argument
136 dns_soa_setminimum(isc_uint32_t val, dns_rdata_t *rdata) argument
[all...]
/bind-9.11.3/lib/dns/rdata/generic/
H A Davc_258.c34 REQUIRE(rdata->type == dns_rdatatype_avc);
36 return (generic_totext_txt(rdata, tctx, target));
56 REQUIRE(rdata->type == dns_rdatatype_avc);
60 return (mem_tobuffer(target, rdata->data, rdata->length));
89 REQUIRE(rdata->type == dns_rdatatype_avc);
92 avc->common.rdclass = rdata->rdclass;
93 avc->common.rdtype = rdata->type;
96 return (generic_tostruct_txt(rdata, target, mctx));
111 REQUIRE(rdata
[all...]
H A Dsmimea_53.c26 REQUIRE(rdata->type == dns_rdatatype_smimea);
28 return (generic_totext_tlsa(rdata, tctx, target));
44 REQUIRE(rdata->type == dns_rdatatype_smimea);
45 REQUIRE(rdata->length != 0);
49 dns_rdata_toregion(rdata, &sr);
81 REQUIRE(rdata->type == dns_rdatatype_smimea);
84 txt->common.rdclass = rdata->rdclass;
85 txt->common.rdtype = rdata->type;
88 return (generic_tostruct_tlsa(rdata, target, mctx));
103 REQUIRE(rdata
[all...]
H A Dspf_99.c38 REQUIRE(rdata->type == dns_rdatatype_spf);
40 return (generic_totext_txt(rdata, tctx, target));
60 REQUIRE(rdata->type == dns_rdatatype_spf);
64 return (mem_tobuffer(target, rdata->data, rdata->length));
93 REQUIRE(rdata->type == dns_rdatatype_spf);
96 spf->common.rdclass = rdata->rdclass;
97 spf->common.rdtype = rdata->type;
100 return (generic_tostruct_txt(rdata, target, mctx));
115 REQUIRE(rdata
[all...]
H A Ddnskey_48.c36 REQUIRE(rdata != NULL);
37 REQUIRE(rdata->type == dns_rdatatype_dnskey);
39 return (generic_totext_key(rdata, tctx, target));
55 REQUIRE(rdata != NULL);
56 REQUIRE(rdata->type == dns_rdatatype_dnskey);
57 REQUIRE(rdata->length != 0);
61 dns_rdata_toregion(rdata, &sr);
96 REQUIRE(rdata != NULL);
97 REQUIRE(rdata->type == dns_rdatatype_dnskey);
99 dnskey->common.rdclass = rdata
[all...]
H A Drkey_57.c26 REQUIRE(rdata != NULL);
27 REQUIRE(rdata->type == dns_rdatatype_rkey);
29 return (generic_totext_key(rdata, tctx, target));
45 REQUIRE(rdata != NULL);
46 REQUIRE(rdata->type == dns_rdatatype_rkey);
47 REQUIRE(rdata->length != 0);
51 dns_rdata_toregion(rdata, &sr);
86 REQUIRE(rdata != NULL);
87 REQUIRE(rdata->type == dns_rdatatype_rkey);
89 rkey->common.rdclass = rdata
[all...]
H A Dcdnskey_60.c30 REQUIRE(rdata != NULL);
31 REQUIRE(rdata->type == dns_rdatatype_cdnskey);
33 return (generic_totext_key(rdata, tctx, target));
49 REQUIRE(rdata->type == dns_rdatatype_cdnskey);
50 REQUIRE(rdata->length != 0);
54 dns_rdata_toregion(rdata, &sr);
89 REQUIRE(rdata != NULL);
90 REQUIRE(rdata->type == dns_rdatatype_cdnskey);
92 dnskey->common.rdclass = rdata->rdclass;
93 dnskey->common.rdtype = rdata
[all...]
H A Deui64_109.c54 REQUIRE(rdata->type == dns_rdatatype_eui64);
55 REQUIRE(rdata->length == 8);
61 rdata->data[0], rdata->data[1],
62 rdata->data[2], rdata->data[3],
63 rdata->data[4], rdata->data[5],
64 rdata->data[6], rdata
[all...]
H A Deui48_108.c52 REQUIRE(rdata->type == dns_rdatatype_eui48);
53 REQUIRE(rdata->length == 6);
58 rdata->data[0], rdata->data[1], rdata->data[2],
59 rdata->data[3], rdata->data[4], rdata->data[5]);
84 REQUIRE(rdata->type == dns_rdatatype_eui48);
85 REQUIRE(rdata
[all...]
H A Dproforma.c32 REQUIRE(rdata->type == dns_rdatatype_proforma.c#);
33 REQUIRE(rdata->rdclass == #);
34 REQUIRE(rdata->length != 0); /* XXX */
54 REQUIRE(rdata->type == dns_rdatatype_proforma.c#);
55 REQUIRE(rdata->rdclass == #);
56 REQUIRE(rdata->length != 0); /* XXX */
97 REQUIRE(rdata->type == dns_rdatatype_proforma.c#);
98 REQUIRE(rdata->rdclass == #);
99 REQUIRE(rdata->length != 0); /* XXX */
116 REQUIRE(rdata
[all...]
H A Dcds_59.c35 REQUIRE(rdata->type == dns_rdatatype_cds);
37 return (generic_totext_ds(rdata, tctx, target));
53 REQUIRE(rdata->type == dns_rdatatype_cds);
54 REQUIRE(rdata->length != 0);
58 dns_rdata_toregion(rdata, &sr);
90 REQUIRE(rdata->type == dns_rdatatype_cds);
92 REQUIRE(rdata->length != 0);
97 cds->common.rdclass = rdata->rdclass;
98 cds->common.rdtype = rdata->type;
101 return (generic_tostruct_ds(rdata, targe
[all...]
H A Dunspec_103.c33 REQUIRE(rdata->type == dns_rdatatype_unspec);
37 return (btoa_totext(rdata->data, rdata->length, target));
59 REQUIRE(rdata->type == dns_rdatatype_unspec);
63 return (mem_tobuffer(target, rdata->data, rdata->length));
101 REQUIRE(rdata->type == dns_rdatatype_unspec);
104 unspec->common.rdclass = rdata->rdclass;
105 unspec->common.rdtype = rdata->type;
108 dns_rdata_toregion(rdata,
[all...]
H A Ddlv_32769.c37 REQUIRE(rdata->type == dns_rdatatype_dlv);
39 return (generic_totext_ds(rdata, tctx, target));
55 REQUIRE(rdata->type == dns_rdatatype_dlv);
56 REQUIRE(rdata->length != 0);
60 dns_rdata_toregion(rdata, &sr);
92 REQUIRE(rdata->type == dns_rdatatype_dlv);
94 dlv->common.rdclass = rdata->rdclass;
95 dlv->common.rdtype = rdata->type;
98 return (generic_tostruct_ds(rdata, target, mctx));
118 REQUIRE(rdata
[all...]
H A Dninfo_56.c34 REQUIRE(rdata->type == dns_rdatatype_ninfo);
36 return (generic_totext_txt(rdata, tctx, target));
56 REQUIRE(rdata->type == dns_rdatatype_ninfo);
60 return (mem_tobuffer(target, rdata->data, rdata->length));
89 REQUIRE(rdata->type == dns_rdatatype_ninfo);
91 txt->common.rdclass = rdata->rdclass;
92 txt->common.rdtype = rdata->type;
95 return (generic_tostruct_txt(rdata, target, mctx));
110 REQUIRE(rdata
[all...]
H A Dnull_10.c35 REQUIRE(rdata->type == dns_rdatatype_null);
37 return (unknown_totext(rdata, tctx, target));
58 REQUIRE(rdata->type == dns_rdatatype_null);
62 return (mem_tobuffer(target, rdata->data, rdata->length));
100 REQUIRE(rdata->type == dns_rdatatype_null);
103 null->common.rdclass = rdata->rdclass;
104 null->common.rdtype = rdata->type;
107 dns_rdata_toregion(rdata, &r);
134 UNUSED(rdata);
[all...]
H A Dta_32768.c28 REQUIRE(rdata->type == dns_rdatatype_ta);
30 return (generic_totext_ds(rdata, tctx, target));
46 REQUIRE(rdata->type == dns_rdatatype_ta);
47 REQUIRE(rdata->length != 0);
51 dns_rdata_toregion(rdata, &sr);
83 REQUIRE(rdata->type == dns_rdatatype_ta);
88 ds->common.rdclass = rdata->rdclass;
89 ds->common.rdtype = rdata->type;
92 return (generic_tostruct_ds(rdata, target, mctx));
112 REQUIRE(rdata
[all...]
H A Dl32_105.c57 REQUIRE(rdata->type == dns_rdatatype_l32);
58 REQUIRE(rdata->length == 6);
62 dns_rdata_toregion(rdata, &region);
94 REQUIRE(rdata->type == dns_rdatatype_l32);
95 REQUIRE(rdata->length == 6);
99 return (mem_tobuffer(target, rdata->data, rdata->length));
142 REQUIRE(rdata->type == dns_rdatatype_l32);
144 REQUIRE(rdata->length == 6);
148 l32->common.rdclass = rdata
[all...]
/bind-9.11.3/lib/dns/rdata/hs_4/
H A Da_1.c51 REQUIRE(rdata->type == dns_rdatatype_a);
52 REQUIRE(rdata->rdclass == dns_rdataclass_hs);
53 REQUIRE(rdata->length == 4);
57 dns_rdata_toregion(rdata, &region);
91 REQUIRE(rdata->type == dns_rdatatype_a);
92 REQUIRE(rdata->rdclass == dns_rdataclass_hs);
93 REQUIRE(rdata->length == 4);
98 if (region.length < rdata->length)
100 memmove(region.base, rdata->data, rdata
[all...]
/bind-9.11.3/lib/dns/rdata/in_1/
H A Da_1.c53 REQUIRE(rdata->type == dns_rdatatype_a);
54 REQUIRE(rdata->rdclass == dns_rdataclass_in);
55 REQUIRE(rdata->length == 4);
59 dns_rdata_toregion(rdata, &region);
93 REQUIRE(rdata->type == dns_rdatatype_a);
94 REQUIRE(rdata->rdclass == dns_rdataclass_in);
95 REQUIRE(rdata->length == 4);
100 if (region.length < rdata->length)
102 memmove(region.base, rdata->data, rdata
[all...]
H A Daaaa_28.c56 REQUIRE(rdata->type == dns_rdatatype_aaaa);
57 REQUIRE(rdata->rdclass == dns_rdataclass_in);
58 REQUIRE(rdata->length == 16);
60 dns_rdata_toregion(rdata, &region);
96 REQUIRE(rdata->type == dns_rdatatype_aaaa);
97 REQUIRE(rdata->rdclass == dns_rdataclass_in);
98 REQUIRE(rdata->length == 16);
101 if (region.length < rdata->length)
103 memmove(region.base, rdata->data, rdata
[all...]
H A Ddhcid_49.c39 REQUIRE(rdata->type == dns_rdatatype_dhcid);
40 REQUIRE(rdata->rdclass == dns_rdataclass_in);
41 REQUIRE(rdata->length != 0);
43 dns_rdata_toregion(rdata, &sr);
55 if (rdata->length > 2) {
58 sr2.base[2], rdata->length - 3);
90 REQUIRE(rdata->type == dns_rdatatype_dhcid);
91 REQUIRE(rdata->rdclass == dns_rdataclass_in);
92 REQUIRE(rdata->length != 0);
96 dns_rdata_toregion(rdata,
[all...]
H A Dnsap_22.c74 REQUIRE(rdata->type == dns_rdatatype_nsap);
75 REQUIRE(rdata->rdclass == dns_rdataclass_in);
76 REQUIRE(rdata->length != 0);
80 dns_rdata_toregion(rdata, &region);
113 REQUIRE(rdata->type == dns_rdatatype_nsap);
114 REQUIRE(rdata->rdclass == dns_rdataclass_in);
115 REQUIRE(rdata->length != 0);
119 return (mem_tobuffer(target, rdata->data, rdata->length));
161 REQUIRE(rdata
[all...]
H A Dnsap-ptr_23.c51 REQUIRE(rdata->type == dns_rdatatype_nsap_ptr);
52 REQUIRE(rdata->rdclass == dns_rdataclass_in);
53 REQUIRE(rdata->length != 0);
58 dns_rdata_toregion(rdata, &region);
88 REQUIRE(rdata->type == dns_rdatatype_nsap_ptr);
89 REQUIRE(rdata->rdclass == dns_rdataclass_in);
90 REQUIRE(rdata->length != 0);
94 dns_rdata_toregion(rdata, &region);
150 REQUIRE(rdata->type == dns_rdatatype_nsap_ptr);
151 REQUIRE(rdata
[all...]

Completed in 37 milliseconds

12345678