]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/bind/dns/dns/rdatastruct.h
This commit was generated by cvs2svn to compensate for changes in r162916,
[FreeBSD/FreeBSD.git] / lib / bind / dns / dns / rdatastruct.h
1 /* $FreeBSD$ */
2
3 /*
4  * Copyright (C) 2004-2005 Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (C) 1998-2003 Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19
20 /***************
21  ***************
22  ***************   THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
23  ***************   DO NOT EDIT!
24  ***************
25  ***************/
26
27 /*
28  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
29  * Copyright (C) 1999-2001  Internet Software Consortium.
30  *
31  * Permission to use, copy, modify, and 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.13.206.1 2004/03/06 08:14:02 marka 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
55 ISC_LANG_BEGINDECLS
56
57 typedef 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  Internet Systems Consortium, Inc. ("ISC")
71  * Copyright (C) 1998-2001  Internet Software Consortium.
72  *
73  * Permission to use, copy, modify, and 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 #ifndef IN_1_A_1_H
87 #define IN_1_A_1_H 1
88
89 /* $Id: a_1.h,v 1.23.206.1 2004/03/06 08:14:16 marka Exp $ */
90
91 typedef struct dns_rdata_in_a {
92         dns_rdatacommon_t       common;
93         struct in_addr          in_addr;
94 } dns_rdata_in_a_t;
95
96 #endif /* IN_1_A_1_H */
97 /*
98  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
99  * Copyright (C) 1999-2001  Internet Software Consortium.
100  *
101  * Permission to use, copy, modify, and 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 #ifndef HS_4_A_1_H
115 #define HS_4_A_1_H 1
116
117 /* $Id: a_1.h,v 1.7.206.1 2004/03/06 08:14:15 marka Exp $ */
118
119 typedef struct dns_rdata_hs_a {
120         dns_rdatacommon_t       common;
121         struct in_addr          in_addr;
122 } dns_rdata_hs_a_t;
123
124 #endif /* HS_4_A_1_H */
125 /*
126  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
127  * Copyright (C) 1998-2001  Internet Software Consortium.
128  *
129  * Permission to use, copy, modify, and distribute this software for any
130  * purpose with or without fee is hereby granted, provided that the above
131  * copyright notice and this permission notice appear in all copies.
132  *
133  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
134  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
135  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
136  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
137  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
138  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
139  * PERFORMANCE OF THIS SOFTWARE.
140  */
141
142 #ifndef GENERIC_NS_2_H
143 #define GENERIC_NS_2_H 1
144
145 /* $Id: ns_2.h,v 1.22.206.1 2004/03/06 08:14:09 marka Exp $ */
146
147 typedef struct dns_rdata_ns {
148         dns_rdatacommon_t       common;
149         isc_mem_t               *mctx;
150         dns_name_t              name;
151 } dns_rdata_ns_t;
152
153
154 #endif /* GENERIC_NS_2_H */
155 /*
156  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
157  * Copyright (C) 1998-2001  Internet Software Consortium.
158  *
159  * Permission to use, copy, modify, and distribute this software for any
160  * purpose with or without fee is hereby granted, provided that the above
161  * copyright notice and this permission notice appear in all copies.
162  *
163  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
164  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
165  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
166  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
167  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
168  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
169  * PERFORMANCE OF THIS SOFTWARE.
170  */
171
172 #ifndef GENERIC_MD_3_H
173 #define GENERIC_MD_3_H 1
174
175 /* $Id: md_3.h,v 1.23.206.1 2004/03/06 08:14:07 marka Exp $ */
176
177 typedef struct dns_rdata_md {
178         dns_rdatacommon_t       common;
179         isc_mem_t               *mctx;
180         dns_name_t              md;
181 } dns_rdata_md_t;
182
183
184 #endif /* GENERIC_MD_3_H */
185 /*
186  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
187  * Copyright (C) 1998-2001  Internet Software Consortium.
188  *
189  * Permission to use, copy, modify, and distribute this software for any
190  * purpose with or without fee is hereby granted, provided that the above
191  * copyright notice and this permission notice appear in all copies.
192  *
193  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
194  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
195  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
196  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
197  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
198  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
199  * PERFORMANCE OF THIS SOFTWARE.
200  */
201
202 #ifndef GENERIC_MF_4_H
203 #define GENERIC_MF_4_H 1
204
205 /* $Id: mf_4.h,v 1.21.206.1 2004/03/06 08:14:07 marka Exp $ */
206
207 typedef struct dns_rdata_mf {
208         dns_rdatacommon_t       common;
209         isc_mem_t               *mctx;
210         dns_name_t              mf;
211 } dns_rdata_mf_t;
212
213 #endif /* GENERIC_MF_4_H */
214 /*
215  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
216  * Copyright (C) 1998-2001  Internet Software Consortium.
217  *
218  * Permission to use, copy, modify, and distribute this software for any
219  * purpose with or without fee is hereby granted, provided that the above
220  * copyright notice and this permission notice appear in all copies.
221  *
222  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
223  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
224  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
225  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
226  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
227  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
228  * PERFORMANCE OF THIS SOFTWARE.
229  */
230
231 /* $Id: cname_5.h,v 1.23.206.1 2004/03/06 08:14:04 marka Exp $ */
232
233 #ifndef GENERIC_CNAME_5_H
234 #define GENERIC_CNAME_5_H 1
235
236 typedef struct dns_rdata_cname {
237         dns_rdatacommon_t       common;
238         isc_mem_t               *mctx;
239         dns_name_t              cname;
240 } dns_rdata_cname_t;
241
242 #endif /* GENERIC_CNAME_5_H */
243 /*
244  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
245  * Copyright (C) 1998-2001  Internet Software Consortium.
246  *
247  * Permission to use, copy, modify, and distribute this software for any
248  * purpose with or without fee is hereby granted, provided that the above
249  * copyright notice and this permission notice appear in all copies.
250  *
251  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
252  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
253  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
254  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
255  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
256  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
257  * PERFORMANCE OF THIS SOFTWARE.
258  */
259
260 #ifndef GENERIC_SOA_6_H
261 #define GENERIC_SOA_6_H 1
262
263 /* $Id: soa_6.h,v 1.27.206.1 2004/03/06 08:14:12 marka Exp $ */
264
265 typedef struct dns_rdata_soa {
266         dns_rdatacommon_t       common;
267         isc_mem_t               *mctx;
268         dns_name_t              origin;
269         dns_name_t              contact;
270         isc_uint32_t            serial;         /* host order */
271         isc_uint32_t            refresh;        /* host order */
272         isc_uint32_t            retry;          /* host order */
273         isc_uint32_t            expire;         /* host order */
274         isc_uint32_t            minimum;        /* host order */
275 } dns_rdata_soa_t;
276
277
278 #endif /* GENERIC_SOA_6_H */
279 /*
280  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
281  * Copyright (C) 1998-2001  Internet Software Consortium.
282  *
283  * Permission to use, copy, modify, and distribute this software for any
284  * purpose with or without fee is hereby granted, provided that the above
285  * copyright notice and this permission notice appear in all copies.
286  *
287  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
288  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
289  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
290  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
291  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
292  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
293  * PERFORMANCE OF THIS SOFTWARE.
294  */
295
296 #ifndef GENERIC_MB_7_H
297 #define GENERIC_MB_7_H 1
298
299 /* $Id: mb_7.h,v 1.22.206.1 2004/03/06 08:14:06 marka Exp $ */
300
301 typedef struct dns_rdata_mb {
302         dns_rdatacommon_t       common;
303         isc_mem_t               *mctx;
304         dns_name_t              mb;
305 } dns_rdata_mb_t;
306
307 #endif /* GENERIC_MB_7_H */
308 /*
309  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
310  * Copyright (C) 1998-2001  Internet Software Consortium.
311  *
312  * Permission to use, copy, modify, and distribute this software for any
313  * purpose with or without fee is hereby granted, provided that the above
314  * copyright notice and this permission notice appear in all copies.
315  *
316  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
317  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
318  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
319  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
320  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
321  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
322  * PERFORMANCE OF THIS SOFTWARE.
323  */
324
325 #ifndef GENERIC_MG_8_H
326 #define GENERIC_MG_8_H 1
327
328 /* $Id: mg_8.h,v 1.21.206.1 2004/03/06 08:14:07 marka Exp $ */
329
330 typedef struct dns_rdata_mg {
331         dns_rdatacommon_t       common;
332         isc_mem_t               *mctx;
333         dns_name_t              mg;
334 } dns_rdata_mg_t;
335
336 #endif /* GENERIC_MG_8_H */
337 /*
338  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
339  * Copyright (C) 1998-2001  Internet Software Consortium.
340  *
341  * Permission to use, copy, modify, and distribute this software for any
342  * purpose with or without fee is hereby granted, provided that the above
343  * copyright notice and this permission notice appear in all copies.
344  *
345  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
346  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
347  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
348  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
349  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
350  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
351  * PERFORMANCE OF THIS SOFTWARE.
352  */
353
354 #ifndef GENERIC_MR_9_H
355 #define GENERIC_MR_9_H 1
356
357 /* $Id: mr_9.h,v 1.21.206.1 2004/03/06 08:14:08 marka Exp $ */
358
359 typedef struct dns_rdata_mr {
360         dns_rdatacommon_t       common;
361         isc_mem_t               *mctx;
362         dns_name_t              mr;
363 } dns_rdata_mr_t;
364
365 #endif /* GENERIC_MR_9_H */
366 /*
367  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
368  * Copyright (C) 1998-2001  Internet Software Consortium.
369  *
370  * Permission to use, copy, modify, and distribute this software for any
371  * purpose with or without fee is hereby granted, provided that the above
372  * copyright notice and this permission notice appear in all copies.
373  *
374  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
375  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
376  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
377  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
378  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
379  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
380  * PERFORMANCE OF THIS SOFTWARE.
381  */
382
383 #ifndef GENERIC_NULL_10_H
384 #define GENERIC_NULL_10_H 1
385
386 /* $Id: null_10.h,v 1.20.206.1 2004/03/06 08:14:09 marka Exp $ */
387
388 typedef struct dns_rdata_null {
389         dns_rdatacommon_t       common;
390         isc_mem_t               *mctx;
391         isc_uint16_t            length;
392         unsigned char           *data;
393 } dns_rdata_null_t;
394
395
396 #endif /* GENERIC_NULL_10_H */
397 /*
398  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
399  * Copyright (C) 1999-2001  Internet Software Consortium.
400  *
401  * Permission to use, copy, modify, and distribute this software for any
402  * purpose with or without fee is hereby granted, provided that the above
403  * copyright notice and this permission notice appear in all copies.
404  *
405  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
406  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
407  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
408  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
409  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
410  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
411  * PERFORMANCE OF THIS SOFTWARE.
412  */
413
414 #ifndef IN_1_WKS_11_H
415 #define IN_1_WKS_11_H 1
416
417 /* $Id: wks_11.h,v 1.19.206.1 2004/03/06 08:14:19 marka Exp $ */
418
419 typedef struct dns_rdata_in_wks {
420         dns_rdatacommon_t       common;
421         isc_mem_t               *mctx;
422         struct in_addr          in_addr;
423         isc_uint16_t            protocol;
424         unsigned char           *map;
425         isc_uint16_t            map_len;
426 } dns_rdata_in_wks_t;
427
428 #endif /* IN_1_WKS_11_H */
429 /*
430  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
431  * Copyright (C) 1998-2001  Internet Software Consortium.
432  *
433  * Permission to use, copy, modify, and distribute this software for any
434  * purpose with or without fee is hereby granted, provided that the above
435  * copyright notice and this permission notice appear in all copies.
436  *
437  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
438  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
439  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
440  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
441  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
442  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
443  * PERFORMANCE OF THIS SOFTWARE.
444  */
445
446 #ifndef GENERIC_PTR_12_H
447 #define GENERIC_PTR_12_H 1
448
449 /* $Id: ptr_12.h,v 1.22.206.1 2004/03/06 08:14:11 marka Exp $ */
450
451 typedef struct dns_rdata_ptr {
452         dns_rdatacommon_t       common;
453         isc_mem_t               *mctx;
454         dns_name_t              ptr;
455 } dns_rdata_ptr_t;
456
457 #endif /* GENERIC_PTR_12_H */
458 /*
459  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
460  * Copyright (C) 1998-2001  Internet Software Consortium.
461  *
462  * Permission to use, copy, modify, and distribute this software for any
463  * purpose with or without fee is hereby granted, provided that the above
464  * copyright notice and this permission notice appear in all copies.
465  *
466  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
467  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
468  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
469  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
470  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
471  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
472  * PERFORMANCE OF THIS SOFTWARE.
473  */
474
475 #ifndef GENERIC_HINFO_13_H
476 #define GENERIC_HINFO_13_H 1
477
478 /* $Id: hinfo_13.h,v 1.22.206.1 2004/03/06 08:14:05 marka Exp $ */
479
480 typedef struct dns_rdata_hinfo {
481         dns_rdatacommon_t       common;
482         isc_mem_t               *mctx;
483         char                    *cpu;
484         char                    *os;
485         isc_uint8_t             cpu_len;
486         isc_uint8_t             os_len;
487 } dns_rdata_hinfo_t;
488
489 #endif /* GENERIC_HINFO_13_H */
490 /*
491  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
492  * Copyright (C) 1998-2001  Internet Software Consortium.
493  *
494  * Permission to use, copy, modify, and distribute this software for any
495  * purpose with or without fee is hereby granted, provided that the above
496  * copyright notice and this permission notice appear in all copies.
497  *
498  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
499  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
500  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
501  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
502  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
503  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
504  * PERFORMANCE OF THIS SOFTWARE.
505  */
506
507 #ifndef GENERIC_MINFO_14_H
508 #define GENERIC_MINFO_14_H 1
509
510 /* $Id: minfo_14.h,v 1.22.206.1 2004/03/06 08:14:08 marka Exp $ */
511
512 typedef struct dns_rdata_minfo {
513         dns_rdatacommon_t       common;
514         isc_mem_t               *mctx;
515         dns_name_t              rmailbox;
516         dns_name_t              emailbox;
517 } dns_rdata_minfo_t;
518
519 #endif /* GENERIC_MINFO_14_H */
520 /*
521  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
522  * Copyright (C) 1998-2001  Internet Software Consortium.
523  *
524  * Permission to use, copy, modify, and distribute this software for any
525  * purpose with or without fee is hereby granted, provided that the above
526  * copyright notice and this permission notice appear in all copies.
527  *
528  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
529  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
530  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
531  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
532  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
533  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
534  * PERFORMANCE OF THIS SOFTWARE.
535  */
536
537 #ifndef GENERIC_MX_15_H
538 #define GENERIC_MX_15_H 1
539
540 /* $Id: mx_15.h,v 1.24.206.1 2004/03/06 08:14:09 marka Exp $ */
541
542 typedef struct dns_rdata_mx {
543         dns_rdatacommon_t       common;
544         isc_mem_t               *mctx;
545         isc_uint16_t            pref;
546         dns_name_t              mx;
547 } dns_rdata_mx_t;
548
549 #endif /* GENERIC_MX_15_H */
550 /*
551  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
552  * Copyright (C) 1998-2001  Internet Software Consortium.
553  *
554  * Permission to use, copy, modify, and distribute this software for any
555  * purpose with or without fee is hereby granted, provided that the above
556  * copyright notice and this permission notice appear in all copies.
557  *
558  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
559  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
560  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
561  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
562  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
563  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
564  * PERFORMANCE OF THIS SOFTWARE.
565  */
566
567 #ifndef GENERIC_TXT_16_H
568 #define GENERIC_TXT_16_H 1
569
570 /* $Id: txt_16.h,v 1.23.206.1 2004/03/06 08:14:14 marka Exp $ */
571
572 typedef struct dns_rdata_txt_string {
573                 isc_uint8_t    length;
574                 unsigned char   *data;
575 } dns_rdata_txt_string_t;
576
577 typedef struct dns_rdata_txt {
578         dns_rdatacommon_t       common;
579         isc_mem_t               *mctx;
580         unsigned char           *txt;
581         isc_uint16_t            txt_len;
582         /* private */
583         isc_uint16_t            offset;
584 } dns_rdata_txt_t;
585
586 /*
587  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
588  * via rdatastructpre.h and rdatastructsuf.h.
589  */
590
591 isc_result_t
592 dns_rdata_txt_first(dns_rdata_txt_t *);
593
594 isc_result_t
595 dns_rdata_txt_next(dns_rdata_txt_t *);
596
597 isc_result_t
598 dns_rdata_txt_current(dns_rdata_txt_t *, dns_rdata_txt_string_t *);
599
600 #endif /* GENERIC_TXT_16_H */
601 /*
602  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
603  * Copyright (C) 1999-2001  Internet Software Consortium.
604  *
605  * Permission to use, copy, modify, and distribute this software for any
606  * purpose with or without fee is hereby granted, provided that the above
607  * copyright notice and this permission notice appear in all copies.
608  *
609  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
610  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
611  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
612  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
613  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
614  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
615  * PERFORMANCE OF THIS SOFTWARE.
616  */
617
618 #ifndef GENERIC_RP_17_H
619 #define GENERIC_RP_17_H 1
620
621 /* $Id: rp_17.h,v 1.16.206.1 2004/03/06 08:14:11 marka Exp $ */
622
623 /* RFC 1183 */
624
625 typedef struct dns_rdata_rp {
626         dns_rdatacommon_t       common;
627         isc_mem_t               *mctx;
628         dns_name_t              mail;
629         dns_name_t              text;
630 } dns_rdata_rp_t;
631
632
633 #endif /* GENERIC_RP_17_H */
634 /*
635  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
636  * Copyright (C) 1999-2001  Internet Software Consortium.
637  *
638  * Permission to use, copy, modify, and distribute this software for any
639  * purpose with or without fee is hereby granted, provided that the above
640  * copyright notice and this permission notice appear in all copies.
641  *
642  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
643  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
644  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
645  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
646  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
647  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
648  * PERFORMANCE OF THIS SOFTWARE.
649  */
650
651 #ifndef GENERIC_AFSDB_18_H
652 #define GENERIC_AFSDB_18_H 1
653
654 /* $Id: afsdb_18.h,v 1.15.206.1 2004/03/06 08:14:03 marka Exp $ */
655
656 /* RFC 1183 */
657
658 typedef struct dns_rdata_afsdb {
659         dns_rdatacommon_t       common;
660         isc_mem_t               *mctx;
661         isc_uint16_t            subtype;
662         dns_name_t              server;
663 } dns_rdata_afsdb_t;
664
665 #endif /* GENERIC_AFSDB_18_H */
666
667 /*
668  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
669  * Copyright (C) 1999-2001  Internet Software Consortium.
670  *
671  * Permission to use, copy, modify, and distribute this software for any
672  * purpose with or without fee is hereby granted, provided that the above
673  * copyright notice and this permission notice appear in all copies.
674  *
675  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
676  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
677  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
678  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
679  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
680  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
681  * PERFORMANCE OF THIS SOFTWARE.
682  */
683
684 #ifndef GENERIC_X25_19_H
685 #define GENERIC_X25_19_H 1
686
687 /* $Id: x25_19.h,v 1.13.206.1 2004/03/06 08:14:14 marka Exp $ */
688
689 /* RFC 1183 */
690
691 typedef struct dns_rdata_x25 {
692         dns_rdatacommon_t       common;
693         isc_mem_t               *mctx;
694         unsigned char           *x25;
695         isc_uint8_t             x25_len;
696 } dns_rdata_x25_t;
697
698 #endif /* GENERIC_X25_19_H */
699 /*
700  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
701  * Copyright (C) 1999-2001  Internet Software Consortium.
702  *
703  * Permission to use, copy, modify, and distribute this software for any
704  * purpose with or without fee is hereby granted, provided that the above
705  * copyright notice and this permission notice appear in all copies.
706  *
707  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
708  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
709  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
710  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
711  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
712  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
713  * PERFORMANCE OF THIS SOFTWARE.
714  */
715
716 #ifndef GENERIC_ISDN_20_H
717 #define GENERIC_ISDN_20_H 1
718
719 /* $Id: isdn_20.h,v 1.13.206.1 2004/03/06 08:14:05 marka Exp $ */
720
721 /* RFC 1183 */
722
723 typedef struct dns_rdata_isdn {
724         dns_rdatacommon_t       common;
725         isc_mem_t               *mctx;
726         char                    *isdn;
727         char                    *subaddress;
728         isc_uint8_t             isdn_len;
729         isc_uint8_t             subaddress_len;
730 } dns_rdata_isdn_t;
731
732 #endif /* GENERIC_ISDN_20_H */
733 /*
734  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
735  * Copyright (C) 1999-2001  Internet Software Consortium.
736  *
737  * Permission to use, copy, modify, and distribute this software for any
738  * purpose with or without fee is hereby granted, provided that the above
739  * copyright notice and this permission notice appear in all copies.
740  *
741  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
742  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
743  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
744  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
745  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
746  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
747  * PERFORMANCE OF THIS SOFTWARE.
748  */
749
750 #ifndef GENERIC_RT_21_H
751 #define GENERIC_RT_21_H 1
752
753 /* $Id: rt_21.h,v 1.16.206.1 2004/03/06 08:14:12 marka Exp $ */
754
755 /* RFC 1183 */
756
757 typedef struct dns_rdata_rt {
758         dns_rdatacommon_t       common;
759         isc_mem_t               *mctx;
760         isc_uint16_t            preference;
761         dns_name_t              host;
762 } dns_rdata_rt_t;
763
764 #endif /* GENERIC_RT_21_H */
765 /*
766  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
767  * Copyright (C) 1999-2001  Internet Software Consortium.
768  *
769  * Permission to use, copy, modify, and distribute this software for any
770  * purpose with or without fee is hereby granted, provided that the above
771  * copyright notice and this permission notice appear in all copies.
772  *
773  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
774  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
775  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
776  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
777  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
778  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
779  * PERFORMANCE OF THIS SOFTWARE.
780  */
781
782 #ifndef IN_1_NSAP_22_H
783 #define IN_1_NSAP_22_H 1
784
785 /* $Id: nsap_22.h,v 1.13.206.1 2004/03/06 08:14:18 marka Exp $ */
786
787 /* RFC 1706 */
788
789 typedef struct dns_rdata_in_nsap {
790         dns_rdatacommon_t       common;
791         isc_mem_t               *mctx;
792         unsigned char           *nsap;
793         isc_uint16_t            nsap_len;
794 } dns_rdata_in_nsap_t;
795
796 #endif /* IN_1_NSAP_22_H */
797 /*
798  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
799  * Copyright (C) 1999-2001  Internet Software Consortium.
800  *
801  * Permission to use, copy, modify, and distribute this software for any
802  * purpose with or without fee is hereby granted, provided that the above
803  * copyright notice and this permission notice appear in all copies.
804  *
805  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
806  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
807  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
808  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
809  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
810  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
811  * PERFORMANCE OF THIS SOFTWARE.
812  */
813
814 #ifndef IN_1_NSAP_PTR_23_H
815 #define IN_1_NSAP_PTR_23_H 1
816
817 /* $Id: nsap-ptr_23.h,v 1.14.206.1 2004/03/06 08:14:18 marka Exp $ */
818
819 /* RFC 1348.  Obsoleted in RFC 1706 - use PTR instead. */
820
821 typedef struct dns_rdata_in_nsap_ptr {
822         dns_rdatacommon_t       common;
823         isc_mem_t               *mctx;
824         dns_name_t              owner;
825 } dns_rdata_in_nsap_ptr_t;
826
827 #endif /* IN_1_NSAP_PTR_23_H */
828 /*
829  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
830  * Copyright (C) 1999-2001  Internet Software Consortium.
831  *
832  * Permission to use, copy, modify, and distribute this software for any
833  * purpose with or without fee is hereby granted, provided that the above
834  * copyright notice and this permission notice appear in all copies.
835  *
836  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
837  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
838  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
839  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
840  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
841  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
842  * PERFORMANCE OF THIS SOFTWARE.
843  */
844
845 #ifndef GENERIC_SIG_24_H
846 #define GENERIC_SIG_24_H 1
847
848 /* $Id: sig_24.h,v 1.21.206.1 2004/03/06 08:14:12 marka Exp $ */
849
850 /* RFC 2535 */
851
852 typedef struct dns_rdata_sig_t {
853         dns_rdatacommon_t       common;
854         isc_mem_t *             mctx;
855         dns_rdatatype_t         covered;
856         dns_secalg_t            algorithm;
857         isc_uint8_t             labels;
858         isc_uint32_t            originalttl;
859         isc_uint32_t            timeexpire;
860         isc_uint32_t            timesigned;
861         isc_uint16_t            keyid;
862         dns_name_t              signer;
863         isc_uint16_t            siglen;
864         unsigned char *         signature;
865 } dns_rdata_sig_t;
866
867
868 #endif /* GENERIC_SIG_24_H */
869 /*
870  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
871  * Copyright (C) 1999-2001  Internet Software Consortium.
872  *
873  * Permission to use, copy, modify, and distribute this software for any
874  * purpose with or without fee is hereby granted, provided that the above
875  * copyright notice and this permission notice appear in all copies.
876  *
877  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
878  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
879  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
880  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
881  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
882  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
883  * PERFORMANCE OF THIS SOFTWARE.
884  */
885
886 #ifndef GENERIC_KEY_25_H
887 #define GENERIC_KEY_25_H 1
888
889 /* $Id: key_25.h,v 1.14.206.1 2004/03/06 08:14:06 marka Exp $ */
890
891 /* RFC 2535 */
892
893 typedef struct dns_rdata_key_t {
894         dns_rdatacommon_t       common;
895         isc_mem_t *             mctx;
896         isc_uint16_t            flags;
897         isc_uint8_t             protocol;
898         isc_uint8_t             algorithm;
899         isc_uint16_t            datalen;
900         unsigned char *         data;
901 } dns_rdata_key_t;
902
903
904 #endif /* GENERIC_KEY_25_H */
905 /*
906  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
907  * Copyright (C) 1999-2001  Internet Software Consortium.
908  *
909  * Permission to use, copy, modify, and distribute this software for any
910  * purpose with or without fee is hereby granted, provided that the above
911  * copyright notice and this permission notice appear in all copies.
912  *
913  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
914  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
915  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
916  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
917  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
918  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
919  * PERFORMANCE OF THIS SOFTWARE.
920  */
921
922 #ifndef IN_1_PX_26_H
923 #define IN_1_PX_26_H 1
924
925 /* $Id: px_26.h,v 1.14.206.1 2004/03/06 08:14:18 marka Exp $ */
926
927 /* RFC 2163 */
928
929 typedef struct dns_rdata_in_px {
930         dns_rdatacommon_t       common;
931         isc_mem_t               *mctx;
932         isc_uint16_t            preference;
933         dns_name_t              map822;
934         dns_name_t              mapx400;
935 } dns_rdata_in_px_t;
936
937 #endif /* IN_1_PX_26_H */
938 /*
939  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
940  * Copyright (C) 1999-2001  Internet Software Consortium.
941  *
942  * Permission to use, copy, modify, and distribute this software for any
943  * purpose with or without fee is hereby granted, provided that the above
944  * copyright notice and this permission notice appear in all copies.
945  *
946  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
947  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
948  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
949  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
950  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
951  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
952  * PERFORMANCE OF THIS SOFTWARE.
953  */
954
955 #ifndef GENERIC_GPOS_27_H
956 #define GENERIC_GPOS_27_H 1
957
958 /* $Id: gpos_27.h,v 1.12.206.1 2004/03/06 08:14:04 marka Exp $ */
959
960 /* RFC 1712 */
961
962 typedef struct dns_rdata_gpos {
963         dns_rdatacommon_t       common;
964         isc_mem_t               *mctx;
965         char                    *longitude;
966         char                    *latitude;
967         char                    *altitude;
968         isc_uint8_t             long_len;
969         isc_uint8_t             lat_len;
970         isc_uint8_t             alt_len;
971 } dns_rdata_gpos_t;
972
973 #endif /* GENERIC_GPOS_27_H */
974 /*
975  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
976  * Copyright (C) 1999-2001  Internet Software Consortium.
977  *
978  * Permission to use, copy, modify, and distribute this software for any
979  * purpose with or without fee is hereby granted, provided that the above
980  * copyright notice and this permission notice appear in all copies.
981  *
982  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
983  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
984  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
985  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
986  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
987  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
988  * PERFORMANCE OF THIS SOFTWARE.
989  */
990
991 #ifndef IN_1_AAAA_28_H
992 #define IN_1_AAAA_28_H 1
993
994 /* $Id: aaaa_28.h,v 1.16.206.1 2004/03/06 08:14:16 marka Exp $ */
995
996 /* RFC 1886 */
997
998 typedef struct dns_rdata_in_aaaa {
999         dns_rdatacommon_t       common;
1000         struct in6_addr         in6_addr;
1001 } dns_rdata_in_aaaa_t;
1002
1003 #endif /* IN_1_AAAA_28_H */
1004 /*
1005  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1006  * Copyright (C) 1999-2001  Internet Software Consortium.
1007  *
1008  * Permission to use, copy, modify, and distribute this software for any
1009  * purpose with or without fee is hereby granted, provided that the above
1010  * copyright notice and this permission notice appear in all copies.
1011  *
1012  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1013  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1014  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1015  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1016  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1017  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1018  * PERFORMANCE OF THIS SOFTWARE.
1019  */
1020
1021 #ifndef GENERIC_LOC_29_H
1022 #define GENERIC_LOC_29_H 1
1023
1024 /* $Id: loc_29.h,v 1.14.206.1 2004/03/06 08:14:06 marka Exp $ */
1025
1026 /* RFC 1876 */
1027
1028 typedef struct dns_rdata_loc_0 {
1029         isc_uint8_t     version;        /* must be first and zero */
1030         isc_uint8_t     size;
1031         isc_uint8_t     horizontal;
1032         isc_uint8_t     vertical;
1033         isc_uint32_t    latitude;
1034         isc_uint32_t    longitude;
1035         isc_uint32_t    altitude;
1036 } dns_rdata_loc_0_t;
1037
1038 typedef struct dns_rdata_loc {
1039         dns_rdatacommon_t       common;
1040         union {
1041                 dns_rdata_loc_0_t v0;
1042         } v;
1043 } dns_rdata_loc_t;
1044
1045 #endif /* GENERIC_LOC_29_H */
1046 /*
1047  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1048  * Copyright (C) 1999-2002  Internet Software Consortium.
1049  *
1050  * Permission to use, copy, modify, and distribute this software for any
1051  * purpose with or without fee is hereby granted, provided that the above
1052  * copyright notice and this permission notice appear in all copies.
1053  *
1054  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1055  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1056  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1057  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1058  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1059  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1060  * PERFORMANCE OF THIS SOFTWARE.
1061  */
1062
1063 #ifndef GENERIC_NXT_30_H
1064 #define GENERIC_NXT_30_H 1
1065
1066 /* $Id: nxt_30.h,v 1.18.12.3 2004/03/08 09:04:41 marka Exp $ */
1067
1068 /* RFC 2535 */
1069
1070 typedef struct dns_rdata_nxt {
1071         dns_rdatacommon_t       common;
1072         isc_mem_t               *mctx;
1073         dns_name_t              next;
1074         unsigned char           *typebits;
1075         isc_uint16_t            len;
1076 } dns_rdata_nxt_t;
1077
1078 #endif /* GENERIC_NXT_30_H */
1079 /*
1080  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1081  * Copyright (C) 1999-2001  Internet Software Consortium.
1082  *
1083  * Permission to use, copy, modify, and distribute this software for any
1084  * purpose with or without fee is hereby granted, provided that the above
1085  * copyright notice and this permission notice appear in all copies.
1086  *
1087  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1088  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1089  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1090  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1091  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1092  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1093  * PERFORMANCE OF THIS SOFTWARE.
1094  */
1095
1096 #ifndef IN_1_SRV_33_H
1097 #define IN_1_SRV_33_H 1
1098
1099 /* $Id: srv_33.h,v 1.14.206.1 2004/03/06 08:14:19 marka Exp $ */
1100
1101 /* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
1102
1103 /* RFC 2782 */
1104
1105 typedef struct dns_rdata_in_srv {
1106         dns_rdatacommon_t       common;
1107         isc_mem_t               *mctx;
1108         isc_uint16_t            priority;
1109         isc_uint16_t            weight;
1110         isc_uint16_t            port;
1111         dns_name_t              target;
1112 } dns_rdata_in_srv_t;
1113
1114 #endif /* IN_1_SRV_33_H */
1115 /*
1116  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1117  * Copyright (C) 1999-2001  Internet Software Consortium.
1118  *
1119  * Permission to use, copy, modify, and distribute this software for any
1120  * purpose with or without fee is hereby granted, provided that the above
1121  * copyright notice and this permission notice appear in all copies.
1122  *
1123  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1124  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1125  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1126  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1127  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1128  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1129  * PERFORMANCE OF THIS SOFTWARE.
1130  */
1131
1132 #ifndef IN_1_NAPTR_35_H
1133 #define IN_1_NAPTR_35_H 1
1134
1135 /* $Id: naptr_35.h,v 1.18.206.1 2004/03/06 08:14:17 marka Exp $ */
1136
1137 /* RFC 2915 */
1138
1139 typedef struct dns_rdata_in_naptr {
1140         dns_rdatacommon_t       common;
1141         isc_mem_t               *mctx;
1142         isc_uint16_t            order;
1143         isc_uint16_t            preference;
1144         char                    *flags;
1145         isc_uint8_t             flags_len;
1146         char                    *service;
1147         isc_uint8_t             service_len;
1148         char                    *regexp;
1149         isc_uint8_t             regexp_len;
1150         dns_name_t              replacement;
1151 } dns_rdata_in_naptr_t;
1152
1153 #endif /* IN_1_NAPTR_35_H */
1154 /*
1155  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1156  * Copyright (C) 1999-2001  Internet Software Consortium.
1157  *
1158  * Permission to use, copy, modify, and distribute this software for any
1159  * purpose with or without fee is hereby granted, provided that the above
1160  * copyright notice and this permission notice appear in all copies.
1161  *
1162  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1163  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1164  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1165  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1166  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1167  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1168  * PERFORMANCE OF THIS SOFTWARE.
1169  */
1170
1171 #ifndef IN_1_KX_36_H
1172 #define IN_1_KX_36_H 1
1173
1174 /* $Id: kx_36.h,v 1.15.206.1 2004/03/06 08:14:17 marka Exp $ */
1175
1176 /* RFC 2230 */
1177
1178 typedef struct dns_rdata_in_kx {
1179         dns_rdatacommon_t       common;
1180         isc_mem_t               *mctx;
1181         isc_uint16_t            preference;
1182         dns_name_t              exchange;
1183 } dns_rdata_in_kx_t;
1184
1185 #endif /* IN_1_KX_36_H */
1186 /*
1187  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1188  * Copyright (C) 1999-2001  Internet Software Consortium.
1189  *
1190  * Permission to use, copy, modify, and distribute this software for any
1191  * purpose with or without fee is hereby granted, provided that the above
1192  * copyright notice and this permission notice appear in all copies.
1193  *
1194  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1195  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1196  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1197  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1198  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1199  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1200  * PERFORMANCE OF THIS SOFTWARE.
1201  */
1202
1203 /* $Id: cert_37.h,v 1.15.206.1 2004/03/06 08:14:03 marka Exp $ */
1204
1205 /* RFC 2538 */
1206 #ifndef GENERIC_CERT_37_H
1207 #define GENERIC_CERT_37_H 1
1208
1209 typedef struct dns_rdata_cert {
1210         dns_rdatacommon_t       common;
1211         isc_mem_t               *mctx;
1212         isc_uint16_t            type;
1213         isc_uint16_t            key_tag;
1214         isc_uint8_t             algorithm;
1215         isc_uint16_t            length;
1216         unsigned char           *certificate;
1217 } dns_rdata_cert_t;
1218
1219 #endif /* GENERIC_CERT_37_H */
1220 /*
1221  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1222  * Copyright (C) 1999-2001  Internet Software Consortium.
1223  *
1224  * Permission to use, copy, modify, and distribute this software for any
1225  * purpose with or without fee is hereby granted, provided that the above
1226  * copyright notice and this permission notice appear in all copies.
1227  *
1228  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1229  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1230  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1231  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1232  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1233  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1234  * PERFORMANCE OF THIS SOFTWARE.
1235  */
1236
1237 #ifndef IN_1_A6_38_H
1238 #define IN_1_A6_38_H 1
1239
1240 /* $Id: a6_38.h,v 1.19.206.1 2004/03/06 08:14:15 marka Exp $ */
1241
1242 /* RFC2874 */
1243
1244 typedef struct dns_rdata_in_a6 {
1245         dns_rdatacommon_t       common;
1246         isc_mem_t               *mctx;
1247         dns_name_t              prefix;
1248         isc_uint8_t             prefixlen;
1249         struct in6_addr         in6_addr;
1250 } dns_rdata_in_a6_t;
1251
1252 #endif /* IN_1_A6_38_H */
1253 /*
1254  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1255  * Copyright (C) 1999-2001  Internet Software Consortium.
1256  *
1257  * Permission to use, copy, modify, and distribute this software for any
1258  * purpose with or without fee is hereby granted, provided that the above
1259  * copyright notice and this permission notice appear in all copies.
1260  *
1261  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1262  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1263  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1264  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1265  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1266  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1267  * PERFORMANCE OF THIS SOFTWARE.
1268  */
1269
1270 #ifndef GENERIC_DNAME_39_H
1271 #define GENERIC_DNAME_39_H 1
1272
1273 /* $Id: dname_39.h,v 1.16.206.1 2004/03/06 08:14:04 marka Exp $ */
1274
1275 /* RFC2672 */
1276
1277 typedef struct dns_rdata_dname {
1278         dns_rdatacommon_t       common;
1279         isc_mem_t               *mctx;
1280         dns_name_t              dname;
1281 } dns_rdata_dname_t;
1282
1283 #endif /* GENERIC_DNAME_39_H */
1284 /*
1285  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1286  * Copyright (C) 1998-2001  Internet Software Consortium.
1287  *
1288  * Permission to use, copy, modify, and distribute this software for any
1289  * purpose with or without fee is hereby granted, provided that the above
1290  * copyright notice and this permission notice appear in all copies.
1291  *
1292  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1293  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1294  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1295  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1296  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1297  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1298  * PERFORMANCE OF THIS SOFTWARE.
1299  */
1300
1301 #ifndef GENERIC_OPT_41_H
1302 #define GENERIC_OPT_41_H 1
1303
1304 /* $Id: opt_41.h,v 1.13.206.1 2004/03/06 08:14:10 marka Exp $ */
1305
1306 /* RFC 2671 */
1307
1308 typedef struct dns_rdata_opt_opcode {
1309                 isc_uint16_t    opcode;
1310                 isc_uint16_t    length;
1311                 unsigned char   *data;
1312 } dns_rdata_opt_opcode_t;
1313
1314 typedef struct dns_rdata_opt {
1315         dns_rdatacommon_t       common;
1316         isc_mem_t               *mctx;
1317         unsigned char           *options;
1318         isc_uint16_t            length;
1319         /* private */
1320         isc_uint16_t            offset;
1321 } dns_rdata_opt_t;
1322
1323 /*
1324  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
1325  * via rdatastructpre.h and rdatastructsuf.h.
1326  */
1327
1328 isc_result_t
1329 dns_rdata_opt_first(dns_rdata_opt_t *);
1330
1331 isc_result_t
1332 dns_rdata_opt_next(dns_rdata_opt_t *);
1333
1334 isc_result_t
1335 dns_rdata_opt_current(dns_rdata_opt_t *, dns_rdata_opt_opcode_t *);
1336
1337 #endif /* GENERIC_OPT_41_H */
1338 /*
1339  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1340  * Copyright (C) 2002  Internet Software Consortium.
1341  *
1342  * Permission to use, copy, modify, and distribute this software for any
1343  * purpose with or without fee is hereby granted, provided that the above
1344  * copyright notice and this permission notice appear in all copies.
1345  *
1346  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1347  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1348  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1349  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1350  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1351  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1352  * PERFORMANCE OF THIS SOFTWARE.
1353  */
1354
1355 #ifndef IN_1_APL_42_H
1356 #define IN_1_APL_42_H 1
1357
1358 /* $Id: apl_42.h,v 1.1.202.3 2004/03/08 09:04:44 marka Exp $ */
1359
1360 typedef struct dns_rdata_apl_ent {
1361         isc_boolean_t   negative;
1362         isc_uint16_t    family;
1363         isc_uint8_t     prefix;
1364         isc_uint8_t     length;
1365         unsigned char   *data;
1366 } dns_rdata_apl_ent_t;
1367
1368 typedef struct dns_rdata_in_apl {
1369         dns_rdatacommon_t       common;
1370         isc_mem_t               *mctx;
1371         /* type & class specific elements */
1372         unsigned char           *apl;
1373         isc_uint16_t            apl_len;
1374         /* private */
1375         isc_uint16_t            offset;
1376 } dns_rdata_in_apl_t;
1377
1378 /*
1379  * ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are already done
1380  * via rdatastructpre.h and rdatastructsuf.h.
1381  */
1382
1383 isc_result_t
1384 dns_rdata_apl_first(dns_rdata_in_apl_t *);
1385
1386 isc_result_t
1387 dns_rdata_apl_next(dns_rdata_in_apl_t *);
1388
1389 isc_result_t
1390 dns_rdata_apl_current(dns_rdata_in_apl_t *, dns_rdata_apl_ent_t *);
1391
1392 #endif /* IN_1_APL_42_H */
1393 /*
1394  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1395  * Copyright (C) 2002  Internet Software Consortium.
1396  *
1397  * Permission to use, copy, modify, and distribute this software for any
1398  * purpose with or without fee is hereby granted, provided that the above
1399  * copyright notice and this permission notice appear in all copies.
1400  *
1401  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1402  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1403  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1404  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1405  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1406  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1407  * PERFORMANCE OF THIS SOFTWARE.
1408  */
1409
1410 /* $Id: ds_43.h,v 1.3.2.1 2004/03/08 02:08:03 marka Exp $ */
1411
1412 /* draft-ietf-dnsext-delegation-signer-05.txt */
1413 #ifndef GENERIC_DS_43_H
1414 #define GENERIC_DS_43_H 1
1415
1416 typedef struct dns_rdata_ds {
1417         dns_rdatacommon_t       common;
1418         isc_mem_t               *mctx;
1419         isc_uint16_t            key_tag;
1420         isc_uint8_t             algorithm;
1421         isc_uint8_t             digest_type;
1422         isc_uint16_t            length;
1423         unsigned char           *digest;
1424 } dns_rdata_ds_t;
1425
1426 #endif /* GENERIC_DS_43_H */
1427 /*
1428  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1429  * Copyright (C) 2003  Internet Software Consortium.
1430  *
1431  * Permission to use, copy, modify, and distribute this software for any
1432  * purpose with or without fee is hereby granted, provided that the above
1433  * copyright notice and this permission notice appear in all copies.
1434  *
1435  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1436  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1437  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1438  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1439  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1440  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1441  * PERFORMANCE OF THIS SOFTWARE.
1442  */
1443
1444 /* $Id: sshfp_44.h,v 1.1.8.2 2004/03/06 08:14:13 marka Exp $ */
1445
1446 /* draft-ietf-secsh-dns-05.txt */
1447
1448 #ifndef GENERIC_SSHFP_44_H
1449 #define GENERIC_SSHFP_44_H 1
1450
1451 typedef struct dns_rdata_sshfp {
1452         dns_rdatacommon_t       common;
1453         isc_mem_t               *mctx;
1454         isc_uint8_t             algorithm;
1455         isc_uint8_t             digest_type;
1456         isc_uint16_t            length;
1457         unsigned char           *digest;
1458 } dns_rdata_sshfp_t;
1459
1460 #endif /* GENERIC_SSHFP_44_H */
1461 /*
1462  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1463  * Copyright (C) 2003  Internet Software Consortium.
1464  *
1465  * Permission to use, copy, modify, and distribute this software for any
1466  * purpose with or without fee is hereby granted, provided that the above
1467  * copyright notice and this permission notice appear in all copies.
1468  *
1469  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1470  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1471  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1472  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1473  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1474  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1475  * PERFORMANCE OF THIS SOFTWARE.
1476  */
1477
1478 #ifndef GENERIC_DNSSIG_46_H
1479 #define GENERIC_DNSSIG_46_H 1
1480
1481 /* $Id: rrsig_46.h,v 1.3.2.1 2004/03/08 02:08:04 marka Exp $ */
1482
1483 /* RFC 2535 */
1484 typedef struct dns_rdata_rrsig {
1485         dns_rdatacommon_t       common;
1486         isc_mem_t *             mctx;
1487         dns_rdatatype_t         covered;
1488         dns_secalg_t            algorithm;
1489         isc_uint8_t             labels;
1490         isc_uint32_t            originalttl;
1491         isc_uint32_t            timeexpire;
1492         isc_uint32_t            timesigned;
1493         isc_uint16_t            keyid;
1494         dns_name_t              signer;
1495         isc_uint16_t            siglen;
1496         unsigned char *         signature;
1497 } dns_rdata_rrsig_t;
1498
1499
1500 #endif /* GENERIC_DNSSIG_46_H */
1501 /*
1502  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1503  * Copyright (C) 2003  Internet Software Consortium.
1504  *
1505  * Permission to use, copy, modify, and distribute this software for any
1506  * purpose with or without fee is hereby granted, provided that the above
1507  * copyright notice and this permission notice appear in all copies.
1508  *
1509  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1510  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1511  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1512  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1513  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1514  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1515  * PERFORMANCE OF THIS SOFTWARE.
1516  */
1517
1518 #ifndef GENERIC_NSEC_47_H
1519 #define GENERIC_NSEC_47_H 1
1520
1521 /* $Id: nsec_47.h,v 1.4.2.1 2004/03/08 02:08:03 marka Exp $ */
1522
1523 /* draft-ietf-dnsext-nsec-rdata-01.txt */
1524
1525 typedef struct dns_rdata_nsec {
1526         dns_rdatacommon_t       common;
1527         isc_mem_t               *mctx;
1528         dns_name_t              next;
1529         unsigned char           *typebits;
1530         isc_uint16_t            len;
1531 } dns_rdata_nsec_t;
1532
1533 #endif /* GENERIC_NSEC_47_H */
1534 /*
1535  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1536  * Copyright (C) 2003  Internet Software Consortium.
1537  *
1538  * Permission to use, copy, modify, and distribute this software for any
1539  * purpose with or without fee is hereby granted, provided that the above
1540  * copyright notice and this permission notice appear in all copies.
1541  *
1542  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1543  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1544  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1545  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1546  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1547  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1548  * PERFORMANCE OF THIS SOFTWARE.
1549  */
1550
1551 #ifndef GENERIC_DNSKEY_48_H
1552 #define GENERIC_DNSKEY_48_H 1
1553
1554 /* $Id: dnskey_48.h,v 1.3.2.1 2004/03/08 02:08:02 marka Exp $ */
1555
1556 /* RFC 2535 */
1557
1558 typedef struct dns_rdata_dnskey {
1559         dns_rdatacommon_t       common;
1560         isc_mem_t *             mctx;
1561         isc_uint16_t            flags;
1562         isc_uint8_t             protocol;
1563         isc_uint8_t             algorithm;
1564         isc_uint16_t            datalen;
1565         unsigned char *         data;
1566 } dns_rdata_dnskey_t;
1567
1568
1569 #endif /* GENERIC_DNSKEY_48_H */
1570 /*
1571  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1572  * Copyright (C) 1999-2001  Internet Software Consortium.
1573  *
1574  * Permission to use, copy, modify, and distribute this software for any
1575  * purpose with or without fee is hereby granted, provided that the above
1576  * copyright notice and this permission notice appear in all copies.
1577  *
1578  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1579  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1580  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1581  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1582  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1583  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1584  * PERFORMANCE OF THIS SOFTWARE.
1585  */
1586
1587 #ifndef GENERIC_UNSPEC_103_H
1588 #define GENERIC_UNSPEC_103_H 1
1589
1590 /* $Id: unspec_103.h,v 1.12.206.1 2004/03/06 08:14:14 marka Exp $ */
1591
1592 typedef struct dns_rdata_unspec_t {
1593         dns_rdatacommon_t       common;
1594         isc_mem_t               *mctx;
1595         unsigned char           *data;
1596         isc_uint16_t            datalen;
1597 } dns_rdata_unspec_t;
1598
1599 #endif /* GENERIC_UNSPEC_103_H */
1600 /*
1601  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1602  * Copyright (C) 1999-2001, 2003  Internet Software Consortium.
1603  *
1604  * Permission to use, copy, modify, and distribute this software for any
1605  * purpose with or without fee is hereby granted, provided that the above
1606  * copyright notice and this permission notice appear in all copies.
1607  *
1608  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1609  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1610  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1611  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1612  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1613  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1614  * PERFORMANCE OF THIS SOFTWARE.
1615  */
1616
1617 #ifndef GENERIC_TKEY_249_H
1618 #define GENERIC_TKEY_249_H 1
1619
1620 /* $Id: tkey_249.h,v 1.18.206.2 2004/03/06 08:14:13 marka Exp $ */
1621
1622 /* draft-ietf-dnsind-tkey-00.txt */
1623
1624 typedef struct dns_rdata_tkey {
1625         dns_rdatacommon_t       common;
1626         isc_mem_t *             mctx;
1627         dns_name_t              algorithm;
1628         isc_uint32_t            inception;
1629         isc_uint32_t            expire;
1630         isc_uint16_t            mode;
1631         isc_uint16_t            error;
1632         isc_uint16_t            keylen;
1633         unsigned char *         key;
1634         isc_uint16_t            otherlen;
1635         unsigned char *         other;
1636 } dns_rdata_tkey_t;
1637
1638
1639 #endif /* GENERIC_TKEY_249_H */
1640 /*
1641  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1642  * Copyright (C) 1999-2001  Internet Software Consortium.
1643  *
1644  * Permission to use, copy, modify, and distribute this software for any
1645  * purpose with or without fee is hereby granted, provided that the above
1646  * copyright notice and this permission notice appear in all copies.
1647  *
1648  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1649  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1650  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1651  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1652  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1653  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1654  * PERFORMANCE OF THIS SOFTWARE.
1655  */
1656
1657 /* $Id: tsig_250.h,v 1.20.206.1 2004/03/06 08:14:02 marka Exp $ */
1658
1659 /* RFC 2845 */
1660
1661 #ifndef ANY_255_TSIG_250_H
1662 #define ANY_255_TSIG_250_H 1
1663
1664 typedef struct dns_rdata_any_tsig {
1665         dns_rdatacommon_t       common;
1666         isc_mem_t *             mctx;
1667         dns_name_t              algorithm;
1668         isc_uint64_t            timesigned;
1669         isc_uint16_t            fudge;
1670         isc_uint16_t            siglen;
1671         unsigned char *         signature;
1672         isc_uint16_t            originalid;
1673         isc_uint16_t            error;
1674         isc_uint16_t            otherlen;
1675         unsigned char *         other;
1676 } dns_rdata_any_tsig_t;
1677
1678 #endif /* ANY_255_TSIG_250_H */
1679 /*
1680  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1681  *
1682  * Permission to use, copy, modify, and 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 /* $Id: dlv_65323.h,v 1.2.2.3 2004/03/15 01:02:55 marka Exp $ */
1696
1697 /* draft-ietf-dnsext-delegation-signer-05.txt */
1698 #ifndef GENERIC_DLV_65323_H
1699 #define GENERIC_DLV_65323_H 1
1700
1701 typedef struct dns_rdata_dlv {
1702         dns_rdatacommon_t       common;
1703         isc_mem_t               *mctx;
1704         isc_uint16_t            key_tag;
1705         isc_uint8_t             algorithm;
1706         isc_uint8_t             digest_type;
1707         isc_uint16_t            length;
1708         unsigned char           *digest;
1709 } dns_rdata_dlv_t;
1710
1711 #endif /* GENERIC_DLV_65323_H */
1712 /*
1713  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
1714  * Copyright (C) 1999-2001  Internet Software Consortium.
1715  *
1716  * Permission to use, copy, modify, and distribute this software for any
1717  * purpose with or without fee is hereby granted, provided that the above
1718  * copyright notice and this permission notice appear in all copies.
1719  *
1720  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
1721  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1722  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1723  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1724  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1725  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1726  * PERFORMANCE OF THIS SOFTWARE.
1727  */
1728
1729 /* $Id: rdatastructsuf.h,v 1.7.206.1 2004/03/06 08:14:02 marka Exp $ */
1730
1731 ISC_LANG_ENDDECLS
1732
1733 #endif /* DNS_RDATASTRUCT_H */