Attach bind-9.2.4rc4 to the base system. Rip out bind-8 binaries and add
[dragonfly.git] / usr.sbin / named / include / dns / rdatastruct.h
1 /*
2  * Copyright (C) 1998-2004 Internet Software Consortium.
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
9  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
10  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
11  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
13  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
14  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
15  * WITH THE USE OR 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) 1999-2001  Internet Software Consortium.
27  *
28  * Permission to use, copy, modify, and distribute this software for any
29  * purpose with or without fee is hereby granted, provided that the above
30  * copyright notice and this permission notice appear in all copies.
31  *
32  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
33  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
34  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
35  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
36  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
37  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
38  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
39  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
40  */
41
42 /* $Id: rdatastructpre.h,v 1.13 2001/01/09 21:53:45 bwelling Exp $ */
43 /* $DragonFly: src/usr.sbin/named/include/dns/rdatastruct.h,v 1.1 2004/05/27 18:15:42 dillon 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) 1998-2001  Internet Software Consortium.
70  *
71  * Permission to use, copy, modify, and distribute this software for any
72  * purpose with or without fee is hereby granted, provided that the above
73  * copyright notice and this permission notice appear in all copies.
74  *
75  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
76  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
77  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
78  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
79  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
80  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
81  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
82  * WITH THE USE OR 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 2001/01/09 21:55:04 bwelling 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) 1999-2001  Internet Software Consortium.
98  *
99  * Permission to use, copy, modify, and distribute this software for any
100  * purpose with or without fee is hereby granted, provided that the above
101  * copyright notice and this permission notice appear in all copies.
102  *
103  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
104  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
105  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
106  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
107  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
108  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
109  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
110  * WITH THE USE OR 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 2001/01/09 21:54:59 bwelling 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) 1998-2001  Internet Software Consortium.
126  *
127  * Permission to use, copy, modify, and distribute this software for any
128  * purpose with or without fee is hereby granted, provided that the above
129  * copyright notice and this permission notice appear in all copies.
130  *
131  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
132  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
133  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
134  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
135  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
136  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
137  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
138  * WITH THE USE OR 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 2001/01/09 21:54:27 bwelling 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) 1998-2001  Internet Software Consortium.
156  *
157  * Permission to use, copy, modify, and distribute this software for any
158  * purpose with or without fee is hereby granted, provided that the above
159  * copyright notice and this permission notice appear in all copies.
160  *
161  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
162  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
163  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
164  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
165  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
166  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
167  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
168  * WITH THE USE OR 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 2001/01/09 21:54:14 bwelling 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) 1998-2001  Internet Software Consortium.
186  *
187  * Permission to use, copy, modify, and distribute this software for any
188  * purpose with or without fee is hereby granted, provided that the above
189  * copyright notice and this permission notice appear in all copies.
190  *
191  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
192  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
193  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
194  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
195  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
196  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
197  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
198  * WITH THE USE OR 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 2001/01/09 21:54:16 bwelling 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) 1998-2001  Internet Software Consortium.
215  *
216  * Permission to use, copy, modify, and distribute this software for any
217  * purpose with or without fee is hereby granted, provided that the above
218  * copyright notice and this permission notice appear in all copies.
219  *
220  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
221  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
222  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
223  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
224  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
225  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
226  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
227  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
228  */
229
230 /* $Id: cname_5.h,v 1.23 2001/01/09 21:53:56 bwelling 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) 1998-2001  Internet Software Consortium.
244  *
245  * Permission to use, copy, modify, and distribute this software for any
246  * purpose with or without fee is hereby granted, provided that the above
247  * copyright notice and this permission notice appear in all copies.
248  *
249  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
250  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
251  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
252  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
253  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
254  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
255  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
256  * WITH THE USE OR 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 2001/07/30 01:09: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) 1998-2001  Internet Software Consortium.
280  *
281  * Permission to use, copy, modify, and distribute this software for any
282  * purpose with or without fee is hereby granted, provided that the above
283  * copyright notice and this permission notice appear in all copies.
284  *
285  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
286  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
287  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
288  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
289  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
290  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
291  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
292  * WITH THE USE OR 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 2001/01/09 21:54:11 bwelling 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) 1998-2001  Internet Software Consortium.
309  *
310  * Permission to use, copy, modify, and distribute this software for any
311  * purpose with or without fee is hereby granted, provided that the above
312  * copyright notice and this permission notice appear in all copies.
313  *
314  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
315  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
316  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
317  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
318  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
319  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
320  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
321  * WITH THE USE OR 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 2001/01/09 21:54:18 bwelling 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) 1998-2001  Internet Software Consortium.
338  *
339  * Permission to use, copy, modify, and distribute this software for any
340  * purpose with or without fee is hereby granted, provided that the above
341  * copyright notice and this permission notice appear in all copies.
342  *
343  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
344  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
345  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
346  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
347  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
348  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
349  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
350  * WITH THE USE OR 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 2001/01/09 21:54:23 bwelling 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) 1998-2001  Internet Software Consortium.
367  *
368  * Permission to use, copy, modify, and distribute this software for any
369  * purpose with or without fee is hereby granted, provided that the above
370  * copyright notice and this permission notice appear in all copies.
371  *
372  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
373  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
374  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
375  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
376  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
377  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
378  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
379  * WITH THE USE OR 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 2001/01/09 21:54:30 bwelling 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) 1999-2001  Internet Software Consortium.
398  *
399  * Permission to use, copy, modify, and distribute this software for any
400  * purpose with or without fee is hereby granted, provided that the above
401  * copyright notice and this permission notice appear in all copies.
402  *
403  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
404  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
405  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
406  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
407  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
408  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
409  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
410  * WITH THE USE OR 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 2001/01/09 21:55:22 bwelling 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) 1998-2001  Internet Software Consortium.
430  *
431  * Permission to use, copy, modify, and distribute this software for any
432  * purpose with or without fee is hereby granted, provided that the above
433  * copyright notice and this permission notice appear in all copies.
434  *
435  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
436  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
437  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
438  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
439  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
440  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
441  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
442  * WITH THE USE OR 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 2001/01/09 21:54:39 bwelling 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) 1998-2001  Internet Software Consortium.
459  *
460  * Permission to use, copy, modify, and distribute this software for any
461  * purpose with or without fee is hereby granted, provided that the above
462  * copyright notice and this permission notice appear in all copies.
463  *
464  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
465  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
466  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
467  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
468  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
469  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
470  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
471  * WITH THE USE OR 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 2001/01/09 21:54:03 bwelling 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) 1998-2001  Internet Software Consortium.
491  *
492  * Permission to use, copy, modify, and distribute this software for any
493  * purpose with or without fee is hereby granted, provided that the above
494  * copyright notice and this permission notice appear in all copies.
495  *
496  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
497  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
498  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
499  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
500  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
501  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
502  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
503  * WITH THE USE OR 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 2001/01/09 21:54:21 bwelling 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) 1998-2001  Internet Software Consortium.
521  *
522  * Permission to use, copy, modify, and distribute this software for any
523  * purpose with or without fee is hereby granted, provided that the above
524  * copyright notice and this permission notice appear in all copies.
525  *
526  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
527  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
528  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
529  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
530  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
531  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
532  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
533  * WITH THE USE OR 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 2001/01/09 21:54:25 bwelling 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) 1998-2001  Internet Software Consortium.
551  *
552  * Permission to use, copy, modify, and distribute this software for any
553  * purpose with or without fee is hereby granted, provided that the above
554  * copyright notice and this permission notice appear in all copies.
555  *
556  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
557  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
558  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
559  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
560  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
561  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
562  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
563  * WITH THE USE OR 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 2001/01/09 21:54:52 bwelling 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) 1999-2001  Internet Software Consortium.
602  *
603  * Permission to use, copy, modify, and distribute this software for any
604  * purpose with or without fee is hereby granted, provided that the above
605  * copyright notice and this permission notice appear in all copies.
606  *
607  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
608  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
609  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
610  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
611  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
612  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
613  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
614  * WITH THE USE OR 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 2001/01/09 21:54:41 bwelling 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) 1999-2001  Internet Software Consortium.
635  *
636  * Permission to use, copy, modify, and distribute this software for any
637  * purpose with or without fee is hereby granted, provided that the above
638  * copyright notice and this permission notice appear in all copies.
639  *
640  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
641  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
642  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
643  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
644  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
645  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
646  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
647  * WITH THE USE OR 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 2001/01/09 21:53:51 bwelling 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) 1999-2001  Internet Software Consortium.
668  *
669  * Permission to use, copy, modify, and distribute this software for any
670  * purpose with or without fee is hereby granted, provided that the above
671  * copyright notice and this permission notice appear in all copies.
672  *
673  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
674  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
675  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
676  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
677  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
678  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
679  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
680  * WITH THE USE OR 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 2001/01/09 21:54:57 bwelling 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) 1999-2001  Internet Software Consortium.
700  *
701  * Permission to use, copy, modify, and distribute this software for any
702  * purpose with or without fee is hereby granted, provided that the above
703  * copyright notice and this permission notice appear in all copies.
704  *
705  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
706  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
707  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
708  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
709  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
710  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
711  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
712  * WITH THE USE OR 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 2001/01/09 21:54:05 bwelling 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) 1999-2001  Internet Software Consortium.
734  *
735  * Permission to use, copy, modify, and distribute this software for any
736  * purpose with or without fee is hereby granted, provided that the above
737  * copyright notice and this permission notice appear in all copies.
738  *
739  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
740  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
741  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
742  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
743  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
744  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
745  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
746  * WITH THE USE OR 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 2001/01/09 21:54:43 bwelling 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) 1999-2001  Internet Software Consortium.
766  *
767  * Permission to use, copy, modify, and distribute this software for any
768  * purpose with or without fee is hereby granted, provided that the above
769  * copyright notice and this permission notice appear in all copies.
770  *
771  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
772  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
773  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
774  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
775  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
776  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
777  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
778  * WITH THE USE OR 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 2001/01/09 21:55:15 bwelling 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) 1999-2001  Internet Software Consortium.
798  *
799  * Permission to use, copy, modify, and distribute this software for any
800  * purpose with or without fee is hereby granted, provided that the above
801  * copyright notice and this permission notice appear in all copies.
802  *
803  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
804  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
805  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
806  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
807  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
808  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
809  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
810  * WITH THE USE OR 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 2001/01/09 21:55:13 bwelling 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) 1999-2001  Internet Software Consortium.
829  *
830  * Permission to use, copy, modify, and distribute this software for any
831  * purpose with or without fee is hereby granted, provided that the above
832  * copyright notice and this permission notice appear in all copies.
833  *
834  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
835  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
836  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
837  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
838  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
839  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
840  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
841  * WITH THE USE OR 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 2001/01/09 21:54:45 bwelling 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) 1999-2001  Internet Software Consortium.
870  *
871  * Permission to use, copy, modify, and distribute this software for any
872  * purpose with or without fee is hereby granted, provided that the above
873  * copyright notice and this permission notice appear in all copies.
874  *
875  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
876  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
877  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
878  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
879  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
880  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
881  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
882  * WITH THE USE OR 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 2001/01/09 21:54:07 bwelling 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) 1999-2001  Internet Software Consortium.
906  *
907  * Permission to use, copy, modify, and distribute this software for any
908  * purpose with or without fee is hereby granted, provided that the above
909  * copyright notice and this permission notice appear in all copies.
910  *
911  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
912  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
913  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
914  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
915  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
916  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
917  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
918  * WITH THE USE OR 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 2001/01/09 21:55:17 bwelling 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) 1999-2001  Internet Software Consortium.
939  *
940  * Permission to use, copy, modify, and distribute this software for any
941  * purpose with or without fee is hereby granted, provided that the above
942  * copyright notice and this permission notice appear in all copies.
943  *
944  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
945  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
946  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
947  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
948  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
949  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
950  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
951  * WITH THE USE OR 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 2001/01/09 21:54:00 bwelling 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) 1999-2001  Internet Software Consortium.
975  *
976  * Permission to use, copy, modify, and distribute this software for any
977  * purpose with or without fee is hereby granted, provided that the above
978  * copyright notice and this permission notice appear in all copies.
979  *
980  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
981  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
982  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
983  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
984  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
985  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
986  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
987  * WITH THE USE OR 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 2001/01/09 21:55:06 bwelling 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) 1999-2001  Internet Software Consortium.
1005  *
1006  * Permission to use, copy, modify, and distribute this software for any
1007  * purpose with or without fee is hereby granted, provided that the above
1008  * copyright notice and this permission notice appear in all copies.
1009  *
1010  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1011  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1012  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1013  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1014  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1015  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1016  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1017  * WITH THE USE OR 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 2001/01/09 21:54:09 bwelling 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) 1999-2001  Internet Software Consortium.
1047  *
1048  * Permission to use, copy, modify, and distribute this software for any
1049  * purpose with or without fee is hereby granted, provided that the above
1050  * copyright notice and this permission notice appear in all copies.
1051  *
1052  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1053  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1054  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1055  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1056  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1057  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1058  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1059  * WITH THE USE OR 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 2001/01/09 21:54:32 bwelling Exp $ */
1066
1067 /* RFC 2065 */
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) 1999-2001  Internet Software Consortium.
1080  *
1081  * Permission to use, copy, modify, and distribute this software for any
1082  * purpose with or without fee is hereby granted, provided that the above
1083  * copyright notice and this permission notice appear in all copies.
1084  *
1085  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1086  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1087  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1088  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1089  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1090  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1091  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1092  * WITH THE USE OR 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 2001/01/09 21:55:20 bwelling 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) 1999-2001  Internet Software Consortium.
1116  *
1117  * Permission to use, copy, modify, and distribute this software for any
1118  * purpose with or without fee is hereby granted, provided that the above
1119  * copyright notice and this permission notice appear in all copies.
1120  *
1121  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1122  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1123  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1124  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1125  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1126  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1127  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1128  * WITH THE USE OR 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 2001/01/18 22:05:41 bwelling 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) 1999-2001  Internet Software Consortium.
1155  *
1156  * Permission to use, copy, modify, and distribute this software for any
1157  * purpose with or without fee is hereby granted, provided that the above
1158  * copyright notice and this permission notice appear in all copies.
1159  *
1160  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1161  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1162  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1163  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1164  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1165  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1166  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1167  * WITH THE USE OR 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 2001/01/09 21:55:08 bwelling 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) 1999-2001  Internet Software Consortium.
1187  *
1188  * Permission to use, copy, modify, and distribute this software for any
1189  * purpose with or without fee is hereby granted, provided that the above
1190  * copyright notice and this permission notice appear in all copies.
1191  *
1192  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1193  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1194  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1195  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1196  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1197  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1198  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1199  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1200  */
1201
1202 /* $Id: cert_37.h,v 1.15 2001/01/09 21:53:53 bwelling 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) 1999-2001  Internet Software Consortium.
1221  *
1222  * Permission to use, copy, modify, and distribute this software for any
1223  * purpose with or without fee is hereby granted, provided that the above
1224  * copyright notice and this permission notice appear in all copies.
1225  *
1226  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1227  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1228  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1229  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1230  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1231  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1232  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1233  * WITH THE USE OR 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 2001/07/26 21:34:02 gson 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) 1999-2001  Internet Software Consortium.
1254  *
1255  * Permission to use, copy, modify, and distribute this software for any
1256  * purpose with or without fee is hereby granted, provided that the above
1257  * copyright notice and this permission notice appear in all copies.
1258  *
1259  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1260  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1261  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1262  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1263  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1264  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1265  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1266  * WITH THE USE OR 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 2001/04/27 21:02:01 gson 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) 1998-2001  Internet Software Consortium.
1285  *
1286  * Permission to use, copy, modify, and distribute this software for any
1287  * purpose with or without fee is hereby granted, provided that the above
1288  * copyright notice and this permission notice appear in all copies.
1289  *
1290  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1291  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1292  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1293  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1294  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1295  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1296  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1297  * WITH THE USE OR 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 2001/01/09 21:54:34 bwelling 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) 1999-2001  Internet Software Consortium.
1339  *
1340  * Permission to use, copy, modify, and distribute this software for any
1341  * purpose with or without fee is hereby granted, provided that the above
1342  * copyright notice and this permission notice appear in all copies.
1343  *
1344  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1345  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1346  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1347  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1348  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1349  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1350  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1351  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1352  */
1353
1354 #ifndef GENERIC_UNSPEC_103_H
1355 #define GENERIC_UNSPEC_103_H 1
1356
1357 /* $Id: unspec_103.h,v 1.12 2001/01/09 21:54:54 bwelling Exp $ */
1358
1359 typedef struct dns_rdata_unspec_t {
1360         dns_rdatacommon_t       common;
1361         isc_mem_t               *mctx;
1362         unsigned char           *data;
1363         isc_uint16_t            datalen;
1364 } dns_rdata_unspec_t;
1365
1366 #endif /* GENERIC_UNSPEC_103_H */
1367 /*
1368  * Copyright (C) 1999-2001  Internet Software Consortium.
1369  *
1370  * Permission to use, copy, modify, and distribute this software for any
1371  * purpose with or without fee is hereby granted, provided that the above
1372  * copyright notice and this permission notice appear in all copies.
1373  *
1374  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1375  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1376  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1377  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1378  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1379  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1380  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1381  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1382  */
1383
1384 #ifndef GENERIC_TKEY_249_H
1385 #define GENERIC_TKEY_249_H 1
1386
1387 /* $Id: tkey_249.h,v 1.18 2001/01/09 21:54:50 bwelling Exp $ */
1388
1389 /* draft-ietf-dnsind-tkey-00.txt */
1390
1391 typedef struct dns_rdata_key {
1392         dns_rdatacommon_t       common;
1393         isc_mem_t *             mctx;
1394         dns_name_t              algorithm;
1395         isc_uint32_t            inception;
1396         isc_uint32_t            expire;
1397         isc_uint16_t            mode;
1398         isc_uint16_t            error;
1399         isc_uint16_t            keylen;
1400         unsigned char *         key;
1401         isc_uint16_t            otherlen;
1402         unsigned char *         other;
1403 } dns_rdata_tkey_t;
1404
1405
1406 #endif /* GENERIC_TKEY_249_H */
1407 /*
1408  * Copyright (C) 1999-2001  Internet Software Consortium.
1409  *
1410  * Permission to use, copy, modify, and distribute this software for any
1411  * purpose with or without fee is hereby granted, provided that the above
1412  * copyright notice and this permission notice appear in all copies.
1413  *
1414  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1415  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1416  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1417  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1418  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1419  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1420  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1421  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1422  */
1423
1424 /* $Id: tsig_250.h,v 1.20 2001/01/09 21:53:49 bwelling Exp $ */
1425
1426 /* RFC 2845 */
1427
1428 #ifndef ANY_255_TSIG_250_H
1429 #define ANY_255_TSIG_250_H 1
1430
1431 typedef struct dns_rdata_any_tsig {
1432         dns_rdatacommon_t       common;
1433         isc_mem_t *             mctx;
1434         dns_name_t              algorithm;
1435         isc_uint64_t            timesigned;
1436         isc_uint16_t            fudge;
1437         isc_uint16_t            siglen;
1438         unsigned char *         signature;
1439         isc_uint16_t            originalid;
1440         isc_uint16_t            error;
1441         isc_uint16_t            otherlen;
1442         unsigned char *         other;
1443 } dns_rdata_any_tsig_t;
1444
1445 #endif /* ANY_255_TSIG_250_H */
1446 /*
1447  * Copyright (C) 1999-2001  Internet Software Consortium.
1448  *
1449  * Permission to use, copy, modify, and distribute this software for any
1450  * purpose with or without fee is hereby granted, provided that the above
1451  * copyright notice and this permission notice appear in all copies.
1452  *
1453  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
1454  * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
1455  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
1456  * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
1457  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
1458  * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1459  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1460  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1461  */
1462
1463 /* $Id: rdatastructsuf.h,v 1.7 2001/01/09 21:53:46 bwelling Exp $ */
1464
1465 ISC_LANG_ENDDECLS
1466
1467 #endif /* DNS_RDATASTRUCT_H */