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