mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Style updates.
cvs: ----------------------------------------------------------------------
This commit is contained in:
parent
b420577e13
commit
0e8cf9a887
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.34 1999/02/16 02:54:17 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.35 1999/02/16 22:42:23 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@ -27,11 +27,11 @@
|
||||
#include <isc/lex.h>
|
||||
#include <isc/assertions.h>
|
||||
#include <isc/error.h>
|
||||
#include <isc/region.h>
|
||||
|
||||
#include <dns/types.h>
|
||||
#include <dns/result.h>
|
||||
#include <dns/rdata.h>
|
||||
#include <dns/region.h>
|
||||
#include <dns/rdataclass.h>
|
||||
#include <dns/rdatatype.h>
|
||||
#include <dns/rcode.h>
|
||||
@ -159,7 +159,7 @@ static const char octdigits[] = "01234567";
|
||||
{ 0, NULL, 0}
|
||||
|
||||
|
||||
struct tbl {
|
||||
static struct tbl {
|
||||
unsigned int value;
|
||||
char *name;
|
||||
int flags;
|
||||
@ -224,9 +224,9 @@ dns_rdata_compare(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
***/
|
||||
|
||||
void
|
||||
dns_rdata_fromregion(dns_rdata_t *rdata,
|
||||
dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_region_t *r) {
|
||||
dns_rdata_fromregion(dns_rdata_t *rdata, dns_rdataclass_t class,
|
||||
dns_rdatatype_t type, isc_region_t *r)
|
||||
{
|
||||
|
||||
REQUIRE(rdata != NULL);
|
||||
REQUIRE(r != NULL);
|
||||
@ -248,12 +248,11 @@ dns_rdata_toregion(dns_rdata_t *rdata, isc_region_t *r) {
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_rdata_fromwire(dns_rdata_t *rdata,
|
||||
dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source,
|
||||
dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase,
|
||||
isc_buffer_t *target) {
|
||||
dns_rdata_fromwire(dns_rdata_t *rdata, dns_rdataclass_t class,
|
||||
dns_rdatatype_t type, isc_buffer_t *source,
|
||||
dns_decompress_t *dctx, isc_boolean_t downcase,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
dns_result_t result = DNS_R_NOTIMPLEMENTED;
|
||||
isc_region_t region;
|
||||
isc_buffer_t ss;
|
||||
@ -266,6 +265,7 @@ dns_rdata_fromwire(dns_rdata_t *rdata,
|
||||
|
||||
ss = *source;
|
||||
st = *target;
|
||||
/* XXX */
|
||||
region.base = (unsigned char *)(target->base) + target->used;
|
||||
|
||||
FROMWIRESWITCH
|
||||
@ -291,7 +291,8 @@ dns_rdata_fromwire(dns_rdata_t *rdata,
|
||||
|
||||
dns_result_t
|
||||
dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
dns_result_t result = DNS_R_NOTIMPLEMENTED;
|
||||
isc_boolean_t use_default = ISC_FALSE;
|
||||
isc_region_t tr;
|
||||
@ -313,12 +314,11 @@ dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx,
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_rdata_fromtext(dns_rdata_t *rdata,
|
||||
dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase,
|
||||
isc_buffer_t *target,
|
||||
dns_rdatacallbacks_t *callbacks) {
|
||||
dns_rdata_fromtext(dns_rdata_t *rdata, dns_rdataclass_t class,
|
||||
dns_rdatatype_t type, isc_lex_t *lexer,
|
||||
dns_name_t *origin, isc_boolean_t downcase,
|
||||
isc_buffer_t *target, dns_rdatacallbacks_t *callbacks)
|
||||
{
|
||||
dns_result_t result = DNS_R_NOTIMPLEMENTED;
|
||||
isc_region_t region;
|
||||
isc_buffer_t st;
|
||||
@ -428,10 +428,10 @@ dns_rdata_totext(dns_rdata_t *rdata, dns_name_t *origin,
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_rdata_fromstruct(dns_rdata_t *rdata,
|
||||
dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
void *source,
|
||||
isc_buffer_t *target) {
|
||||
dns_rdata_fromstruct(dns_rdata_t *rdata, dns_rdataclass_t class,
|
||||
dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
dns_result_t result = DNS_R_NOTIMPLEMENTED;
|
||||
isc_buffer_t st;
|
||||
isc_region_t region;
|
||||
@ -659,7 +659,7 @@ txt_totext(isc_region_t *source, isc_buffer_t *target) {
|
||||
|
||||
n = *sp++;
|
||||
|
||||
INSIST(n + 1 <= source->length);
|
||||
REQUIRE(n + 1 <= source->length);
|
||||
|
||||
if (tl < 1)
|
||||
return (DNS_R_NOSPACE);
|
||||
@ -835,7 +835,8 @@ uint16_fromregion(isc_region_t *region) {
|
||||
|
||||
static dns_result_t
|
||||
gettoken(isc_lex_t *lexer, isc_token_t *token, isc_tokentype_t expect,
|
||||
isc_boolean_t eol) {
|
||||
isc_boolean_t eol)
|
||||
{
|
||||
unsigned int options = ISC_LEXOPT_EOL | ISC_LEXOPT_EOF |
|
||||
ISC_LEXOPT_DNSMULTILINE;
|
||||
isc_result_t result;
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tsig_250.c,v 1.4 1999/02/15 05:44:15 marka Exp $ */
|
||||
/* $Id: tsig_250.c,v 1.5 1999/02/16 22:42:23 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-tsig-07.txt */
|
||||
|
||||
@ -273,7 +273,8 @@ compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_any_tsig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
void *source, isc_buffer_t *target) {
|
||||
void *source, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 250);
|
||||
REQUIRE(class == 255);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tsig_250.h,v 1.4 1999/02/15 05:44:15 marka Exp $ */
|
||||
/* $Id: tsig_250.h,v 1.5 1999/02/16 22:42:23 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-tsig-07.txt */
|
||||
|
||||
@ -273,7 +273,8 @@ compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_any_tsig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
void *source, isc_buffer_t *target) {
|
||||
void *source, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 250);
|
||||
REQUIRE(class == 255);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: afsdb_18.c,v 1.2 1999/02/15 05:44:15 marka Exp $ */
|
||||
/* $Id: afsdb_18.c,v 1.3 1999/02/16 22:42:23 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_afsdb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
isc_buffer_t buffer;
|
||||
dns_name_t name;
|
||||
@ -52,21 +53,21 @@ totext_afsdb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
dns_name_t name;
|
||||
dns_name_t prefix;
|
||||
isc_region_t region;
|
||||
char buf[sizeof "64000"];
|
||||
char buf[sizeof "64000 "];
|
||||
isc_boolean_t sub;
|
||||
unsigned int num;
|
||||
|
||||
|
||||
REQUIRE(rdata->type == 18);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
dns_name_init(&prefix, NULL);
|
||||
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
num = uint16_fromregion(®ion);
|
||||
isc_region_consume(®ion, 2);
|
||||
sprintf(buf, "%u", num);
|
||||
sprintf(buf, "%u ", num);
|
||||
RETERR(str_totext(buf, target));
|
||||
RETERR(str_totext(" ", target));
|
||||
dns_name_fromregion(&name, ®ion);
|
||||
sub = name_prefix(&name, origin, &prefix);
|
||||
return(dns_name_totext(&prefix, sub, target));
|
||||
@ -75,7 +76,8 @@ totext_afsdb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_afsdb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sr;
|
||||
isc_region_t tr;
|
||||
@ -153,7 +155,8 @@ compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_afsdb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 18);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: afsdb_18.h,v 1.2 1999/02/15 05:44:15 marka Exp $ */
|
||||
/* $Id: afsdb_18.h,v 1.3 1999/02/16 22:42:23 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_afsdb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
isc_buffer_t buffer;
|
||||
dns_name_t name;
|
||||
@ -52,21 +53,21 @@ totext_afsdb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
dns_name_t name;
|
||||
dns_name_t prefix;
|
||||
isc_region_t region;
|
||||
char buf[sizeof "64000"];
|
||||
char buf[sizeof "64000 "];
|
||||
isc_boolean_t sub;
|
||||
unsigned int num;
|
||||
|
||||
|
||||
REQUIRE(rdata->type == 18);
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
dns_name_init(&prefix, NULL);
|
||||
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
num = uint16_fromregion(®ion);
|
||||
isc_region_consume(®ion, 2);
|
||||
sprintf(buf, "%u", num);
|
||||
sprintf(buf, "%u ", num);
|
||||
RETERR(str_totext(buf, target));
|
||||
RETERR(str_totext(" ", target));
|
||||
dns_name_fromregion(&name, ®ion);
|
||||
sub = name_prefix(&name, origin, &prefix);
|
||||
return(dns_name_totext(&prefix, sub, target));
|
||||
@ -75,7 +76,8 @@ totext_afsdb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_afsdb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sr;
|
||||
isc_region_t tr;
|
||||
@ -153,7 +155,8 @@ compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_afsdb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 18);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cert_37.c,v 1.4 1999/02/05 00:05:46 marka Exp $ */
|
||||
/* $Id: cert_37.c,v 1.5 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-certs-04.txt */
|
||||
|
||||
@ -61,7 +61,8 @@ fromtext_cert(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||
n = strtol(token.value.as_pointer, &e, 10);
|
||||
if (*e != 0) {
|
||||
RETERR(dns_secalg_fromtext(&secalg, &token.value.as_textregion));
|
||||
RETERR(dns_secalg_fromtext(&secalg,
|
||||
&token.value.as_textregion));
|
||||
} else {
|
||||
if (n < 0 || n > 0xff)
|
||||
return (DNS_R_RANGE);
|
||||
@ -75,7 +76,7 @@ fromtext_cert(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
static dns_result_t
|
||||
totext_cert(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
isc_region_t sr;
|
||||
char buf[sizeof "64000"];
|
||||
char buf[sizeof "64000 "];
|
||||
unsigned int n;
|
||||
|
||||
REQUIRE(rdata->type == 37);
|
||||
@ -93,9 +94,8 @@ totext_cert(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
/* key tag */
|
||||
n = uint16_fromregion(&sr);
|
||||
isc_region_consume(&sr, 2);
|
||||
sprintf(buf, "%u", n);
|
||||
sprintf(buf, "%u ", n);
|
||||
RETERR(str_totext(buf, target));
|
||||
RETERR(str_totext(" ", target));
|
||||
|
||||
/* algorithm */
|
||||
RETERR(dns_secalg_totext(sr.base[0], target));
|
||||
@ -155,7 +155,8 @@ compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_cert(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 37);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cert_37.h,v 1.4 1999/02/05 00:05:46 marka Exp $ */
|
||||
/* $Id: cert_37.h,v 1.5 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-certs-04.txt */
|
||||
|
||||
@ -61,7 +61,8 @@ fromtext_cert(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||
n = strtol(token.value.as_pointer, &e, 10);
|
||||
if (*e != 0) {
|
||||
RETERR(dns_secalg_fromtext(&secalg, &token.value.as_textregion));
|
||||
RETERR(dns_secalg_fromtext(&secalg,
|
||||
&token.value.as_textregion));
|
||||
} else {
|
||||
if (n < 0 || n > 0xff)
|
||||
return (DNS_R_RANGE);
|
||||
@ -75,7 +76,7 @@ fromtext_cert(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
static dns_result_t
|
||||
totext_cert(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
isc_region_t sr;
|
||||
char buf[sizeof "64000"];
|
||||
char buf[sizeof "64000 "];
|
||||
unsigned int n;
|
||||
|
||||
REQUIRE(rdata->type == 37);
|
||||
@ -93,9 +94,8 @@ totext_cert(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
/* key tag */
|
||||
n = uint16_fromregion(&sr);
|
||||
isc_region_consume(&sr, 2);
|
||||
sprintf(buf, "%u", n);
|
||||
sprintf(buf, "%u ", n);
|
||||
RETERR(str_totext(buf, target));
|
||||
RETERR(str_totext(" ", target));
|
||||
|
||||
/* algorithm */
|
||||
RETERR(dns_secalg_totext(sr.base[0], target));
|
||||
@ -155,7 +155,8 @@ compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_cert(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 37);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cname_5.c,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: cname_5.c,v 1.8 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_CNAME_5_H
|
||||
#define RDATA_GENERIC_CNAME_5_H
|
||||
@ -23,12 +23,14 @@
|
||||
static dns_result_t
|
||||
fromtext_cname(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
class = class; /*unused*/
|
||||
|
||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||
@ -63,10 +65,12 @@ totext_cname(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_cname(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
class = class; /*unused*/
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
@ -112,7 +116,8 @@ compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_cname(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cname_5.h,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: cname_5.h,v 1.8 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_CNAME_5_H
|
||||
#define RDATA_GENERIC_CNAME_5_H
|
||||
@ -23,12 +23,14 @@
|
||||
static dns_result_t
|
||||
fromtext_cname(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
class = class; /*unused*/
|
||||
|
||||
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
|
||||
@ -63,10 +65,12 @@ totext_cname(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_cname(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
class = class; /*unused*/
|
||||
|
||||
dns_name_init(&name, NULL);
|
||||
@ -112,7 +116,8 @@ compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_cname(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 5);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gpos_27.c,v 1.1 1999/02/01 00:15:55 marka Exp $ */
|
||||
/* $Id: gpos_27.c,v 1.2 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
/* RFC 1712 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_gpos(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
int i;
|
||||
|
||||
@ -66,7 +67,8 @@ totext_gpos(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_gpos(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
int i;
|
||||
|
||||
REQUIRE(type == 27);
|
||||
@ -106,7 +108,8 @@ compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_gpos(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 27);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gpos_27.h,v 1.1 1999/02/01 00:15:55 marka Exp $ */
|
||||
/* $Id: gpos_27.h,v 1.2 1999/02/16 22:42:24 marka Exp $ */
|
||||
|
||||
/* RFC 1712 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_gpos(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
int i;
|
||||
|
||||
@ -66,7 +67,8 @@ totext_gpos(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_gpos(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
int i;
|
||||
|
||||
REQUIRE(type == 27);
|
||||
@ -106,7 +108,8 @@ compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_gpos(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 27);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hinfo_13.c,v 1.8 1999/01/22 05:02:44 marka Exp $ */
|
||||
/* $Id: hinfo_13.c,v 1.9 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_HINFO_13_H
|
||||
#define RDATA_GENERIC_HINFO_13_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_hinfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
int i;
|
||||
|
||||
@ -58,7 +59,8 @@ totext_hinfo(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_hinfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 13);
|
||||
|
||||
@ -96,7 +98,8 @@ compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_hinfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 13);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hinfo_13.h,v 1.8 1999/01/22 05:02:44 marka Exp $ */
|
||||
/* $Id: hinfo_13.h,v 1.9 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_HINFO_13_H
|
||||
#define RDATA_GENERIC_HINFO_13_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_hinfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
int i;
|
||||
|
||||
@ -58,7 +59,8 @@ totext_hinfo(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_hinfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 13);
|
||||
|
||||
@ -96,7 +98,8 @@ compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_hinfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 13);
|
||||
|
||||
|
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_isdn(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
|
||||
REQUIRE(type == 20);
|
||||
@ -66,7 +67,8 @@ totext_isdn(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_isdn(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 20);
|
||||
|
||||
@ -106,7 +108,8 @@ compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_isdn(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 20);
|
||||
|
||||
|
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_isdn(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
|
||||
REQUIRE(type == 20);
|
||||
@ -66,7 +67,8 @@ totext_isdn(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_isdn(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 20);
|
||||
|
||||
@ -106,7 +108,8 @@ compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_isdn(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 20);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: key_25.c,v 1.2 1999/02/04 00:03:29 marka Exp $ */
|
||||
/* $Id: key_25.c,v 1.3 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_key(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char c;
|
||||
unsigned int flags;
|
||||
@ -103,7 +104,8 @@ totext_key(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_key(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
|
||||
REQUIRE(type == 25);
|
||||
@ -148,7 +150,8 @@ compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_key(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 25);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: key_25.h,v 1.2 1999/02/04 00:03:29 marka Exp $ */
|
||||
/* $Id: key_25.h,v 1.3 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_key(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char c;
|
||||
unsigned int flags;
|
||||
@ -103,7 +104,8 @@ totext_key(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_key(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
|
||||
REQUIRE(type == 25);
|
||||
@ -148,7 +150,8 @@ compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_key(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 25);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mb_7.c,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: mb_7.c,v 1.8 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MB_7_H
|
||||
#define RDATA_GENERIC_MB_7_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 7);
|
||||
@ -114,7 +116,8 @@ compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 7);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mb_7.h,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: mb_7.h,v 1.8 1999/02/16 22:42:25 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MB_7_H
|
||||
#define RDATA_GENERIC_MB_7_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mb(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mb(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 7);
|
||||
@ -114,7 +116,8 @@ compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 7);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: md_3.c,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: md_3.c,v 1.8 1999/02/16 22:42:26 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MD_3_H
|
||||
#define RDATA_GENERIC_MD_3_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_md(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -62,7 +63,8 @@ totext_md(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_md(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 3);
|
||||
@ -112,7 +114,8 @@ compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_md(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 3);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: md_3.h,v 1.7 1999/02/15 05:44:16 marka Exp $ */
|
||||
/* $Id: md_3.h,v 1.8 1999/02/16 22:42:26 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MD_3_H
|
||||
#define RDATA_GENERIC_MD_3_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_md(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -62,7 +63,8 @@ totext_md(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_md(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 3);
|
||||
@ -112,7 +114,8 @@ compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_md(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 3);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mf_4.c,v 1.7 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: mf_4.c,v 1.8 1999/02/16 22:42:26 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MF_4_H
|
||||
#define RDATA_GENERIC_MF_4_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mf(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -62,7 +63,8 @@ totext_mf(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mf(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 4);
|
||||
@ -112,7 +114,8 @@ compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mf(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 4);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mf_4.h,v 1.7 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: mf_4.h,v 1.8 1999/02/16 22:42:26 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MF_4_H
|
||||
#define RDATA_GENERIC_MF_4_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mf(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -62,7 +63,8 @@ totext_mf(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mf(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 4);
|
||||
@ -112,7 +114,8 @@ compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mf(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 4);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mg_8.c,v 1.7 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: mg_8.c,v 1.8 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MG_8_H
|
||||
#define RDATA_GENERIC_MG_8_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mg(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mg(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mg(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 8);
|
||||
@ -114,7 +116,8 @@ compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mg(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 8);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mg_8.h,v 1.7 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: mg_8.h,v 1.8 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MG_8_H
|
||||
#define RDATA_GENERIC_MG_8_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mg(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mg(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mg(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 8);
|
||||
@ -114,7 +116,8 @@ compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mg(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 8);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: minfo_14.c,v 1.8 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: minfo_14.c,v 1.9 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MINFO_14_H
|
||||
#define RDATA_GENERIC_MINFO_14_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_minfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -81,7 +82,8 @@ totext_minfo(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_minfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t rmail;
|
||||
dns_name_t email;
|
||||
|
||||
@ -160,7 +162,8 @@ compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_minfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 14);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: minfo_14.h,v 1.8 1999/02/15 05:44:17 marka Exp $ */
|
||||
/* $Id: minfo_14.h,v 1.9 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MINFO_14_H
|
||||
#define RDATA_GENERIC_MINFO_14_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_minfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -81,7 +82,8 @@ totext_minfo(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_minfo(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t rmail;
|
||||
dns_name_t email;
|
||||
|
||||
@ -160,7 +162,8 @@ compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_minfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 14);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mr_9.c,v 1.7 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: mr_9.c,v 1.8 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MR_9_H
|
||||
#define RDATA_GENERIC_MR_9_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mr(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 9);
|
||||
@ -114,7 +116,8 @@ compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 9);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mr_9.h,v 1.7 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: mr_9.h,v 1.8 1999/02/16 22:42:27 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MR_9_H
|
||||
#define RDATA_GENERIC_MR_9_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_mr(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 9);
|
||||
@ -114,7 +116,8 @@ compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 9);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mx_15.c,v 1.10 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: mx_15.c,v 1.11 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MX_15_H
|
||||
#define RDATA_GENERIC_MX_15_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -73,7 +74,8 @@ totext_mx(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@ -150,7 +152,8 @@ compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 15);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mx_15.h,v 1.10 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: mx_15.h,v 1.11 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MX_15_H
|
||||
#define RDATA_GENERIC_MX_15_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_mx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -73,7 +74,8 @@ totext_mx(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_mx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@ -150,7 +152,8 @@ compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_mx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 15);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.c,v 1.7 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: ns_2.c,v 1.8 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NS_2_H
|
||||
#define RDATA_GENERIC_NS_2_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_ns(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_ns(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_ns(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 2);
|
||||
@ -114,7 +116,8 @@ compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_ns(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 2);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 1998-1999 Internet Software Consortium.
|
||||
* Copyright (C) 1998, 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.h,v 1.7 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: ns_2.h,v 1.8 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NS_2_H
|
||||
#define RDATA_GENERIC_NS_2_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_ns(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_ns(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_ns(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 2);
|
||||
@ -114,7 +116,8 @@ compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_ns(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 2);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: null_10.c,v 1.5 1999/01/22 05:02:47 marka Exp $ */
|
||||
/* $Id: null_10.c,v 1.6 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NULL_10_H
|
||||
#define RDATA_GENERIC_NULL_10_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_null(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
@ -53,7 +54,8 @@ totext_null(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_null(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
@ -89,7 +91,8 @@ compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_null(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: null_10.h,v 1.5 1999/01/22 05:02:47 marka Exp $ */
|
||||
/* $Id: null_10.h,v 1.6 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NULL_10_H
|
||||
#define RDATA_GENERIC_NULL_10_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_null(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
@ -53,7 +54,8 @@ totext_null(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_null(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
@ -89,7 +91,8 @@ compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_null(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 10);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.c,v 1.4 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: nxt_30.c,v 1.5 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_nxt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -118,7 +119,8 @@ totext_nxt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_nxt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
dns_name_t name;
|
||||
|
||||
@ -180,7 +182,8 @@ compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_nxt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 30);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.h,v 1.4 1999/02/15 05:44:18 marka Exp $ */
|
||||
/* $Id: nxt_30.h,v 1.5 1999/02/16 22:42:28 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_nxt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -118,7 +119,8 @@ totext_nxt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_nxt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
dns_name_t name;
|
||||
|
||||
@ -180,7 +182,8 @@ compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_nxt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 30);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ptr_12.c,v 1.7 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: ptr_12.c,v 1.8 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_PTR_12_H
|
||||
#define RDATA_GENERIC_PTR_12_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_ptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_ptr(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_ptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 12);
|
||||
@ -114,7 +116,8 @@ compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_ptr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 12);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ptr_12.h,v 1.7 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: ptr_12.h,v 1.8 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_PTR_12_H
|
||||
#define RDATA_GENERIC_PTR_12_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_ptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -64,7 +65,8 @@ totext_ptr(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_ptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
|
||||
REQUIRE(type == 12);
|
||||
@ -114,7 +116,8 @@ compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_ptr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 12);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rp_17.c,v 1.2 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: rp_17.c,v 1.3 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_rp(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -83,7 +84,8 @@ totext_rp(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_rp(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t rmail;
|
||||
dns_name_t email;
|
||||
|
||||
@ -162,7 +164,8 @@ compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_rp(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 17);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rp_17.h,v 1.2 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: rp_17.h,v 1.3 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_rp(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -83,7 +84,8 @@ totext_rp(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_rp(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t rmail;
|
||||
dns_name_t email;
|
||||
|
||||
@ -162,7 +164,8 @@ compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_rp(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 17);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rt_21.c,v 1.2 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: rt_21.c,v 1.3 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_rt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -75,7 +76,8 @@ totext_rt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_rt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@ -152,7 +154,8 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_rt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 21);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rt_21.h,v 1.2 1999/02/15 05:44:19 marka Exp $ */
|
||||
/* $Id: rt_21.h,v 1.3 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_rt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -75,7 +76,8 @@ totext_rt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_rt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
@ -152,7 +154,8 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_rt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 21);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sig_24.c,v 1.6 1999/02/15 05:44:20 marka Exp $ */
|
||||
/* $Id: sig_24.c,v 1.7 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_sig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char c;
|
||||
dns_rdatatype_t covered;
|
||||
@ -173,7 +174,8 @@ totext_sig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_sig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
dns_name_t name;
|
||||
|
||||
@ -279,7 +281,8 @@ compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_sig(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 24);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sig_24.h,v 1.6 1999/02/15 05:44:20 marka Exp $ */
|
||||
/* $Id: sig_24.h,v 1.7 1999/02/16 22:42:29 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_sig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char c;
|
||||
dns_rdatatype_t covered;
|
||||
@ -173,7 +174,8 @@ totext_sig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_sig(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
dns_name_t name;
|
||||
|
||||
@ -279,7 +281,8 @@ compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_sig(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 24);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.c,v 1.10 1999/02/15 05:44:20 marka Exp $ */
|
||||
/* $Id: soa_6.c,v 1.11 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_H
|
||||
#define RDATA_GENERIC_SOA_6_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_soa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -101,7 +102,8 @@ totext_soa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_soa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t mname;
|
||||
dns_name_t rname;
|
||||
isc_region_t sregion;
|
||||
@ -207,7 +209,8 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_soa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 6);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.h,v 1.10 1999/02/15 05:44:20 marka Exp $ */
|
||||
/* $Id: soa_6.h,v 1.11 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_H
|
||||
#define RDATA_GENERIC_SOA_6_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_soa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -101,7 +102,8 @@ totext_soa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_soa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t mname;
|
||||
dns_name_t rname;
|
||||
isc_region_t sregion;
|
||||
@ -207,7 +209,8 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_soa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 6);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: txt_16.c,v 1.8 1999/01/22 05:02:48 marka Exp $ */
|
||||
/* $Id: txt_16.c,v 1.9 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_TXT_16_H
|
||||
#define RDATA_GENERIC_TXT_16_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_txt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
|
||||
REQUIRE(type == 16);
|
||||
@ -67,7 +68,8 @@ totext_txt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_txt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_result_t result;
|
||||
|
||||
REQUIRE(type == 16);
|
||||
@ -117,7 +119,8 @@ compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_txt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 16);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: txt_16.h,v 1.8 1999/01/22 05:02:48 marka Exp $ */
|
||||
/* $Id: txt_16.h,v 1.9 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_TXT_16_H
|
||||
#define RDATA_GENERIC_TXT_16_H
|
||||
@ -23,7 +23,8 @@
|
||||
static dns_result_t
|
||||
fromtext_txt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
|
||||
REQUIRE(type == 16);
|
||||
@ -67,7 +68,8 @@ totext_txt(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_txt(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_result_t result;
|
||||
|
||||
REQUIRE(type == 16);
|
||||
@ -117,7 +119,8 @@ compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_txt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 16);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: unspec_103.c,v 1.1 1999/02/03 06:00:51 marka Exp $ */
|
||||
/* $Id: unspec_103.c,v 1.2 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_UNSPEC_103_H
|
||||
#define RDATA_GENERIC_UNSPEC_103_H
|
||||
@ -89,7 +89,8 @@ compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_unspec(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 103);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: unspec_103.h,v 1.1 1999/02/03 06:00:51 marka Exp $ */
|
||||
/* $Id: unspec_103.h,v 1.2 1999/02/16 22:42:30 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_UNSPEC_103_H
|
||||
#define RDATA_GENERIC_UNSPEC_103_H
|
||||
@ -89,7 +89,8 @@ compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_unspec(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 103);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: x25_19.c,v 1.1 1999/01/22 05:02:49 marka Exp $ */
|
||||
/* $Id: x25_19.c,v 1.2 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -27,7 +27,8 @@
|
||||
static dns_result_t
|
||||
fromtext_x25(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned int i;
|
||||
|
||||
@ -60,7 +61,8 @@ totext_x25(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_x25(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 19);
|
||||
|
||||
@ -103,7 +105,8 @@ compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_x25(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 19);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: x25_19.h,v 1.1 1999/01/22 05:02:49 marka Exp $ */
|
||||
/* $Id: x25_19.h,v 1.2 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
@ -27,7 +27,8 @@
|
||||
static dns_result_t
|
||||
fromtext_x25(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned int i;
|
||||
|
||||
@ -60,7 +61,8 @@ totext_x25(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_x25(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 19);
|
||||
|
||||
@ -103,7 +105,8 @@ compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_x25(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 19);
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a6_38.c,v 1.4 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: a6_38.c,v 1.5 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||
|
||||
@ -138,7 +138,8 @@ totext_in_a6(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_a6(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
unsigned char prefixlen;
|
||||
unsigned char octets;
|
||||
@ -239,7 +240,8 @@ compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_a6(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a6_38.h,v 1.4 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: a6_38.h,v 1.5 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||
|
||||
@ -138,7 +138,8 @@ totext_in_a6(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_a6(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
unsigned char prefixlen;
|
||||
unsigned char octets;
|
||||
@ -239,7 +240,8 @@ compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_a6(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.c,v 1.11 1999/02/09 07:58:57 marka Exp $ */
|
||||
/* $Id: a_1.c,v 1.12 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_A_1_H
|
||||
#define RDATA_IN_1_A_1_H
|
||||
@ -33,7 +33,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
struct in_addr addr;
|
||||
isc_region_t region;
|
||||
@ -78,7 +79,8 @@ totext_in_a(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
|
||||
@ -137,7 +139,8 @@ compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_a(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.h,v 1.11 1999/02/09 07:58:57 marka Exp $ */
|
||||
/* $Id: a_1.h,v 1.12 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_A_1_H
|
||||
#define RDATA_IN_1_A_1_H
|
||||
@ -33,7 +33,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
struct in_addr addr;
|
||||
isc_region_t region;
|
||||
@ -78,7 +79,8 @@ totext_in_a(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_a(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
|
||||
@ -137,7 +139,8 @@ compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_a(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.c,v 1.5 1999/02/09 07:52:31 marka Exp $ */
|
||||
/* $Id: aaaa_28.c,v 1.6 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* RFC 1886 */
|
||||
|
||||
@ -35,7 +35,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char addr[16];
|
||||
isc_region_t region;
|
||||
@ -80,7 +81,8 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
|
||||
@ -139,7 +141,8 @@ compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.h,v 1.5 1999/02/09 07:52:31 marka Exp $ */
|
||||
/* $Id: aaaa_28.h,v 1.6 1999/02/16 22:42:31 marka Exp $ */
|
||||
|
||||
/* RFC 1886 */
|
||||
|
||||
@ -35,7 +35,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
unsigned char addr[16];
|
||||
isc_region_t region;
|
||||
@ -80,7 +81,8 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sregion;
|
||||
isc_region_t tregion;
|
||||
|
||||
@ -139,7 +141,8 @@ compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 1);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: kx_36.c,v 1.2 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: kx_36.c,v 1.3 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 2230 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_kx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -74,7 +75,8 @@ totext_in_kx(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_kx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
|
||||
@ -143,7 +145,8 @@ compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_kx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 36);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: kx_36.h,v 1.2 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: kx_36.h,v 1.3 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 2230 */
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_kx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
dns_name_t name;
|
||||
isc_buffer_t buffer;
|
||||
@ -74,7 +75,8 @@ totext_in_kx(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_kx(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
dns_name_t name;
|
||||
isc_region_t sregion;
|
||||
|
||||
@ -143,7 +145,8 @@ compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_kx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 36);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: naptr_35.c,v 1.2 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: naptr_35.c,v 1.3 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 2168 */
|
||||
|
||||
@ -230,8 +230,8 @@ compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_naptr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target)
|
||||
fromstruct_in_naptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
void *source, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 35);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: naptr_35.h,v 1.2 1999/02/15 05:44:21 marka Exp $ */
|
||||
/* $Id: naptr_35.h,v 1.3 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 2168 */
|
||||
|
||||
@ -230,8 +230,8 @@ compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_naptr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target)
|
||||
fromstruct_in_naptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
void *source, isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 35);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.c,v 1.1 1999/01/27 13:38:21 marka Exp $ */
|
||||
/* $Id: nsap_22.c,v 1.2 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 1706 */
|
||||
|
||||
@ -95,7 +95,8 @@ totext_in_nsap(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_nsap(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t region;
|
||||
|
||||
REQUIRE(type == 22);
|
||||
@ -140,7 +141,8 @@ compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_nsap(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 22);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.h,v 1.1 1999/01/27 13:38:21 marka Exp $ */
|
||||
/* $Id: nsap_22.h,v 1.2 1999/02/16 22:42:32 marka Exp $ */
|
||||
|
||||
/* RFC 1706 */
|
||||
|
||||
@ -95,7 +95,8 @@ totext_in_nsap(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_nsap(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t region;
|
||||
|
||||
REQUIRE(type == 22);
|
||||
@ -140,7 +141,8 @@ compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_nsap(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
REQUIRE(type == 22);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: wks_11.c,v 1.7 1999/02/02 13:31:46 marka Exp $ */
|
||||
/* $Id: wks_11.c,v 1.8 1999/02/16 22:42:33 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_WKS_11_H
|
||||
#define RDATA_IN_1_WKS_11_H
|
||||
@ -35,7 +35,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_wks(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
isc_region_t region;
|
||||
struct in_addr addr;
|
||||
@ -154,7 +155,8 @@ totext_in_wks(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_wks(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
isc_region_t tr;
|
||||
|
||||
@ -210,7 +212,9 @@ compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_wks(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
|
||||
REQUIRE(type == 11);
|
||||
REQUIRE(class == 1);
|
||||
|
@ -15,7 +15,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: wks_11.h,v 1.7 1999/02/02 13:31:46 marka Exp $ */
|
||||
/* $Id: wks_11.h,v 1.8 1999/02/16 22:42:33 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_WKS_11_H
|
||||
#define RDATA_IN_1_WKS_11_H
|
||||
@ -35,7 +35,8 @@
|
||||
static dns_result_t
|
||||
fromtext_in_wks(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_lex_t *lexer, dns_name_t *origin,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_token_t token;
|
||||
isc_region_t region;
|
||||
struct in_addr addr;
|
||||
@ -154,7 +155,8 @@ totext_in_wks(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
|
||||
static dns_result_t
|
||||
fromwire_in_wks(dns_rdataclass_t class, dns_rdatatype_t type,
|
||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||
isc_boolean_t downcase, isc_buffer_t *target)
|
||||
{
|
||||
isc_region_t sr;
|
||||
isc_region_t tr;
|
||||
|
||||
@ -210,7 +212,9 @@ compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||
|
||||
static dns_result_t
|
||||
fromstruct_in_wks(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
||||
isc_buffer_t *target) {
|
||||
isc_buffer_t *target)
|
||||
{
|
||||
|
||||
|
||||
REQUIRE(type == 11);
|
||||
REQUIRE(class == 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user