1/*
2 * Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1998-2003 Internet Software Consortium.
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18/***************
19 ***************
20 ***************   THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
21 ***************   DO NOT EDIT!
22 ***************
23 ***************/
24
25/*! \file */
26
27/*
28 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
29 * Copyright (C) 1999-2001  Internet Software Consortium.
30 *
31 * Permission to use, copy, modify, and/or distribute this software for any
32 * purpose with or without fee is hereby granted, provided that the above
33 * copyright notice and this permission notice appear in all copies.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
36 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
38 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
40 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41 * PERFORMANCE OF THIS SOFTWARE.
42 */
43
44/* Id: rdatastructpre.h,v 1.16 2007/06/19 23:47:17 tbox Exp */
45
46#ifndef DNS_RDATASTRUCT_H
47#define DNS_RDATASTRUCT_H 1
48
49#include <isc/lang.h>
50#include <isc/sockaddr.h>
51
52#include <dns/name.h>
53#include <dns/types.h>
54
55ISC_LANG_BEGINDECLS
56
57typedef struct dns_rdatacommon {
58	dns_rdataclass_t			rdclass;
59	dns_rdatatype_t				rdtype;
60	ISC_LINK(struct dns_rdatacommon)	link;
61} dns_rdatacommon_t;
62
63#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \
64	do { \
65		(_data)->common.rdtype = (_rdtype); \
66		(_data)->common.rdclass = (_rdclass); \
67		ISC_LINK_INIT(&(_data)->common, link); \
68	} while (0)
69/*
70 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
71 * Copyright (C) 1998-2001  Internet Software Consortium.
72 *
73 * Permission to use, copy, modify, and/or distribute this software for any
74 * purpose with or without fee is hereby granted, provided that the above
75 * copyright notice and this permission notice appear in all copies.
76 *
77 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
78 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
79 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
80 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
81 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
82 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
83 * PERFORMANCE OF THIS SOFTWARE.
84 */
85
86/* */
87#ifndef IN_1_A_1_H
88#define IN_1_A_1_H 1
89
90/* Id: a_1.h,v 1.28 2007/06/19 23:47:17 tbox Exp */
91
92typedef struct dns_rdata_in_a {
93	dns_rdatacommon_t	common;
94	struct in_addr          in_addr;
95} dns_rdata_in_a_t;
96
97#endif /* IN_1_A_1_H */
98/*
99 * Copyright (C) 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
100 *
101 * Permission to use, copy, modify, and/or distribute this software for any
102 * purpose with or without fee is hereby granted, provided that the above
103 * copyright notice and this permission notice appear in all copies.
104 *
105 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
106 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
107 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
108 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
109 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
110 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
111 * PERFORMANCE OF THIS SOFTWARE.
112 */
113
114/* Id: a_1.h,v 1.5 2007/06/19 23:47:17 tbox Exp */
115
116/* by Bjorn.Victor@it.uu.se, 2005-05-07 */
117/* Based on generic/mx_15.h */
118
119#ifndef CH_3_A_1_H
120#define CH_3_A_1_H 1
121
122typedef isc_uint16_t ch_addr_t;
123
124typedef struct dns_rdata_ch_a {
125	dns_rdatacommon_t	common;
126	isc_mem_t		*mctx;
127  	dns_name_t		ch_addr_dom; /* ch-addr domain for back mapping */
128	ch_addr_t		ch_addr; /* chaos address (16 bit) network order */
129} dns_rdata_ch_a_t;
130
131#endif /* CH_3_A_1_H */
132/*
133 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
134 * Copyright (C) 1999-2001  Internet Software Consortium.
135 *
136 * Permission to use, copy, modify, and/or distribute this software for any
137 * purpose with or without fee is hereby granted, provided that the above
138 * copyright notice and this permission notice appear in all copies.
139 *
140 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
141 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
142 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
143 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
144 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
145 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
146 * PERFORMANCE OF THIS SOFTWARE.
147 */
148
149/* */
150#ifndef HS_4_A_1_H
151#define HS_4_A_1_H 1
152
153/* Id: a_1.h,v 1.12 2007/06/19 23:47:17 tbox Exp */
154
155typedef struct dns_rdata_hs_a {
156	dns_rdatacommon_t	common;
157	struct in_addr          in_addr;
158} dns_rdata_hs_a_t;
159
160#endif /* HS_4_A_1_H */
161/*
162 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
163 * Copyright (C) 1998-2001  Internet Software Consortium.
164 *
165 * Permission to use, copy, modify, and/or distribute this software for any
166 * purpose with or without fee is hereby granted, provided that the above
167 * copyright notice and this permission notice appear in all copies.
168 *
169 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
170 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
171 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
172 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
173 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
174 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
175 * PERFORMANCE OF THIS SOFTWARE.
176 */
177
178/* */
179#ifndef GENERIC_NS_2_H
180#define GENERIC_NS_2_H 1
181
182/* Id: ns_2.h,v 1.27 2007/06/19 23:47:17 tbox Exp */
183
184typedef struct dns_rdata_ns {
185	dns_rdatacommon_t	common;
186	isc_mem_t		*mctx;
187	dns_name_t		name;
188} dns_rdata_ns_t;
189
190
191#endif /* GENERIC_NS_2_H */
192/*
193 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
194 * Copyright (C) 1998-2001  Internet Software Consortium.
195 *
196 * Permission to use, copy, modify, and/or distribute this software for any
197 * purpose with or without fee is hereby granted, provided that the above
198 * copyright notice and this permission notice appear in all copies.
199 *
200 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
201 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
202 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
203 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
204 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
205 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
206 * PERFORMANCE OF THIS SOFTWARE.
207 */
208
209/* */
210#ifndef GENERIC_MD_3_H
211#define GENERIC_MD_3_H 1
212
213/* Id: md_3.h,v 1.28 2007/06/19 23:47:17 tbox Exp */
214
215typedef struct dns_rdata_md {
216	dns_rdatacommon_t	common;
217	isc_mem_t		*mctx;
218	dns_name_t		md;
219} dns_rdata_md_t;
220
221
222#endif /* GENERIC_MD_3_H */
223/*
224 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
225 * Copyright (C) 1998-2001  Internet Software Consortium.
226 *
227 * Permission to use, copy, modify, and/or distribute this software for any
228 * purpose with or without fee is hereby granted, provided that the above
229 * copyright notice and this permission notice appear in all copies.
230 *
231 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
232 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
233 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
234 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
235 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
236 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
237 * PERFORMANCE OF THIS SOFTWARE.
238 */
239
240/* */
241#ifndef GENERIC_MF_4_H
242#define GENERIC_MF_4_H 1
243
244/* Id: mf_4.h,v 1.26 2007/06/19 23:47:17 tbox Exp */
245
246typedef struct dns_rdata_mf {
247	dns_rdatacommon_t	common;
248	isc_mem_t		*mctx;
249	dns_name_t		mf;
250} dns_rdata_mf_t;
251
252#endif /* GENERIC_MF_4_H */
253/*
254 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
255 * Copyright (C) 1998-2001  Internet Software Consortium.
256 *
257 * Permission to use, copy, modify, and/or distribute this software for any
258 * purpose with or without fee is hereby granted, provided that the above
259 * copyright notice and this permission notice appear in all copies.
260 *
261 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
262 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
263 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
264 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
265 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
266 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
267 * PERFORMANCE OF THIS SOFTWARE.
268 */
269
270/* Id: cname_5.h,v 1.26 2007/06/19 23:47:17 tbox Exp */
271
272#ifndef GENERIC_CNAME_5_H
273#define GENERIC_CNAME_5_H 1
274
275typedef struct dns_rdata_cname {
276	dns_rdatacommon_t	common;
277	isc_mem_t		*mctx;
278	dns_name_t		cname;
279} dns_rdata_cname_t;
280
281#endif /* GENERIC_CNAME_5_H */
282/*
283 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
284 * Copyright (C) 1998-2001  Internet Software Consortium.
285 *
286 * Permission to use, copy, modify, and/or distribute this software for any
287 * purpose with or without fee is hereby granted, provided that the above
288 * copyright notice and this permission notice appear in all copies.
289 *
290 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
291 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
292 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
293 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
294 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
295 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
296 * PERFORMANCE OF THIS SOFTWARE.
297 */
298
299/* */
300#ifndef GENERIC_SOA_6_H
301#define GENERIC_SOA_6_H 1
302
303/* Id: soa_6.h,v 1.32 2007/06/19 23:47:17 tbox Exp */
304
305typedef struct dns_rdata_soa {
306	dns_rdatacommon_t	common;
307	isc_mem_t		*mctx;
308	dns_name_t		origin;
309	dns_name_t		contact;
310	isc_uint32_t		serial;		/*%< host order */
311	isc_uint32_t		refresh;	/*%< host order */
312	isc_uint32_t		retry;		/*%< host order */
313	isc_uint32_t		expire;		/*%< host order */
314	isc_uint32_t		minimum;	/*%< host order */
315} dns_rdata_soa_t;
316
317
318#endif /* GENERIC_SOA_6_H */
319/*
320 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
321 * Copyright (C) 1998-2001  Internet Software Consortium.
322 *
323 * Permission to use, copy, modify, and/or distribute this software for any
324 * purpose with or without fee is hereby granted, provided that the above
325 * copyright notice and this permission notice appear in all copies.
326 *
327 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
328 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
329 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
330 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
331 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
332 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
333 * PERFORMANCE OF THIS SOFTWARE.
334 */
335
336/* */
337#ifndef GENERIC_MB_7_H
338#define GENERIC_MB_7_H 1
339
340/* Id: mb_7.h,v 1.27 2007/06/19 23:47:17 tbox Exp */
341
342typedef struct dns_rdata_mb {
343	dns_rdatacommon_t	common;
344	isc_mem_t		*mctx;
345	dns_name_t		mb;
346} dns_rdata_mb_t;
347
348#endif /* GENERIC_MB_7_H */
349/*
350 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
351 * Copyright (C) 1998-2001  Internet Software Consortium.
352 *
353 * Permission to use, copy, modify, and/or distribute this software for any
354 * purpose with or without fee is hereby granted, provided that the above
355 * copyright notice and this permission notice appear in all copies.
356 *
357 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
358 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
359 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
360 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
361 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
362 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
363 * PERFORMANCE OF THIS SOFTWARE.
364 */
365
366/* */
367#ifndef GENERIC_MG_8_H
368#define GENERIC_MG_8_H 1
369
370/* Id: mg_8.h,v 1.26 2007/06/19 23:47:17 tbox Exp */
371
372typedef struct dns_rdata_mg {
373	dns_rdatacommon_t	common;
374	isc_mem_t		*mctx;
375	dns_name_t		mg;
376} dns_rdata_mg_t;
377
378#endif /* GENERIC_MG_8_H */
379/*
380 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
381 * Copyright (C) 1998-2001  Internet Software Consortium.
382 *
383 * Permission to use, copy, modify, and/or distribute this software for any
384 * purpose with or without fee is hereby granted, provided that the above
385 * copyright notice and this permission notice appear in all copies.
386 *
387 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
388 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
389 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
390 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
391 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
392 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
393 * PERFORMANCE OF THIS SOFTWARE.
394 */
395
396/* */
397#ifndef GENERIC_MR_9_H
398#define GENERIC_MR_9_H 1
399
400/* Id: mr_9.h,v 1.26 2007/06/19 23:47:17 tbox Exp */
401
402typedef struct dns_rdata_mr {
403	dns_rdatacommon_t	common;
404	isc_mem_t		*mctx;
405	dns_name_t		mr;
406} dns_rdata_mr_t;
407
408#endif /* GENERIC_MR_9_H */
409/*
410 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
411 * Copyright (C) 1998-2001  Internet Software Consortium.
412 *
413 * Permission to use, copy, modify, and/or distribute this software for any
414 * purpose with or without fee is hereby granted, provided that the above
415 * copyright notice and this permission notice appear in all copies.
416 *
417 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
418 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
419 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
420 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
421 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
422 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
423 * PERFORMANCE OF THIS SOFTWARE.
424 */
425
426/* */
427#ifndef GENERIC_NULL_10_H
428#define GENERIC_NULL_10_H 1
429
430/* Id: null_10.h,v 1.25 2007/06/19 23:47:17 tbox Exp */
431
432typedef struct dns_rdata_null {
433	dns_rdatacommon_t	common;
434	isc_mem_t		*mctx;
435	isc_uint16_t		length;
436	unsigned char		*data;
437} dns_rdata_null_t;
438
439
440#endif /* GENERIC_NULL_10_H */
441/*
442 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
443 * Copyright (C) 1999-2001  Internet Software Consortium.
444 *
445 * Permission to use, copy, modify, and/or distribute this software for any
446 * purpose with or without fee is hereby granted, provided that the above
447 * copyright notice and this permission notice appear in all copies.
448 *
449 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
450 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
451 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
452 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
453 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
454 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
455 * PERFORMANCE OF THIS SOFTWARE.
456 */
457
458#ifndef IN_1_WKS_11_H
459#define IN_1_WKS_11_H 1
460
461/* Id: wks_11.h,v 1.22 2007/06/19 23:47:17 tbox Exp */
462
463typedef	struct dns_rdata_in_wks {
464	dns_rdatacommon_t	common;
465	isc_mem_t		*mctx;
466	struct in_addr		in_addr;
467	isc_uint16_t		protocol;
468	unsigned char		*map;
469	isc_uint16_t		map_len;
470} dns_rdata_in_wks_t;
471
472#endif /* IN_1_WKS_11_H */
473/*
474 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
475 * Copyright (C) 1998-2001  Internet Software Consortium.
476 *
477 * Permission to use, copy, modify, and/or distribute this software for any
478 * purpose with or without fee is hereby granted, provided that the above
479 * copyright notice and this permission notice appear in all copies.
480 *
481 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
482 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
483 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
484 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
485 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
486 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
487 * PERFORMANCE OF THIS SOFTWARE.
488 */
489
490/* */
491#ifndef GENERIC_PTR_12_H
492#define GENERIC_PTR_12_H 1
493
494/* Id: ptr_12.h,v 1.27 2007/06/19 23:47:17 tbox Exp */
495
496typedef struct dns_rdata_ptr {
497        dns_rdatacommon_t       common;
498        isc_mem_t               *mctx;
499        dns_name_t              ptr;
500} dns_rdata_ptr_t;
501
502#endif /* GENERIC_PTR_12_H */
503/*
504 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
505 * Copyright (C) 1998-2001  Internet Software Consortium.
506 *
507 * Permission to use, copy, modify, and/or distribute this software for any
508 * purpose with or without fee is hereby granted, provided that the above
509 * copyright notice and this permission notice appear in all copies.
510 *
511 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
512 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
513 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
514 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
515 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
516 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
517 * PERFORMANCE OF THIS SOFTWARE.
518 */
519
520#ifndef GENERIC_HINFO_13_H
521#define GENERIC_HINFO_13_H 1
522
523/* Id: hinfo_13.h,v 1.25 2007/06/19 23:47:17 tbox Exp */
524
525typedef struct dns_rdata_hinfo {
526	dns_rdatacommon_t	common;
527	isc_mem_t		*mctx;
528	char			*cpu;
529	char			*os;
530	isc_uint8_t		cpu_len;
531	isc_uint8_t		os_len;
532} dns_rdata_hinfo_t;
533
534#endif /* GENERIC_HINFO_13_H */
535/*
536 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
537 * Copyright (C) 1998-2001  Internet Software Consortium.
538 *
539 * Permission to use, copy, modify, and/or distribute this software for any
540 * purpose with or without fee is hereby granted, provided that the above
541 * copyright notice and this permission notice appear in all copies.
542 *
543 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
544 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
545 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
546 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
547 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
548 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
549 * PERFORMANCE OF THIS SOFTWARE.
550 */
551
552/* */
553#ifndef GENERIC_MINFO_14_H
554#define GENERIC_MINFO_14_H 1
555
556/* Id: minfo_14.h,v 1.27 2007/06/19 23:47:17 tbox Exp */
557
558typedef struct dns_rdata_minfo {
559	dns_rdatacommon_t	common;
560	isc_mem_t		*mctx;
561	dns_name_t		rmailbox;
562	dns_name_t		emailbox;
563} dns_rdata_minfo_t;
564
565#endif /* GENERIC_MINFO_14_H */
566/*
567 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
568 * Copyright (C) 1998-2001  Internet Software Consortium.
569 *
570 * Permission to use, copy, modify, and/or distribute this software for any
571 * purpose with or without fee is hereby granted, provided that the above
572 * copyright notice and this permission notice appear in all copies.
573 *
574 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
575 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
576 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
577 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
578 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
579 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
580 * PERFORMANCE OF THIS SOFTWARE.
581 */
582
583/* */
584#ifndef GENERIC_MX_15_H
585#define GENERIC_MX_15_H 1
586
587/* Id: mx_15.h,v 1.29 2007/06/19 23:47:17 tbox Exp */
588
589typedef struct dns_rdata_mx {
590	dns_rdatacommon_t	common;
591	isc_mem_t		*mctx;
592	isc_uint16_t		pref;
593	dns_name_t		mx;
594} dns_rdata_mx_t;
595
596#endif /* GENERIC_MX_15_H */
597/*
598 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
599 * Copyright (C) 1998-2001  Internet Software Consortium.
600 *
601 * Permission to use, copy, modify, and/or distribute this software for any
602 * purpose with or without fee is hereby granted, provided that the above
603 * copyright notice and this permission notice appear in all copies.
604 *
605 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
606 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
607 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
608 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
609 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
610 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
611 * PERFORMANCE OF THIS SOFTWARE.
612 */
613
614/* */
615#ifndef GENERIC_TXT_16_H
616#define GENERIC_TXT_16_H 1
617
618/* Id: txt_16.h,v 1.28 2007/06/19 23:47:17 tbox Exp */
619
620typedef struct dns_rdata_txt_string {
621                isc_uint8_t    length;
622                unsigned char   *data;
623} dns_rdata_txt_string_t;
624
625typedef struct dns_rdata_txt {
626        dns_rdatacommon_t       common;
627        isc_mem_t               *mctx;
628        unsigned char           *txt;
629        isc_uint16_t            txt_len;
630        /* private */
631        isc_uint16_t            offset;
632} dns_rdata_txt_t;
633
634/*
635 * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
636 * via rdatastructpre.h and rdatastructsuf.h.
637 */
638
639isc_result_t
640dns_rdata_txt_first(dns_rdata_txt_t *);
641
642isc_result_t
643dns_rdata_txt_next(dns_rdata_txt_t *);
644
645isc_result_t
646dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *);
647
648#endif /* GENERIC_TXT_16_H */
649/*
650 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
651 * Copyright (C) 1999-2001  Internet Software Consortium.
652 *
653 * Permission to use, copy, modify, and/or distribute this software for any
654 * purpose with or without fee is hereby granted, provided that the above
655 * copyright notice and this permission notice appear in all copies.
656 *
657 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
658 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
659 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
660 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
661 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
662 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
663 * PERFORMANCE OF THIS SOFTWARE.
664 */
665
666#ifndef GENERIC_RP_17_H
667#define GENERIC_RP_17_H 1
668
669/* Id: rp_17.h,v 1.21 2007/06/19 23:47:17 tbox Exp */
670
671/*!
672 *  \brief Per RFC1183 */
673
674typedef struct dns_rdata_rp {
675        dns_rdatacommon_t       common;
676        isc_mem_t               *mctx;
677        dns_name_t              mail;
678        dns_name_t              text;
679} dns_rdata_rp_t;
680
681
682#endif /* GENERIC_RP_17_H */
683/*
684 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
685 * Copyright (C) 1999-2001  Internet Software Consortium.
686 *
687 * Permission to use, copy, modify, and/or distribute this software for any
688 * purpose with or without fee is hereby granted, provided that the above
689 * copyright notice and this permission notice appear in all copies.
690 *
691 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
692 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
693 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
694 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
695 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
696 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
697 * PERFORMANCE OF THIS SOFTWARE.
698 */
699
700#ifndef GENERIC_AFSDB_18_H
701#define GENERIC_AFSDB_18_H 1
702
703/* Id: afsdb_18.h,v 1.20 2007/06/19 23:47:17 tbox Exp */
704
705/*!
706 *  \brief Per RFC1183 */
707
708typedef struct dns_rdata_afsdb {
709	dns_rdatacommon_t	common;
710	isc_mem_t		*mctx;
711	isc_uint16_t		subtype;
712	dns_name_t		server;
713} dns_rdata_afsdb_t;
714
715#endif /* GENERIC_AFSDB_18_H */
716
717/*
718 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
719 * Copyright (C) 1999-2001  Internet Software Consortium.
720 *
721 * Permission to use, copy, modify, and/or distribute this software for any
722 * purpose with or without fee is hereby granted, provided that the above
723 * copyright notice and this permission notice appear in all copies.
724 *
725 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
726 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
727 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
728 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
729 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
730 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
731 * PERFORMANCE OF THIS SOFTWARE.
732 */
733
734#ifndef GENERIC_X25_19_H
735#define GENERIC_X25_19_H 1
736
737/* Id: x25_19.h,v 1.18 2007/06/19 23:47:17 tbox Exp */
738
739/*!
740 *  \brief Per RFC1183 */
741
742typedef struct dns_rdata_x25 {
743	dns_rdatacommon_t	common;
744	isc_mem_t		*mctx;
745	unsigned char		*x25;
746	isc_uint8_t		x25_len;
747} dns_rdata_x25_t;
748
749#endif /* GENERIC_X25_19_H */
750/*
751 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
752 * Copyright (C) 1999-2001  Internet Software Consortium.
753 *
754 * Permission to use, copy, modify, and/or distribute this software for any
755 * purpose with or without fee is hereby granted, provided that the above
756 * copyright notice and this permission notice appear in all copies.
757 *
758 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
759 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
760 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
761 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
762 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
763 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
764 * PERFORMANCE OF THIS SOFTWARE.
765 */
766
767#ifndef GENERIC_ISDN_20_H
768#define GENERIC_ISDN_20_H 1
769
770/* Id: isdn_20.h,v 1.18 2007/06/19 23:47:17 tbox Exp */
771
772/*!
773 * \brief Per RFC1183 */
774
775typedef struct dns_rdata_isdn {
776	dns_rdatacommon_t	common;
777	isc_mem_t		*mctx;
778	char			*isdn;
779	char			*subaddress;
780	isc_uint8_t		isdn_len;
781	isc_uint8_t		subaddress_len;
782} dns_rdata_isdn_t;
783
784#endif /* GENERIC_ISDN_20_H */
785/*
786 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
787 * Copyright (C) 1999-2001  Internet Software Consortium.
788 *
789 * Permission to use, copy, modify, and/or distribute this software for any
790 * purpose with or without fee is hereby granted, provided that the above
791 * copyright notice and this permission notice appear in all copies.
792 *
793 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
794 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
795 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
796 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
797 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
798 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
799 * PERFORMANCE OF THIS SOFTWARE.
800 */
801
802#ifndef GENERIC_RT_21_H
803#define GENERIC_RT_21_H 1
804
805/* Id: rt_21.h,v 1.21 2007/06/19 23:47:17 tbox Exp */
806
807/*!
808 *  \brief Per RFC1183 */
809
810typedef struct dns_rdata_rt {
811	dns_rdatacommon_t	common;
812	isc_mem_t		*mctx;
813	isc_uint16_t		preference;
814	dns_name_t		host;
815} dns_rdata_rt_t;
816
817#endif /* GENERIC_RT_21_H */
818/*
819 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
820 * Copyright (C) 1999-2001  Internet Software Consortium.
821 *
822 * Permission to use, copy, modify, and/or distribute this software for any
823 * purpose with or without fee is hereby granted, provided that the above
824 * copyright notice and this permission notice appear in all copies.
825 *
826 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
827 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
828 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
829 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
830 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
831 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
832 * PERFORMANCE OF THIS SOFTWARE.
833 */
834
835#ifndef IN_1_NSAP_22_H
836#define IN_1_NSAP_22_H 1
837
838/* Id: nsap_22.h,v 1.18 2007/06/19 23:47:17 tbox Exp */
839
840/*!
841 *  \brief Per RFC1706 */
842
843typedef struct dns_rdata_in_nsap {
844	dns_rdatacommon_t	common;
845	isc_mem_t		*mctx;
846	unsigned char		*nsap;
847	isc_uint16_t		nsap_len;
848} dns_rdata_in_nsap_t;
849
850#endif /* IN_1_NSAP_22_H */
851/*
852 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
853 * Copyright (C) 1999-2001  Internet Software Consortium.
854 *
855 * Permission to use, copy, modify, and/or distribute this software for any
856 * purpose with or without fee is hereby granted, provided that the above
857 * copyright notice and this permission notice appear in all copies.
858 *
859 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
860 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
861 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
862 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
863 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
864 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
865 * PERFORMANCE OF THIS SOFTWARE.
866 */
867
868#ifndef IN_1_NSAP_PTR_23_H
869#define IN_1_NSAP_PTR_23_H 1
870
871/* Id: nsap-ptr_23.h,v 1.19 2007/06/19 23:47:17 tbox Exp */
872
873/*!
874 *  \brief Per RFC1348.  Obsoleted in RFC 1706 - use PTR instead. */
875
876typedef struct dns_rdata_in_nsap_ptr {
877	dns_rdatacommon_t	common;
878	isc_mem_t		*mctx;
879	dns_name_t		owner;
880} dns_rdata_in_nsap_ptr_t;
881
882#endif /* IN_1_NSAP_PTR_23_H */
883/*
884 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
885 * Copyright (C) 1999-2001  Internet Software Consortium.
886 *
887 * Permission to use, copy, modify, and/or distribute this software for any
888 * purpose with or without fee is hereby granted, provided that the above
889 * copyright notice and this permission notice appear in all copies.
890 *
891 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
892 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
893 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
894 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
895 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
896 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
897 * PERFORMANCE OF THIS SOFTWARE.
898 */
899
900#ifndef GENERIC_SIG_24_H
901#define GENERIC_SIG_24_H 1
902
903/* Id: sig_24.h,v 1.26 2007/06/19 23:47:17 tbox Exp */
904
905/*!
906 *  \brief Per RFC2535 */
907
908typedef struct dns_rdata_sig_t {
909	dns_rdatacommon_t	common;
910	isc_mem_t *		mctx;
911	dns_rdatatype_t		covered;
912	dns_secalg_t		algorithm;
913	isc_uint8_t		labels;
914	isc_uint32_t		originalttl;
915	isc_uint32_t		timeexpire;
916	isc_uint32_t		timesigned;
917	isc_uint16_t		keyid;
918        dns_name_t		signer;
919	isc_uint16_t		siglen;
920	unsigned char *		signature;
921} dns_rdata_sig_t;
922
923
924#endif /* GENERIC_SIG_24_H */
925/*
926 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
927 * Copyright (C) 1999-2001  Internet Software Consortium.
928 *
929 * Permission to use, copy, modify, and/or distribute this software for any
930 * purpose with or without fee is hereby granted, provided that the above
931 * copyright notice and this permission notice appear in all copies.
932 *
933 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
934 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
935 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
936 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
937 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
938 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
939 * PERFORMANCE OF THIS SOFTWARE.
940 */
941
942#ifndef GENERIC_KEY_25_H
943#define GENERIC_KEY_25_H 1
944
945/* Id: key_25.h,v 1.19 2007/06/19 23:47:17 tbox Exp */
946
947/*!
948 * \brief Per RFC2535 */
949
950typedef struct dns_rdata_key_t {
951        dns_rdatacommon_t	common;
952        isc_mem_t *		mctx;
953        isc_uint16_t		flags;
954        isc_uint8_t		protocol;
955        isc_uint8_t		algorithm;
956        isc_uint16_t		datalen;
957        unsigned char *		data;
958} dns_rdata_key_t;
959
960
961#endif /* GENERIC_KEY_25_H */
962/*
963 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
964 * Copyright (C) 1999-2001  Internet Software Consortium.
965 *
966 * Permission to use, copy, modify, and/or distribute this software for any
967 * purpose with or without fee is hereby granted, provided that the above
968 * copyright notice and this permission notice appear in all copies.
969 *
970 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
971 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
972 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
973 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
974 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
975 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
976 * PERFORMANCE OF THIS SOFTWARE.
977 */
978
979#ifndef IN_1_PX_26_H
980#define IN_1_PX_26_H 1
981
982/* Id: px_26.h,v 1.19 2007/06/19 23:47:17 tbox Exp */
983
984/*!
985 *  \brief Per RFC2163 */
986
987typedef struct dns_rdata_in_px {
988	dns_rdatacommon_t	common;
989	isc_mem_t		*mctx;
990	isc_uint16_t		preference;
991	dns_name_t		map822;
992	dns_name_t		mapx400;
993} dns_rdata_in_px_t;
994
995#endif /* IN_1_PX_26_H */
996/*
997 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
998 * Copyright (C) 1999-2001  Internet Software Consortium.
999 *
1000 * Permission to use, copy, modify, and/or distribute this software for any
1001 * purpose with or without fee is hereby granted, provided that the above
1002 * copyright notice and this permission notice appear in all copies.
1003 *
1004 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1005 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1006 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1007 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1008 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1009 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1010 * PERFORMANCE OF THIS SOFTWARE.
1011 */
1012
1013#ifndef GENERIC_GPOS_27_H
1014#define GENERIC_GPOS_27_H 1
1015
1016/* Id: gpos_27.h,v 1.17 2007/06/19 23:47:17 tbox Exp */
1017
1018/*!
1019 *  \brief per RFC1712 */
1020
1021typedef struct dns_rdata_gpos {
1022	dns_rdatacommon_t	common;
1023	isc_mem_t		*mctx;
1024	char			*longitude;
1025	char			*latitude;
1026	char			*altitude;
1027	isc_uint8_t		long_len;
1028	isc_uint8_t		lat_len;
1029	isc_uint8_t		alt_len;
1030} dns_rdata_gpos_t;
1031
1032#endif /* GENERIC_GPOS_27_H */
1033/*
1034 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1035 * Copyright (C) 1999-2001  Internet Software Consortium.
1036 *
1037 * Permission to use, copy, modify, and/or distribute this software for any
1038 * purpose with or without fee is hereby granted, provided that the above
1039 * copyright notice and this permission notice appear in all copies.
1040 *
1041 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1042 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1043 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1044 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1045 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1046 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1047 * PERFORMANCE OF THIS SOFTWARE.
1048 */
1049
1050#ifndef IN_1_AAAA_28_H
1051#define IN_1_AAAA_28_H 1
1052
1053/* Id: aaaa_28.h,v 1.21 2007/06/19 23:47:17 tbox Exp */
1054
1055/*!
1056 *  \brief Per RFC1886 */
1057
1058typedef struct dns_rdata_in_aaaa {
1059	dns_rdatacommon_t	common;
1060	struct in6_addr		in6_addr;
1061} dns_rdata_in_aaaa_t;
1062
1063#endif /* IN_1_AAAA_28_H */
1064/*
1065 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1066 * Copyright (C) 1999-2001  Internet Software Consortium.
1067 *
1068 * Permission to use, copy, modify, and/or distribute this software for any
1069 * purpose with or without fee is hereby granted, provided that the above
1070 * copyright notice and this permission notice appear in all copies.
1071 *
1072 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1073 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1074 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1075 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1076 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1077 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1078 * PERFORMANCE OF THIS SOFTWARE.
1079 */
1080
1081#ifndef GENERIC_LOC_29_H
1082#define GENERIC_LOC_29_H 1
1083
1084/* Id: loc_29.h,v 1.19 2007/06/19 23:47:17 tbox Exp */
1085
1086/*!
1087 * \brief Per RFC1876 */
1088
1089typedef struct dns_rdata_loc_0 {
1090	isc_uint8_t	version;	/* must be first and zero */
1091	isc_uint8_t	size;
1092	isc_uint8_t	horizontal;
1093	isc_uint8_t	vertical;
1094	isc_uint32_t	latitude;
1095	isc_uint32_t	longitude;
1096	isc_uint32_t	altitude;
1097} dns_rdata_loc_0_t;
1098
1099typedef struct dns_rdata_loc {
1100	dns_rdatacommon_t	common;
1101	union {
1102		dns_rdata_loc_0_t v0;
1103	} v;
1104} dns_rdata_loc_t;
1105
1106#endif /* GENERIC_LOC_29_H */
1107/*
1108 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1109 * Copyright (C) 1999-2002  Internet Software Consortium.
1110 *
1111 * Permission to use, copy, modify, and/or distribute this software for any
1112 * purpose with or without fee is hereby granted, provided that the above
1113 * copyright notice and this permission notice appear in all copies.
1114 *
1115 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1116 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1117 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1118 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1119 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1120 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1121 * PERFORMANCE OF THIS SOFTWARE.
1122 */
1123
1124#ifndef GENERIC_NXT_30_H
1125#define GENERIC_NXT_30_H 1
1126
1127/* Id: nxt_30.h,v 1.25 2007/06/19 23:47:17 tbox Exp */
1128
1129/*!
1130 *  \brief RFC2535 */
1131
1132typedef struct dns_rdata_nxt {
1133	dns_rdatacommon_t	common;
1134	isc_mem_t		*mctx;
1135	dns_name_t		next;
1136	unsigned char		*typebits;
1137	isc_uint16_t		len;
1138} dns_rdata_nxt_t;
1139
1140#endif /* GENERIC_NXT_30_H */
1141/*
1142 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1143 * Copyright (C) 1999-2001  Internet Software Consortium.
1144 *
1145 * Permission to use, copy, modify, and/or distribute this software for any
1146 * purpose with or without fee is hereby granted, provided that the above
1147 * copyright notice and this permission notice appear in all copies.
1148 *
1149 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1150 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1151 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1152 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1153 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1154 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1155 * PERFORMANCE OF THIS SOFTWARE.
1156 */
1157
1158#ifndef IN_1_SRV_33_H
1159#define IN_1_SRV_33_H 1
1160
1161/* Id: srv_33.h,v 1.19 2007/06/19 23:47:17 tbox Exp */
1162
1163/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
1164
1165/*!
1166 *  \brief Per RFC2782 */
1167
1168typedef struct dns_rdata_in_srv {
1169	dns_rdatacommon_t	common;
1170	isc_mem_t		*mctx;
1171	isc_uint16_t		priority;
1172	isc_uint16_t		weight;
1173	isc_uint16_t		port;
1174	dns_name_t		target;
1175} dns_rdata_in_srv_t;
1176
1177#endif /* IN_1_SRV_33_H */
1178/*
1179 * Copyright (C) 2004, 2005, 2007, 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
1180 * Copyright (C) 1999-2001  Internet Software Consortium.
1181 *
1182 * Permission to use, copy, modify, and/or distribute this software for any
1183 * purpose with or without fee is hereby granted, provided that the above
1184 * copyright notice and this permission notice appear in all copies.
1185 *
1186 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1187 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1188 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1189 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1190 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1191 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1192 * PERFORMANCE OF THIS SOFTWARE.
1193 */
1194
1195#ifndef GENERIC_NAPTR_35_H
1196#define GENERIC_NAPTR_35_H 1
1197
1198/* $Id: rdatastruct.h,v 1.5.4.1 2012/06/05 21:15:38 bouyer Exp $ */
1199
1200/*!
1201 *  \brief Per RFC2915 */
1202
1203typedef struct dns_rdata_naptr {
1204	dns_rdatacommon_t	common;
1205	isc_mem_t		*mctx;
1206	isc_uint16_t		order;
1207	isc_uint16_t		preference;
1208	char			*flags;
1209	isc_uint8_t		flags_len;
1210	char			*service;
1211	isc_uint8_t		service_len;
1212	char			*regexp;
1213	isc_uint8_t		regexp_len;
1214	dns_name_t		replacement;
1215} dns_rdata_naptr_t;
1216
1217#endif /* GENERIC_NAPTR_35_H */
1218/*
1219 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1220 * Copyright (C) 1999-2001  Internet Software Consortium.
1221 *
1222 * Permission to use, copy, modify, and/or distribute this software for any
1223 * purpose with or without fee is hereby granted, provided that the above
1224 * copyright notice and this permission notice appear in all copies.
1225 *
1226 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1227 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1228 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1229 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1230 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1231 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1232 * PERFORMANCE OF THIS SOFTWARE.
1233 */
1234
1235#ifndef IN_1_KX_36_H
1236#define IN_1_KX_36_H 1
1237
1238/* Id: kx_36.h,v 1.20 2007/06/19 23:47:17 tbox Exp */
1239
1240/*!
1241 *  \brief Per RFC2230 */
1242
1243typedef struct dns_rdata_in_kx {
1244	dns_rdatacommon_t	common;
1245	isc_mem_t		*mctx;
1246	isc_uint16_t		preference;
1247	dns_name_t		exchange;
1248} dns_rdata_in_kx_t;
1249
1250#endif /* IN_1_KX_36_H */
1251/*
1252 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1253 * Copyright (C) 1999-2001  Internet Software Consortium.
1254 *
1255 * Permission to use, copy, modify, and/or distribute this software for any
1256 * purpose with or without fee is hereby granted, provided that the above
1257 * copyright notice and this permission notice appear in all copies.
1258 *
1259 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1260 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1261 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1262 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1263 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1264 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1265 * PERFORMANCE OF THIS SOFTWARE.
1266 */
1267
1268/* Id: cert_37.h,v 1.20 2007/06/19 23:47:17 tbox Exp */
1269
1270#ifndef GENERIC_CERT_37_H
1271#define GENERIC_CERT_37_H 1
1272
1273/*% RFC2538 */
1274typedef struct dns_rdata_cert {
1275	dns_rdatacommon_t	common;
1276	isc_mem_t		*mctx;
1277	isc_uint16_t		type;
1278	isc_uint16_t		key_tag;
1279	isc_uint8_t		algorithm;
1280	isc_uint16_t		length;
1281	unsigned char		*certificate;
1282} dns_rdata_cert_t;
1283
1284#endif /* GENERIC_CERT_37_H */
1285/*
1286 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1287 * Copyright (C) 1999-2001  Internet Software Consortium.
1288 *
1289 * Permission to use, copy, modify, and/or distribute this software for any
1290 * purpose with or without fee is hereby granted, provided that the above
1291 * copyright notice and this permission notice appear in all copies.
1292 *
1293 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1294 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1295 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1296 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1297 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1298 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1299 * PERFORMANCE OF THIS SOFTWARE.
1300 */
1301
1302#ifndef IN_1_A6_38_H
1303#define IN_1_A6_38_H 1
1304
1305/* Id: a6_38.h,v 1.24 2007/06/19 23:47:17 tbox Exp */
1306
1307/*!
1308 *  \brief Per RFC2874 */
1309
1310typedef struct dns_rdata_in_a6 {
1311        dns_rdatacommon_t	common;
1312	isc_mem_t		*mctx;
1313	dns_name_t		prefix;
1314	isc_uint8_t		prefixlen;
1315	struct in6_addr		in6_addr;
1316} dns_rdata_in_a6_t;
1317
1318#endif /* IN_1_A6_38_H */
1319/*
1320 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1321 * Copyright (C) 1999-2001  Internet Software Consortium.
1322 *
1323 * Permission to use, copy, modify, and/or distribute this software for any
1324 * purpose with or without fee is hereby granted, provided that the above
1325 * copyright notice and this permission notice appear in all copies.
1326 *
1327 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1328 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1329 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1330 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1331 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1332 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1333 * PERFORMANCE OF THIS SOFTWARE.
1334 */
1335
1336#ifndef GENERIC_DNAME_39_H
1337#define GENERIC_DNAME_39_H 1
1338
1339/* Id: dname_39.h,v 1.21 2007/06/19 23:47:17 tbox Exp */
1340
1341/*!
1342 *  \brief per RFC2672 */
1343
1344typedef struct dns_rdata_dname {
1345	dns_rdatacommon_t	common;
1346	isc_mem_t		*mctx;
1347	dns_name_t		dname;
1348} dns_rdata_dname_t;
1349
1350#endif /* GENERIC_DNAME_39_H */
1351/*
1352 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1353 * Copyright (C) 1998-2001  Internet Software Consortium.
1354 *
1355 * Permission to use, copy, modify, and/or distribute this software for any
1356 * purpose with or without fee is hereby granted, provided that the above
1357 * copyright notice and this permission notice appear in all copies.
1358 *
1359 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1360 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1361 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1362 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1363 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1364 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1365 * PERFORMANCE OF THIS SOFTWARE.
1366 */
1367
1368#ifndef GENERIC_OPT_41_H
1369#define GENERIC_OPT_41_H 1
1370
1371/* Id: opt_41.h,v 1.18 2007/06/19 23:47:17 tbox Exp */
1372
1373/*!
1374 *  \brief Per RFC2671 */
1375
1376typedef struct dns_rdata_opt_opcode {
1377		isc_uint16_t	opcode;
1378		isc_uint16_t	length;
1379		unsigned char	*data;
1380} dns_rdata_opt_opcode_t;
1381
1382typedef struct dns_rdata_opt {
1383	dns_rdatacommon_t	common;
1384	isc_mem_t		*mctx;
1385	unsigned char		*options;
1386	isc_uint16_t		length;
1387	/* private */
1388	isc_uint16_t		offset;
1389} dns_rdata_opt_t;
1390
1391/*
1392 * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
1393 * via rdatastructpre.h and rdatastructsuf.h.
1394 */
1395
1396isc_result_t
1397dns_rdata_opt_first(dns_rdata_opt_t *);
1398
1399isc_result_t
1400dns_rdata_opt_next(dns_rdata_opt_t *);
1401
1402isc_result_t
1403dns_rdata_opt_current(dns_rdata_opt_t *, dns_rdata_opt_opcode_t *);
1404
1405#endif /* GENERIC_OPT_41_H */
1406/*
1407 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1408 * Copyright (C) 2002  Internet Software Consortium.
1409 *
1410 * Permission to use, copy, modify, and/or distribute this software for any
1411 * purpose with or without fee is hereby granted, provided that the above
1412 * copyright notice and this permission notice appear in all copies.
1413 *
1414 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1415 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1416 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1417 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1418 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1419 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1420 * PERFORMANCE OF THIS SOFTWARE.
1421 */
1422
1423/* */
1424#ifndef IN_1_APL_42_H
1425#define IN_1_APL_42_H 1
1426
1427/* Id: apl_42.h,v 1.6 2007/06/19 23:47:17 tbox Exp */
1428
1429typedef struct dns_rdata_apl_ent {
1430	isc_boolean_t	negative;
1431	isc_uint16_t	family;
1432	isc_uint8_t	prefix;
1433	isc_uint8_t	length;
1434	unsigned char	*data;
1435} dns_rdata_apl_ent_t;
1436
1437typedef struct dns_rdata_in_apl {
1438	dns_rdatacommon_t	common;
1439	isc_mem_t		*mctx;
1440	/* type & class specific elements */
1441	unsigned char           *apl;
1442        isc_uint16_t            apl_len;
1443        /* private */
1444        isc_uint16_t            offset;
1445} dns_rdata_in_apl_t;
1446
1447/*
1448 * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
1449 * via rdatastructpre.h and rdatastructsuf.h.
1450 */
1451
1452isc_result_t
1453dns_rdata_apl_first(dns_rdata_in_apl_t *);
1454
1455isc_result_t
1456dns_rdata_apl_next(dns_rdata_in_apl_t *);
1457
1458isc_result_t
1459dns_rdata_apl_current(dns_rdata_in_apl_t *, dns_rdata_apl_ent_t *);
1460
1461#endif /* IN_1_APL_42_H */
1462/*
1463 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1464 * Copyright (C) 2002  Internet Software Consortium.
1465 *
1466 * Permission to use, copy, modify, and/or distribute this software for any
1467 * purpose with or without fee is hereby granted, provided that the above
1468 * copyright notice and this permission notice appear in all copies.
1469 *
1470 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1471 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1472 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1473 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1474 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1475 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1476 * PERFORMANCE OF THIS SOFTWARE.
1477 */
1478
1479/* Id: ds_43.h,v 1.7 2007/06/19 23:47:17 tbox Exp */
1480
1481#ifndef GENERIC_DS_43_H
1482#define GENERIC_DS_43_H 1
1483
1484/*!
1485 *  \brief per draft-ietf-dnsext-delegation-signer-05.txt */
1486typedef struct dns_rdata_ds {
1487	dns_rdatacommon_t	common;
1488	isc_mem_t		*mctx;
1489	isc_uint16_t		key_tag;
1490	isc_uint8_t		algorithm;
1491	isc_uint8_t		digest_type;
1492	isc_uint16_t		length;
1493	unsigned char		*digest;
1494} dns_rdata_ds_t;
1495
1496#endif /* GENERIC_DS_43_H */
1497/*
1498 * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
1499 * Copyright (C) 2003  Internet Software Consortium.
1500 *
1501 * Permission to use, copy, modify, and/or distribute this software for any
1502 * purpose with or without fee is hereby granted, provided that the above
1503 * copyright notice and this permission notice appear in all copies.
1504 *
1505 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1506 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1507 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1508 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1509 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1510 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1511 * PERFORMANCE OF THIS SOFTWARE.
1512 */
1513
1514/* Id: sshfp_44.h,v 1.8 2007/06/19 23:47:17 tbox Exp */
1515
1516/*!
1517 *  \brief Per RFC 4255 */
1518
1519#ifndef GENERIC_SSHFP_44_H
1520#define GENERIC_SSHFP_44_H 1
1521
1522typedef struct dns_rdata_sshfp {
1523	dns_rdatacommon_t	common;
1524	isc_mem_t		*mctx;
1525	isc_uint8_t		algorithm;
1526	isc_uint8_t		digest_type;
1527	isc_uint16_t		length;
1528	unsigned char		*digest;
1529} dns_rdata_sshfp_t;
1530
1531#endif /* GENERIC_SSHFP_44_H */
1532/*
1533 * Copyright (C) 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1534 *
1535 * Permission to use, copy, modify, and/or distribute this software for any
1536 * purpose with or without fee is hereby granted, provided that the above
1537 * copyright notice and this permission notice appear in all copies.
1538 *
1539 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1540 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1541 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1542 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1543 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1544 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1545 * PERFORMANCE OF THIS SOFTWARE.
1546 */
1547
1548/* Id: ipseckey_45.h,v 1.4 2007/06/19 23:47:17 tbox Exp */
1549
1550#ifndef GENERIC_IPSECKEY_45_H
1551#define GENERIC_IPSECKEY_45_H 1
1552
1553typedef struct dns_rdata_ipseckey {
1554	dns_rdatacommon_t	common;
1555	isc_mem_t		*mctx;
1556	isc_uint8_t		precedence;
1557	isc_uint8_t		gateway_type;
1558	isc_uint8_t		algorithm;
1559	struct in_addr		in_addr;	/* gateway type 1 */
1560	struct in6_addr		in6_addr;	/* gateway type 2 */
1561	dns_name_t		gateway;	/* gateway type 3 */
1562	unsigned char		*key;
1563	isc_uint16_t		keylength;
1564} dns_rdata_ipseckey_t;
1565
1566#endif /* GENERIC_IPSECKEY_45_H */
1567/*
1568 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1569 * Copyright (C) 2003  Internet Software Consortium.
1570 *
1571 * Permission to use, copy, modify, and/or distribute this software for any
1572 * purpose with or without fee is hereby granted, provided that the above
1573 * copyright notice and this permission notice appear in all copies.
1574 *
1575 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1576 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1577 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1578 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1579 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1580 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1581 * PERFORMANCE OF THIS SOFTWARE.
1582 */
1583
1584#ifndef GENERIC_DNSSIG_46_H
1585#define GENERIC_DNSSIG_46_H 1
1586
1587/* Id: rrsig_46.h,v 1.7 2007/06/19 23:47:17 tbox Exp */
1588
1589/*!
1590 *  \brief Per RFC2535 */
1591typedef struct dns_rdata_rrsig {
1592	dns_rdatacommon_t	common;
1593	isc_mem_t *		mctx;
1594	dns_rdatatype_t		covered;
1595	dns_secalg_t		algorithm;
1596	isc_uint8_t		labels;
1597	isc_uint32_t		originalttl;
1598	isc_uint32_t		timeexpire;
1599	isc_uint32_t		timesigned;
1600	isc_uint16_t		keyid;
1601        dns_name_t		signer;
1602	isc_uint16_t		siglen;
1603	unsigned char *		signature;
1604} dns_rdata_rrsig_t;
1605
1606
1607#endif /* GENERIC_DNSSIG_46_H */
1608/*
1609 * Copyright (C) 2004, 2005, 2007, 2008  Internet Systems Consortium, Inc. ("ISC")
1610 * Copyright (C) 2003  Internet Software Consortium.
1611 *
1612 * Permission to use, copy, modify, and/or distribute this software for any
1613 * purpose with or without fee is hereby granted, provided that the above
1614 * copyright notice and this permission notice appear in all copies.
1615 *
1616 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1617 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1618 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1619 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1620 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1621 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1622 * PERFORMANCE OF THIS SOFTWARE.
1623 */
1624
1625#ifndef GENERIC_NSEC_47_H
1626#define GENERIC_NSEC_47_H 1
1627
1628/* Id: nsec_47.h,v 1.10 2008/07/15 23:47:21 tbox Exp */
1629
1630/*!
1631 * \brief Per RFC 3845 */
1632
1633typedef struct dns_rdata_nsec {
1634	dns_rdatacommon_t	common;
1635	isc_mem_t		*mctx;
1636	dns_name_t		next;
1637	unsigned char		*typebits;
1638	isc_uint16_t		len;
1639} dns_rdata_nsec_t;
1640
1641#endif /* GENERIC_NSEC_47_H */
1642/*
1643 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1644 * Copyright (C) 2003  Internet Software Consortium.
1645 *
1646 * Permission to use, copy, modify, and/or distribute this software for any
1647 * purpose with or without fee is hereby granted, provided that the above
1648 * copyright notice and this permission notice appear in all copies.
1649 *
1650 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1651 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1652 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1653 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1654 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1655 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1656 * PERFORMANCE OF THIS SOFTWARE.
1657 */
1658
1659#ifndef GENERIC_DNSKEY_48_H
1660#define GENERIC_DNSKEY_48_H 1
1661
1662/* Id: dnskey_48.h,v 1.7 2007/06/19 23:47:17 tbox Exp */
1663
1664/*!
1665 *  \brief per RFC2535 */
1666
1667typedef struct dns_rdata_dnskey {
1668        dns_rdatacommon_t	common;
1669        isc_mem_t *		mctx;
1670        isc_uint16_t		flags;
1671        isc_uint8_t		protocol;
1672        isc_uint8_t		algorithm;
1673        isc_uint16_t		datalen;
1674        unsigned char *		data;
1675} dns_rdata_dnskey_t;
1676
1677
1678#endif /* GENERIC_DNSKEY_48_H */
1679/*
1680 * Copyright (C) 2006, 2007  Internet Systems Consortium, Inc. ("ISC")
1681 *
1682 * Permission to use, copy, modify, and/or distribute this software for any
1683 * purpose with or without fee is hereby granted, provided that the above
1684 * copyright notice and this permission notice appear in all copies.
1685 *
1686 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1687 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1688 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1689 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1690 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1691 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1692 * PERFORMANCE OF THIS SOFTWARE.
1693 */
1694
1695/* */
1696#ifndef IN_1_DHCID_49_H
1697#define IN_1_DHCID_49_H 1
1698
1699/* Id: dhcid_49.h,v 1.5 2007/06/19 23:47:17 tbox Exp */
1700
1701typedef struct dns_rdata_in_dhcid {
1702	dns_rdatacommon_t	common;
1703	isc_mem_t		*mctx;
1704	unsigned char		*dhcid;
1705	unsigned int		length;
1706} dns_rdata_in_dhcid_t;
1707
1708#endif /* IN_1_DHCID_49_H */
1709/*
1710 * Copyright (C) 2008, 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
1711 *
1712 * Permission to use, copy, modify, and/or distribute this software for any
1713 * purpose with or without fee is hereby granted, provided that the above
1714 * copyright notice and this permission notice appear in all copies.
1715 *
1716 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1717 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1718 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1719 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1720 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1721 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1722 * PERFORMANCE OF THIS SOFTWARE.
1723 */
1724
1725
1726#ifndef GENERIC_NSEC3_50_H
1727#define GENERIC_NSEC3_50_H 1
1728
1729/* $Id: rdatastruct.h,v 1.5.4.1 2012/06/05 21:15:38 bouyer Exp $ */
1730
1731/*!
1732 * \brief Per RFC 5155 */
1733
1734#include <isc/iterated_hash.h>
1735
1736typedef struct dns_rdata_nsec3 {
1737	dns_rdatacommon_t	common;
1738	isc_mem_t		*mctx;
1739	dns_hash_t		hash;
1740	unsigned char		flags;
1741	dns_iterations_t	iterations;
1742	unsigned char		salt_length;
1743	unsigned char		next_length;
1744	isc_uint16_t		len;
1745	unsigned char		*salt;
1746	unsigned char		*next;
1747	unsigned char		*typebits;
1748} dns_rdata_nsec3_t;
1749
1750/*
1751 * The corresponding NSEC3 interval is OPTOUT indicating possible
1752 * insecure delegations.
1753 */
1754#define DNS_NSEC3FLAG_OPTOUT 0x01U
1755
1756/*%
1757 * The following flags are used in the private-type record (implemented in
1758 * lib/dns/private.c) which is used to store NSEC3PARAM data during the
1759 * time when it is not legal to have an actual NSEC3PARAM record in the
1760 * zone.  They are defined here because the private-type record uses the
1761 * same flags field for the OPTOUT flag above and for the private flags
1762 * below.  XXX: This should be considered for refactoring.
1763 */
1764
1765/*%
1766 * Non-standard, private type only.
1767 *
1768 * Create a corresponding NSEC3 chain.
1769 * Once the NSEC3 chain is complete this flag will be removed to signal
1770 * that there is a complete chain.
1771 *
1772 * This flag is automatically set when a NSEC3PARAM record is added to
1773 * the zone via UPDATE.
1774 *
1775 * NSEC3PARAM records containing this flag should never be published,
1776 * but if they are, they should be ignored by RFC 5155 compliant
1777 * nameservers.
1778 */
1779#define DNS_NSEC3FLAG_CREATE 0x80U
1780
1781/*%
1782 * Non-standard, private type only.
1783 *
1784 * The corresponding NSEC3 set is to be removed once the NSEC chain
1785 * has been generated.
1786 *
1787 * This flag is automatically set when the last active NSEC3PARAM record
1788 * is removed from the zone via UPDATE.
1789 *
1790 * NSEC3PARAM records containing this flag should never be published,
1791 * but if they are, they should be ignored by RFC 5155 compliant
1792 * nameservers.
1793 */
1794#define DNS_NSEC3FLAG_REMOVE 0x40U
1795
1796/*%
1797 * Non-standard, private type only.
1798 *
1799 * When set with the CREATE flag, a corresponding NSEC3 chain will be
1800 * created when the zone becomes capable of supporting one (i.e., when it
1801 * has a DNSKEY RRset containing at least one NSEC3-capable algorithm).
1802 * Without this flag, NSEC3 chain creation would be attempted immediately,
1803 * fail, and the private type record would be removed.  With it, the NSEC3
1804 * parameters are stored until they can be used.  When the zone has the
1805 * necessary prerequisites for NSEC3, then the INITIAL flag can be cleared,
1806 * and the record will be cleaned up normally.
1807 *
1808 * NSEC3PARAM records containing this flag should never be published, but
1809 * if they are, they should be ignored by RFC 5155 compliant nameservers.
1810 */
1811#define DNS_NSEC3FLAG_INITIAL 0x20U
1812
1813/*%
1814 * Non-standard, private type only.
1815 *
1816 * Prevent the creation of a NSEC chain before the last NSEC3 chain
1817 * is removed.  This will normally only be set when the zone is
1818 * transitioning from secure with NSEC3 chains to insecure.
1819 *
1820 * NSEC3PARAM records containing this flag should never be published,
1821 * but if they are, they should be ignored by RFC 5155 compliant
1822 * nameservers.
1823 */
1824#define DNS_NSEC3FLAG_NONSEC 0x10U
1825
1826#endif /* GENERIC_NSEC3_50_H */
1827/*
1828 * Copyright (C) 2008  Internet Systems Consortium, Inc. ("ISC")
1829 *
1830 * Permission to use, copy, modify, and/or distribute this software for any
1831 * purpose with or without fee is hereby granted, provided that the above
1832 * copyright notice and this permission notice appear in all copies.
1833 *
1834 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1835 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1836 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1837 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1838 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1839 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1840 * PERFORMANCE OF THIS SOFTWARE.
1841 */
1842
1843
1844#ifndef GENERIC_NSEC3PARAM_51_H
1845#define GENERIC_NSEC3PARAM_51_H 1
1846
1847/* Id: nsec3param_51.h,v 1.4 2008/09/25 04:02:39 tbox Exp */
1848
1849/*!
1850 * \brief Per RFC 5155 */
1851
1852#include <isc/iterated_hash.h>
1853
1854typedef struct dns_rdata_nsec3param {
1855	dns_rdatacommon_t	common;
1856	isc_mem_t		*mctx;
1857	dns_hash_t		hash;
1858	unsigned char		flags;		/* DNS_NSEC3FLAG_* */
1859	dns_iterations_t	iterations;
1860	unsigned char		salt_length;
1861	unsigned char		*salt;
1862} dns_rdata_nsec3param_t;
1863
1864#endif /* GENERIC_NSEC3PARAM_51_H */
1865/*
1866 * Copyright (C) 2012  Internet Systems Consortium, Inc. ("ISC")
1867 *
1868 * Permission to use, copy, modify, and/or distribute this software for any
1869 * purpose with or without fee is hereby granted, provided that the above
1870 * copyright notice and this permission notice appear in all copies.
1871 *
1872 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1873 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1874 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1875 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1876 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1877 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1878 * PERFORMANCE OF THIS SOFTWARE.
1879 */
1880
1881/* $Id: rdatastruct.h,v 1.5.4.1 2012/06/05 21:15:38 bouyer Exp $ */
1882
1883#ifndef GENERIC_TLSA_52_H
1884#define GENERIC_TLSA_52_H 1
1885
1886/*!
1887 *  \brief per draft-ietf-dane-protocol-19.txt
1888 */
1889typedef struct dns_rdata_tlsa {
1890	dns_rdatacommon_t	common;
1891	isc_mem_t		*mctx;
1892	isc_uint8_t		usage;
1893	isc_uint8_t		selector;
1894	isc_uint8_t		match;
1895	isc_uint16_t		length;
1896	unsigned char		*data;
1897} dns_rdata_tlsa_t;
1898
1899#endif /* GENERIC_TLSA_52_H */
1900/*
1901 * Copyright (C) 2009  Internet Systems Consortium, Inc. ("ISC")
1902 *
1903 * Permission to use, copy, modify, and/or distribute this software for any
1904 * purpose with or without fee is hereby granted, provided that the above
1905 * copyright notice and this permission notice appear in all copies.
1906 *
1907 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1908 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1909 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1910 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1911 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1912 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1913 * PERFORMANCE OF THIS SOFTWARE.
1914 */
1915
1916/* Id: hip_55.h,v 1.2 2009/02/26 06:09:19 marka Exp */
1917
1918#ifndef GENERIC_HIP_5_H
1919#define GENERIC_HIP_5_H 1
1920
1921/* RFC 5205 */
1922
1923typedef struct dns_rdata_hip {
1924	dns_rdatacommon_t	common;
1925	isc_mem_t *		mctx;
1926	unsigned char *		hit;
1927	unsigned char *		key;
1928	unsigned char *		servers;
1929	isc_uint8_t		algorithm;
1930	isc_uint8_t		hit_len;
1931	isc_uint16_t		key_len;
1932	isc_uint16_t		servers_len;
1933	/* Private */
1934	isc_uint16_t		offset;
1935} dns_rdata_hip_t;
1936
1937isc_result_t
1938dns_rdata_hip_first(dns_rdata_hip_t *);
1939
1940isc_result_t
1941dns_rdata_hip_next(dns_rdata_hip_t *);
1942
1943void
1944dns_rdata_hip_current(dns_rdata_hip_t *, dns_name_t *);
1945
1946#endif /* GENERIC_HIP_5_H */
1947/*
1948 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
1949 * Copyright (C) 1998-2001  Internet Software Consortium.
1950 *
1951 * Permission to use, copy, modify, and/or distribute this software for any
1952 * purpose with or without fee is hereby granted, provided that the above
1953 * copyright notice and this permission notice appear in all copies.
1954 *
1955 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1956 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1957 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1958 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1959 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1960 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1961 * PERFORMANCE OF THIS SOFTWARE.
1962 */
1963
1964#ifndef GENERIC_SPF_99_H
1965#define GENERIC_SPF_99_H 1
1966
1967/* Id: spf_99.h,v 1.4 2007/06/19 23:47:17 tbox Exp */
1968
1969typedef struct dns_rdata_spf_string {
1970                isc_uint8_t    length;
1971                unsigned char   *data;
1972} dns_rdata_spf_string_t;
1973
1974typedef struct dns_rdata_spf {
1975        dns_rdatacommon_t       common;
1976        isc_mem_t               *mctx;
1977        unsigned char           *txt;
1978        isc_uint16_t            txt_len;
1979        /* private */
1980        isc_uint16_t            offset;
1981} dns_rdata_spf_t;
1982
1983/*
1984 * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
1985 * via rdatastructpre.h and rdatastructsuf.h.
1986 */
1987
1988isc_result_t
1989dns_rdata_spf_first(dns_rdata_spf_t *);
1990
1991isc_result_t
1992dns_rdata_spf_next(dns_rdata_spf_t *);
1993
1994isc_result_t
1995dns_rdata_spf_current(dns_rdata_spf_t *, dns_rdata_spf_string_t *);
1996
1997#endif /* GENERIC_SPF_99_H */
1998/*
1999 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
2000 * Copyright (C) 1999-2001  Internet Software Consortium.
2001 *
2002 * Permission to use, copy, modify, and/or distribute this software for any
2003 * purpose with or without fee is hereby granted, provided that the above
2004 * copyright notice and this permission notice appear in all copies.
2005 *
2006 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2007 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2008 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2009 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2010 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2011 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2012 * PERFORMANCE OF THIS SOFTWARE.
2013 */
2014
2015/* */
2016#ifndef GENERIC_UNSPEC_103_H
2017#define GENERIC_UNSPEC_103_H 1
2018
2019/* Id: unspec_103.h,v 1.17 2007/06/19 23:47:17 tbox Exp */
2020
2021typedef struct dns_rdata_unspec_t {
2022	dns_rdatacommon_t	common;
2023	isc_mem_t		*mctx;
2024	unsigned char		*data;
2025	isc_uint16_t		datalen;
2026} dns_rdata_unspec_t;
2027
2028#endif /* GENERIC_UNSPEC_103_H */
2029/*
2030 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
2031 * Copyright (C) 1999-2001, 2003  Internet Software Consortium.
2032 *
2033 * Permission to use, copy, modify, and/or distribute this software for any
2034 * purpose with or without fee is hereby granted, provided that the above
2035 * copyright notice and this permission notice appear in all copies.
2036 *
2037 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2038 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2039 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2040 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2041 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2042 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2043 * PERFORMANCE OF THIS SOFTWARE.
2044 */
2045
2046#ifndef GENERIC_TKEY_249_H
2047#define GENERIC_TKEY_249_H 1
2048
2049/* Id: tkey_249.h,v 1.24 2007/06/19 23:47:17 tbox Exp */
2050
2051/*!
2052 *  \brief Per draft-ietf-dnsind-tkey-00.txt */
2053
2054typedef struct dns_rdata_tkey {
2055        dns_rdatacommon_t	common;
2056        isc_mem_t *		mctx;
2057        dns_name_t		algorithm;
2058        isc_uint32_t		inception;
2059        isc_uint32_t		expire;
2060        isc_uint16_t		mode;
2061        isc_uint16_t		error;
2062        isc_uint16_t		keylen;
2063        unsigned char *		key;
2064        isc_uint16_t		otherlen;
2065        unsigned char *		other;
2066} dns_rdata_tkey_t;
2067
2068
2069#endif /* GENERIC_TKEY_249_H */
2070/*
2071 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
2072 * Copyright (C) 1999-2001  Internet Software Consortium.
2073 *
2074 * Permission to use, copy, modify, and/or distribute this software for any
2075 * purpose with or without fee is hereby granted, provided that the above
2076 * copyright notice and this permission notice appear in all copies.
2077 *
2078 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2079 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2080 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2081 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2082 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2083 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2084 * PERFORMANCE OF THIS SOFTWARE.
2085 */
2086
2087/* Id: tsig_250.h,v 1.25 2007/06/19 23:47:17 tbox Exp */
2088
2089#ifndef ANY_255_TSIG_250_H
2090#define ANY_255_TSIG_250_H 1
2091
2092/*% RFC2845 */
2093typedef struct dns_rdata_any_tsig {
2094	dns_rdatacommon_t	common;
2095	isc_mem_t *		mctx;
2096	dns_name_t		algorithm;
2097	isc_uint64_t		timesigned;
2098	isc_uint16_t		fudge;
2099	isc_uint16_t		siglen;
2100	unsigned char *		signature;
2101	isc_uint16_t		originalid;
2102	isc_uint16_t		error;
2103	isc_uint16_t		otherlen;
2104	unsigned char *		other;
2105} dns_rdata_any_tsig_t;
2106
2107#endif /* ANY_255_TSIG_250_H */
2108/*
2109 * Copyright (C) 2011, 2012  Internet Systems Consortium, Inc. ("ISC")
2110 *
2111 * Permission to use, copy, modify, and/or distribute this software for any
2112 * purpose with or without fee is hereby granted, provided that the above
2113 * copyright notice and this permission notice appear in all copies.
2114 *
2115 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2116 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2117 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2118 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2119 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2120 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2121 * PERFORMANCE OF THIS SOFTWARE.
2122 */
2123
2124#ifndef GENERIC_URI_256_H
2125#define GENERIC_URI_256_H 1
2126
2127/* $Id: rdatastruct.h,v 1.5.4.1 2012/06/05 21:15:38 bouyer Exp $ */
2128
2129typedef struct dns_rdata_uri {
2130	dns_rdatacommon_t	common;
2131	isc_mem_t *		mctx;
2132	isc_uint16_t		priority;
2133	isc_uint16_t		weight;
2134	unsigned char *		target;
2135	isc_uint16_t		tgt_len;
2136} dns_rdata_uri_t;
2137
2138#endif /* GENERIC_URI_256_H */
2139/*
2140 * Copyright (C) 2004, 2006, 2007  Internet Systems Consortium, Inc. ("ISC")
2141 *
2142 * Permission to use, copy, modify, and/or distribute this software for any
2143 * purpose with or without fee is hereby granted, provided that the above
2144 * copyright notice and this permission notice appear in all copies.
2145 *
2146 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2147 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2148 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2149 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2150 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2151 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2152 * PERFORMANCE OF THIS SOFTWARE.
2153 */
2154
2155/* Id: dlv_32769.h,v 1.5 2007/06/19 23:47:17 tbox Exp */
2156
2157/* draft-ietf-dnsext-delegation-signer-05.txt */
2158#ifndef GENERIC_DLV_32769_H
2159#define GENERIC_DLV_32769_H 1
2160
2161typedef struct dns_rdata_dlv {
2162	dns_rdatacommon_t	common;
2163	isc_mem_t		*mctx;
2164	isc_uint16_t		key_tag;
2165	isc_uint8_t		algorithm;
2166	isc_uint8_t		digest_type;
2167	isc_uint16_t		length;
2168	unsigned char		*digest;
2169} dns_rdata_dlv_t;
2170
2171#endif /* GENERIC_DLV_32769_H */
2172/*
2173 * Copyright (C) 2009  Internet Systems Consortium, Inc. ("ISC")
2174 *
2175 * Permission to use, copy, modify, and/or distribute this software for any
2176 * purpose with or without fee is hereby granted, provided that the above
2177 * copyright notice and this permission notice appear in all copies.
2178 *
2179 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2180 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2181 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2182 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2183 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2184 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2185 * PERFORMANCE OF THIS SOFTWARE.
2186 */
2187
2188#ifndef GENERIC_KEYDATA_65533_H
2189#define GENERIC_KEYDATA_65533_H 1
2190
2191/* Id: keydata_65533.h,v 1.2 2009/06/30 02:52:32 each Exp */
2192
2193typedef struct dns_rdata_keydata {
2194	dns_rdatacommon_t	common;
2195	isc_mem_t *		mctx;
2196	isc_uint32_t		refresh;      /* Timer for refreshing data */
2197	isc_uint32_t		addhd;	      /* Hold-down timer for adding */
2198	isc_uint32_t		removehd;     /* Hold-down timer for removing */
2199	isc_uint16_t		flags;	      /* Copy of DNSKEY_48 */
2200	isc_uint8_t		protocol;
2201	isc_uint8_t		algorithm;
2202	isc_uint16_t		datalen;
2203	unsigned char *		data;
2204} dns_rdata_keydata_t;
2205
2206#endif /* GENERIC_KEYDATA_65533_H */
2207/*
2208 * Copyright (C) 2004, 2007  Internet Systems Consortium, Inc. ("ISC")
2209 * Copyright (C) 1999-2001  Internet Software Consortium.
2210 *
2211 * Permission to use, copy, modify, and/or distribute this software for any
2212 * purpose with or without fee is hereby granted, provided that the above
2213 * copyright notice and this permission notice appear in all copies.
2214 *
2215 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2216 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2217 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2218 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2219 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2220 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2221 * PERFORMANCE OF THIS SOFTWARE.
2222 */
2223
2224/* Id: rdatastructsuf.h,v 1.10 2007/06/19 23:47:17 tbox Exp */
2225
2226ISC_LANG_ENDDECLS
2227
2228#endif /* DNS_RDATASTRUCT_H */
2229