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