mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
dns_rdata_tostruct() may require memory to be allocted and hence
it will need to be freed, dns_rdata_freestruct(). Changes to implement this. Added C++ support to rdatastruct.h
This commit is contained in:
parent
189e18de11
commit
94a3bcd132
84 changed files with 568 additions and 284 deletions
|
|
@ -80,8 +80,9 @@ include/dns/enumtype.h: gen
|
|||
include/dns/enumclass.h: gen
|
||||
./gen -s ${srcdir} -c > $@
|
||||
|
||||
include/dns/rdatastruct.h: gen
|
||||
./gen -s ${srcdir} -i > $@
|
||||
include/dns/rdatastruct.h: gen rdata/rdatastructpre.h rdata/rdatastructsuf.h
|
||||
./gen -s ${srcdir} -i \
|
||||
-P rdata/rdatastructpre.h -S rdata/rdatastructsuf.h > $@
|
||||
|
||||
code.h: gen
|
||||
./gen -s ${srcdir} > code.h
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gen.c,v 1.18 1999/05/05 01:55:07 marka Exp $ */
|
||||
/* $Id: gen.c,v 1.19 1999/05/07 03:24:04 marka Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
|
@ -59,12 +59,18 @@
|
|||
#define FROMSTRUCTTYPE "type"
|
||||
#define FROMSTRUCTDEF "use_default = ISC_TRUE"
|
||||
|
||||
#define TOSTRUCTDECL "dns_rdata_t *rdata, void *target"
|
||||
#define TOSTRUCTARGS "rdata, target"
|
||||
#define TOSTRUCTDECL "dns_rdata_t *rdata, void *target, isc_mem_t *mctx"
|
||||
#define TOSTRUCTARGS "rdata, target, mctx"
|
||||
#define TOSTRUCTCLASS "rdata->class"
|
||||
#define TOSTRUCTTYPE "rdata->type"
|
||||
#define TOSTRUCTDEF "use_default = ISC_TRUE"
|
||||
|
||||
#define FREESTRUCTDECL "void *source"
|
||||
#define FREESTRUCTARGS "source"
|
||||
#define FREESTRUCTCLASS "common->rdclass"
|
||||
#define FREESTRUCTTYPE "common->rdtype"
|
||||
#define FREESTRUCTDEF NULL
|
||||
|
||||
#define COMPAREDECL "dns_rdata_t *rdata1, dns_rdata_t *rdata2"
|
||||
#define COMPAREARGS "rdata1, rdata2"
|
||||
#define COMPARECLASS "rdata1->class"
|
||||
|
|
@ -149,6 +155,10 @@ doswitch(char *name, char *function, char *args,
|
|||
int lasttype = 0;
|
||||
int subswitch = 0;
|
||||
char buf1[11], buf2[11];
|
||||
char *result = " result =";
|
||||
|
||||
if (res == NULL)
|
||||
result = "";
|
||||
|
||||
for (tt = types; tt != NULL ; tt = tt->next) {
|
||||
if (first) {
|
||||
|
|
@ -157,7 +167,11 @@ doswitch(char *name, char *function, char *args,
|
|||
first = 0;
|
||||
}
|
||||
if (tt->type != lasttype && subswitch) {
|
||||
fprintf(stdout, "\t\tdefault: %s; break; \\\n", res);
|
||||
if (res == NULL)
|
||||
fprintf(stdout, "\t\tdefault: break; \\\n");
|
||||
else
|
||||
fprintf(stdout,
|
||||
"\t\tdefault: %s; break; \\\n", res);
|
||||
fputs(/*{*/ "\t\t} \\\n", stdout);
|
||||
fputs("\t\tbreak; \\\n", stdout);
|
||||
subswitch = 0;
|
||||
|
|
@ -169,27 +183,36 @@ doswitch(char *name, char *function, char *args,
|
|||
}
|
||||
if (tt->class == 0)
|
||||
fprintf(stdout,
|
||||
"\tcase %d: result = %s_%s(%s); break;",
|
||||
tt->type, function,
|
||||
"\tcase %d:%s %s_%s(%s); break;",
|
||||
tt->type, result, function,
|
||||
funname(tt->typename, buf1), args);
|
||||
else
|
||||
fprintf(stdout,
|
||||
"\t\tcase %d: result = %s_%s_%s(%s); break;",
|
||||
tt->class, function,
|
||||
"\t\tcase %d:%s %s_%s_%s(%s); break;",
|
||||
tt->class, result, function,
|
||||
funname(tt->classname, buf1),
|
||||
funname(tt->typename, buf2), args);
|
||||
fputs(" \\\n", stdout);
|
||||
lasttype = tt->type;
|
||||
}
|
||||
if (subswitch) {
|
||||
fprintf(stdout, "\t\tdefault: %s; break; \\\n", res);
|
||||
if (res == NULL)
|
||||
fprintf(stdout, "\t\tdefault: break; \\\n");
|
||||
else
|
||||
fprintf(stdout, "\t\tdefault: %s; break; \\\n", res);
|
||||
fputs(/*{*/ "\t\t} \\\n", stdout);
|
||||
fputs("\t\tbreak; \\\n", stdout);
|
||||
}
|
||||
if (first)
|
||||
fprintf(stdout, "\n#define %s %s;\n", name, res);
|
||||
else {
|
||||
fprintf(stdout, "\tdefault: %s; break; \\\n", res);
|
||||
if (first) {
|
||||
if (res == NULL)
|
||||
fprintf(stdout, "\n#define %s\n", name);
|
||||
else
|
||||
fprintf(stdout, "\n#define %s %s;\n", name, res);
|
||||
} else {
|
||||
if (res == NULL)
|
||||
fprintf(stdout, "\tdefault: break; \\\n");
|
||||
else
|
||||
fprintf(stdout, "\tdefault: %s; break; \\\n", res);
|
||||
fputs(/*{*/ "\t}\n", stdout);
|
||||
}
|
||||
}
|
||||
|
|
@ -332,9 +355,11 @@ main(int argc, char **argv) {
|
|||
char buf1[11];
|
||||
char filetype = 'c';
|
||||
FILE *fd;
|
||||
char *prefix = NULL;
|
||||
char *suffix = NULL;
|
||||
|
||||
strcpy(srcdir, "");
|
||||
while ((c = getopt(argc, argv, "ctis:")) != -1)
|
||||
while ((c = getopt(argc, argv, "cits:P:S:")) != -1)
|
||||
switch (c) {
|
||||
case 'c':
|
||||
code = 0;
|
||||
|
|
@ -360,6 +385,12 @@ main(int argc, char **argv) {
|
|||
case 's':
|
||||
sprintf(srcdir, "%s/", optarg);
|
||||
break;
|
||||
case 'P':
|
||||
prefix = optarg;
|
||||
break;
|
||||
case 'S':
|
||||
suffix = optarg;
|
||||
break;
|
||||
case '?':
|
||||
exit(1);
|
||||
}
|
||||
|
|
@ -402,6 +433,7 @@ main(int argc, char **argv) {
|
|||
dodecl("int", "compare", COMPAREDECL);
|
||||
dodecl("dns_result_t", "fromstruct", FROMSTRUCTDECL);
|
||||
dodecl("dns_result_t", "tostruct", TOSTRUCTDECL);
|
||||
dodecl("void", "freestruct", FREESTRUCTDECL);
|
||||
|
||||
doswitch("FROMTEXTSWITCH", "fromtext", FROMTEXTARGS,
|
||||
FROMTEXTTYPE, FROMTEXTCLASS, FROMTEXTDEF);
|
||||
|
|
@ -417,6 +449,8 @@ main(int argc, char **argv) {
|
|||
FROMSTRUCTTYPE, FROMSTRUCTCLASS, FROMSTRUCTDEF);
|
||||
doswitch("TOSTRUCTSWITCH", "tostruct", TOSTRUCTARGS,
|
||||
TOSTRUCTTYPE, TOSTRUCTCLASS, TOSTRUCTDEF);
|
||||
doswitch("FREESTRUCTSWITCH", "freestruct", FREESTRUCTARGS,
|
||||
FREESTRUCTTYPE, FREESTRUCTCLASS, FREESTRUCTDEF);
|
||||
|
||||
fprintf(stdout, "\n#define TYPENAMES%s\n",
|
||||
types != NULL ? " \\" : "");
|
||||
|
|
@ -468,6 +502,13 @@ main(int argc, char **argv) {
|
|||
cc->next != NULL ? " \\" : "");
|
||||
fprintf(stdout, "#endif /* CLASSENUM */\n");
|
||||
} else if (structs) {
|
||||
if (prefix != NULL) {
|
||||
if ((fd = fopen(prefix,"r")) != NULL) {
|
||||
while (fgets(buf, sizeof buf, fd) != NULL)
|
||||
fputs(buf, stdout);
|
||||
fclose(fd);
|
||||
}
|
||||
}
|
||||
for (tt = types; tt != NULL ; tt = tt->next) {
|
||||
sprintf(buf, "%s/%s_%d.h",
|
||||
tt->dirname, tt->typename, tt->type);
|
||||
|
|
@ -477,6 +518,13 @@ main(int argc, char **argv) {
|
|||
fclose(fd);
|
||||
}
|
||||
}
|
||||
if (suffix != NULL) {
|
||||
if ((fd = fopen(suffix,"r")) != NULL) {
|
||||
while (fgets(buf, sizeof buf, fd) != NULL)
|
||||
fputs(buf, stdout);
|
||||
fclose(fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ferror(stdout) != 0)
|
||||
|
|
|
|||
|
|
@ -360,22 +360,32 @@ dns_result_t dns_rdata_fromstruct(dns_rdata_t *rdata,
|
|||
* Resource Limit: Not enough space
|
||||
*/
|
||||
|
||||
dns_result_t dns_rdata_tostruct(dns_rdata_t *rdata, void *target);
|
||||
dns_result_t dns_rdata_tostruct(dns_rdata_t *rdata, void *target,
|
||||
isc_mem_t *mctx);
|
||||
/*
|
||||
* Convert an rdata into its C structure representation.
|
||||
*
|
||||
* XXX Should we have a 'size' parameter as a sanity check on target?
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
* 'rdata' is a valid, non-empty rdata.
|
||||
*
|
||||
* 'target' points to a valid C struct for the class and type.
|
||||
* 'target' to point to a valid pointer for the type and class.
|
||||
*
|
||||
* Result:
|
||||
* Success
|
||||
* Resource Limit: Not enough memory
|
||||
*/
|
||||
|
||||
void dns_rdata_freestruct(void *source);
|
||||
|
||||
/*
|
||||
* Free dynamic memory attached to 'source' (if any).
|
||||
*
|
||||
* Requires:
|
||||
*
|
||||
* 'source' to point to the structure previously filled in by
|
||||
* dns_rdata_tostruct().
|
||||
*/
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
#endif /* DNS_RDATA_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.41 1999/05/05 01:55:08 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.42 1999/05/07 03:24:05 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -469,7 +469,7 @@ dns_rdata_fromstruct(dns_rdata_t *rdata, dns_rdataclass_t class,
|
|||
}
|
||||
|
||||
dns_result_t
|
||||
dns_rdata_tostruct(dns_rdata_t *rdata, void *target) {
|
||||
dns_rdata_tostruct(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
dns_result_t result = DNS_R_NOTIMPLEMENTED;
|
||||
isc_boolean_t use_default = ISC_FALSE;
|
||||
|
||||
|
|
@ -483,6 +483,14 @@ dns_rdata_tostruct(dns_rdata_t *rdata, void *target) {
|
|||
return (result);
|
||||
}
|
||||
|
||||
void
|
||||
dns_rdata_freestruct(void *source) {
|
||||
dns_rdatacommon_t *common = source;
|
||||
REQUIRE(source != NULL);
|
||||
|
||||
FREESTRUCTSWITCH
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_rdataclass_fromtext(dns_rdataclass_t *classp, isc_textregion_t *source) {
|
||||
int i = 0;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tsig_250.c,v 1.8 1999/05/05 00:18:59 marka Exp $ */
|
||||
/* $Id: tsig_250.c,v 1.9 1999/05/07 03:24:05 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-tsig-07.txt */
|
||||
|
||||
|
|
@ -294,13 +294,25 @@ fromstruct_any_tsig(dns_rdataclass_t class, dns_rdatatype_t type,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_any_tsig(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 250);
|
||||
REQUIRE(rdata->class == 255);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_any_tsig(void *source) {
|
||||
dns_rdata_any_tsig_t *tsig = source;
|
||||
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(tsig->common.rdclass == 255);
|
||||
REQUIRE(tsig->common.rdtype == 250);
|
||||
REQUIRE(ISC_FALSE);
|
||||
|
||||
}
|
||||
#endif /* RDATA_ANY_255_TSIG_250_C */
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tsig_250.h,v 1.8 1999/05/05 01:55:08 marka Exp $ */
|
||||
/* $Id: tsig_250.h,v 1.9 1999/05/07 03:24:05 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-tsig-07.txt */
|
||||
|
||||
#ifndef RDATA_ANY_255_TSIG_250_H
|
||||
#define RDATA_ANY_255_TSIG_250_H
|
||||
|
||||
#endif /* RDATA_ANY_255_TSIG_250_H */
|
||||
typedef struct dns_rdata_any_tsig {
|
||||
dns_rdatacommon_t common;
|
||||
/*XXX*/
|
||||
} dns_rdata_any_tsig_t;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: afsdb_18.c,v 1.6 1999/05/05 00:18:59 marka Exp $ */
|
||||
/* $Id: afsdb_18.c,v 1.7 1999/05/07 03:24:05 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
|
|
@ -179,12 +179,23 @@ fromstruct_afsdb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_afsdb(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 18);
|
||||
REQUIRE(target != NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_afsdb(void *source) {
|
||||
dns_rdata_afsdb_t *afsdb = source;
|
||||
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(afsdb->common.rdtype == 18);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_GENERIC_AFSDB_18_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: afsdb_18.h,v 1.6 1999/05/05 01:55:08 marka Exp $ */
|
||||
/* $Id: afsdb_18.h,v 1.7 1999/05/07 03:24:05 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
#ifndef RDATA_GENERIC_AFSDB_18_H
|
||||
#define RDATA_GENERIC_AFSDB_18_H
|
||||
#endif /* RDATA_GENERIC_AFSDB_18_H */
|
||||
typedef struct dns_rdata_afsdb {
|
||||
dns_rdatacommon_t common;
|
||||
/*XXX*/
|
||||
} dns_rdata_afsdb_t;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cert_37.c,v 1.6 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: cert_37.c,v 1.7 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-certs-04.txt */
|
||||
|
||||
|
|
@ -169,12 +169,20 @@ fromstruct_cert(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_cert(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 37);
|
||||
REQUIRE(target != NULL && target == NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_cert(void *target) {
|
||||
REQUIRE(target != NULL && target != NULL);
|
||||
REQUIRE(ISC_FALSE); /* XXX */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_CERT_37_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cert_37.h,v 1.6 1999/05/05 01:55:08 marka Exp $ */
|
||||
/* $Id: cert_37.h,v 1.7 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-certs-04.txt */
|
||||
|
||||
#ifndef RDATA_GENERIC_CERT_37_H
|
||||
#define RDATA_GENERIC_CERT_37_H
|
||||
#endif /* RDATA_GENERIC_CERT_37_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cname_5.c,v 1.12 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: cname_5.c,v 1.13 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_CNAME_5_C
|
||||
#define RDATA_GENERIC_CNAME_5_C
|
||||
|
|
@ -140,12 +140,21 @@ fromstruct_cname(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_cname(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 5);
|
||||
REQUIRE(target != NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_cname(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
|
||||
#endif /* RDATA_GENERIC_CNAME_5_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cname_5.h,v 1.12 1999/05/05 01:55:08 marka Exp $ */
|
||||
/* $Id: cname_5.h,v 1.13 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_CNAME_5_H
|
||||
#define RDATA_GENERIC_CNAME_5_H
|
||||
#endif /* RDATA_GENERIC_CNAME_5_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dname_39.c,v 1.5 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: dname_39.c,v 1.6 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-dname-02.txt */
|
||||
|
||||
|
|
@ -140,12 +140,20 @@ fromstruct_dname(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_dname(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 39);
|
||||
REQUIRE(target != NULL && target == NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_dname(void *source) {
|
||||
REQUIRE(source != NULL && source != NULL);
|
||||
REQUIRE(ISC_FALSE); /* XXX */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_DNAME_39_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dname_39.h,v 1.5 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: dname_39.h,v 1.6 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnsind-dname-02.txt */
|
||||
|
||||
#ifndef RDATA_GENERIC_DNAME_39_H
|
||||
#define RDATA_GENERIC_DNAME_39_H
|
||||
#endif /* RDATA_GENERIC_DNAME_39_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gpos_27.c,v 1.3 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: gpos_27.c,v 1.4 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* RFC 1712 */
|
||||
|
||||
|
|
@ -122,12 +122,19 @@ fromstruct_gpos(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_gpos(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 27);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_gpos(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /* XXX */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_GPOS_27_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gpos_27.h,v 1.3 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: gpos_27.h,v 1.4 1999/05/07 03:24:06 marka Exp $ */
|
||||
|
||||
/* RFC 1712 */
|
||||
|
||||
#ifndef RDATA_GENERIC_GPOS_27_H
|
||||
#define RDATA_GENERIC_GPOS_27_H
|
||||
#endif /* RDATA_GENERIC_GPOS_27_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hinfo_13.c,v 1.11 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: hinfo_13.c,v 1.12 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_HINFO_13_C
|
||||
#define RDATA_GENERIC_HINFO_13_C
|
||||
|
|
@ -112,12 +112,19 @@ fromstruct_hinfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_hinfo(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 13);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_hinfo(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /* XXX */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_HINFO_13_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: hinfo_13.h,v 1.11 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: hinfo_13.h,v 1.12 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_HINFO_13_H
|
||||
#define RDATA_GENERIC_HINFO_13_H
|
||||
#endif /* RDATA_GENERIC_HINFO_13_H */
|
||||
|
|
|
|||
|
|
@ -122,12 +122,19 @@ fromstruct_isdn(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_isdn(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 20);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_isdn(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_ISDN_20_C */
|
||||
|
|
|
|||
|
|
@ -19,6 +19,3 @@
|
|||
|
||||
/* RFC 1183 */
|
||||
|
||||
#ifndef RDATA_GENERIC_ISDN_20_H
|
||||
#define RDATA_GENERIC_ISDN_20_H
|
||||
#endif /* RDATA_GENERIC_ISDN_20_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: key_25.c,v 1.4 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: key_25.c,v 1.5 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
|
|
@ -164,12 +164,19 @@ fromstruct_key(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_key(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 25);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_key(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_KEY_25_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: key_25.h,v 1.4 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: key_25.h,v 1.5 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
#ifndef RDATA_GENERIC_KEY_25_H
|
||||
#define RDATA_GENERIC_KEY_25_H
|
||||
#endif /* RDATA_GENERIC_KEY_25_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: loc_29.c,v 1.3 1999/05/05 00:19:00 marka Exp $ */
|
||||
/* $Id: loc_29.c,v 1.4 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
/* RFC 1876 */
|
||||
|
||||
|
|
@ -576,12 +576,19 @@ fromstruct_loc(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_loc(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 29);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_loc(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_LOC_29_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: loc_29.h,v 1.3 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: loc_29.h,v 1.4 1999/05/07 03:24:07 marka Exp $ */
|
||||
|
||||
/* RFC 1876 */
|
||||
|
||||
#ifndef RDATA_GENERIC_LOC_29_H
|
||||
#define RDATA_GENERIC_LOC_29_H
|
||||
#endif /* RDATA_GENERIC_LOC_29_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mb_7.c,v 1.12 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: mb_7.c,v 1.13 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MB_7_C
|
||||
#define RDATA_GENERIC_MB_7_C
|
||||
|
|
@ -140,12 +140,19 @@ fromstruct_mb(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_mb(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 7);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_mb(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MB_7_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mb_7.h,v 1.12 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: mb_7.h,v 1.13 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MB_7_H
|
||||
#define RDATA_GENERIC_MB_7_H
|
||||
#endif /* RDATA_GENERIC_MB_7_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: md_3.c,v 1.12 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: md_3.c,v 1.13 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MD_3_C
|
||||
#define RDATA_GENERIC_MD_3_C
|
||||
|
|
@ -138,12 +138,19 @@ fromstruct_md(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_md(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 3);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_md(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MD_3_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: md_3.h,v 1.12 1999/05/05 01:55:09 marka Exp $ */
|
||||
/* $Id: md_3.h,v 1.13 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MD_3_H
|
||||
#define RDATA_GENERIC_MD_3_H
|
||||
#endif /* RDATA_GENERIC_MD_3_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mf_4.c,v 1.11 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: mf_4.c,v 1.12 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MF_4_C
|
||||
#define RDATA_GENERIC_MF_4_C
|
||||
|
|
@ -138,12 +138,19 @@ fromstruct_mf(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_mf(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 4);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_mf(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MF_4_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mf_4.h,v 1.11 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: mf_4.h,v 1.12 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MF_4_H
|
||||
#define RDATA_GENERIC_MF_4_H
|
||||
#endif /* RDATA_GENERIC_MF_4_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mg_8.c,v 1.11 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: mg_8.c,v 1.12 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MG_8_C
|
||||
#define RDATA_GENERIC_MG_8_C
|
||||
|
|
@ -140,12 +140,19 @@ fromstruct_mg(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_mg(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 8);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_mg(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MG_8_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mg_8.h,v 1.11 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: mg_8.h,v 1.12 1999/05/07 03:24:08 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MG_8_H
|
||||
#define RDATA_GENERIC_MG_8_H
|
||||
#endif /* RDATA_GENERIC_MG_8_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: minfo_14.c,v 1.12 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: minfo_14.c,v 1.13 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MINFO_14_C
|
||||
#define RDATA_GENERIC_MINFO_14_C
|
||||
|
|
@ -186,12 +186,19 @@ fromstruct_minfo(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_minfo(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 14);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_minfo(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MINFO_14_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: minfo_14.h,v 1.12 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: minfo_14.h,v 1.13 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MINFO_14_H
|
||||
#define RDATA_GENERIC_MINFO_14_H
|
||||
#endif /* RDATA_GENERIC_MINFO_14_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mr_9.c,v 1.11 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: mr_9.c,v 1.12 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MR_9_C
|
||||
#define RDATA_GENERIC_MR_9_C
|
||||
|
|
@ -140,12 +140,19 @@ fromstruct_mr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_mr(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 9);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_mr(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MR_9_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mr_9.h,v 1.11 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: mr_9.h,v 1.12 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MR_9_H
|
||||
#define RDATA_GENERIC_MR_9_H
|
||||
#endif /* RDATA_GENERIC_MR_9_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mx_15.c,v 1.14 1999/05/05 00:19:01 marka Exp $ */
|
||||
/* $Id: mx_15.c,v 1.15 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MX_15_C
|
||||
#define RDATA_GENERIC_MX_15_C
|
||||
|
|
@ -177,12 +177,19 @@ fromstruct_mx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_mx(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 15);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_mx(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_MX_15_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: mx_15.h,v 1.14 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: mx_15.h,v 1.15 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_MX_15_H
|
||||
#define RDATA_GENERIC_MX_15_H
|
||||
#endif /* RDATA_GENERIC_MX_15_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.c,v 1.11 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: ns_2.c,v 1.12 1999/05/07 03:24:09 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NS_2_C
|
||||
#define RDATA_GENERIC_NS_2_C
|
||||
|
|
@ -140,12 +140,29 @@ fromstruct_ns(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_ns(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
isc_region_t region;
|
||||
dns_rdata_ns_t *ns = target;
|
||||
|
||||
REQUIRE(rdata->type == 2);
|
||||
REQUIRE(target != NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx; /*unused*/
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
ns->common.rdclass = rdata->class;
|
||||
ns->common.rdtype = rdata->type;
|
||||
ISC_LINK_INIT(&ns->common, link);
|
||||
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
dns_fixedname_init(&ns->name);
|
||||
dns_name_fromregion(dns_fixedname_name(&ns->name), ®ion);
|
||||
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_ns(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
/* No action required. */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_NS_2_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ns_2.h,v 1.11 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: ns_2.h,v 1.12 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
typedef struct dns_rdata_ns {
|
||||
dns_rdatacommon_t common;
|
||||
dns_fixedname_t name;
|
||||
} dns_rdata_ns_t;
|
||||
|
||||
#ifndef RDATA_GENERIC_NS_2_H
|
||||
#define RDATA_GENERIC_NS_2_H
|
||||
#endif /* RDATA_GENERIC_NS_2_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: null_10.c,v 1.8 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: null_10.c,v 1.9 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NULL_10_C
|
||||
#define RDATA_GENERIC_NULL_10_C
|
||||
|
|
@ -105,12 +105,24 @@ fromstruct_null(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_null(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
dns_rdata_null_t *null = target;
|
||||
|
||||
REQUIRE(rdata->type == 10);
|
||||
REQUIRE(target != NULL);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
null->common.rdtype = rdata->type;
|
||||
null->common.rdclass = rdata->class;
|
||||
ISC_LINK_INIT(&null->common, link);
|
||||
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_null(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
/* No action required. */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_NULL_10_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: null_10.h,v 1.8 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: null_10.h,v 1.9 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_NULL_10_H
|
||||
#define RDATA_GENERIC_NULL_10_H
|
||||
#endif /* RDATA_GENERIC_NULL_10_H */
|
||||
typedef struct dns_rdata_null {
|
||||
dns_rdatacommon_t common;
|
||||
} dns_rdata_null_t;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.c,v 1.8 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: nxt_30.c,v 1.9 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
|
|
@ -206,12 +206,22 @@ fromstruct_nxt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_nxt(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 30);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_nxt(void *source) {
|
||||
dns_rdata_nxt_t *nxt = source;
|
||||
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(nxt->common.rdtype == 30);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_GENERIC_NXT_30_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,11 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.h,v 1.8 1999/05/05 01:55:10 marka Exp $ */
|
||||
/* $Id: nxt_30.h,v 1.9 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
#ifndef RDATA_GENERIC_NXT_30_H
|
||||
#define RDATA_GENERIC_NXT_30_H
|
||||
#endif /* RDATA_GENERIC_NXT_30_H */
|
||||
typedef struct dns_rdata_nxt {
|
||||
dns_rdatacommon_t common;
|
||||
/*XXX*/
|
||||
} dns_rdata_nxt_t;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: proforma.c,v 1.9 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: proforma.c,v 1.10 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_#_#_C
|
||||
#define RDATA_GENERIC_#_#_C
|
||||
|
|
@ -99,11 +99,21 @@ fromstruct_#(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_#(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == #);
|
||||
REQUIRE(rdata->class == #);
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_#(void *source) {
|
||||
dns_rdata_#_t *# = source;
|
||||
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(#->common.rdtype == #);
|
||||
REQUIRE(#->common.rdclass == #);
|
||||
|
||||
}
|
||||
#endif /* RDATA_GENERIC_#_#_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,10 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: proforma.h,v 1.9 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: proforma.h,v 1.10 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_#_#_H
|
||||
#define RDATA_GENERIC_#_#_H
|
||||
#endif /* RDATA_GENERIC_#_#_H */
|
||||
typedef struct dns_rdata_# {
|
||||
dns_rdatacommon_t common;
|
||||
isc_mem_t *mctx; /* if required */
|
||||
/* type & class specific elements */
|
||||
} dns_rdata_#_t;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ptr_12.c,v 1.12 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: ptr_12.c,v 1.13 1999/05/07 03:24:10 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_PTR_12_C
|
||||
#define RDATA_GENERIC_PTR_12_C
|
||||
|
|
@ -140,12 +140,19 @@ fromstruct_ptr(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_ptr(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 12);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_ptr(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_GENERIC_PTR_12_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: ptr_12.h,v 1.12 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: ptr_12.h,v 1.13 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_PTR_12_H
|
||||
#define RDATA_GENERIC_PTR_12_H
|
||||
#endif /* RDATA_GENERIC_PTR_12_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rp_17.c,v 1.6 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: rp_17.c,v 1.7 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
|
|
@ -188,12 +188,19 @@ fromstruct_rp(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_rp(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 17);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_rp(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_RP_17_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rp_17.h,v 1.6 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: rp_17.h,v 1.7 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
#ifndef RDATA_GENERIC_RP_17_H
|
||||
#define RDATA_GENERIC_RP_17_H
|
||||
#endif /* RDATA_GENERIC_RP_17_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rt_21.c,v 1.6 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: rt_21.c,v 1.7 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
|
|
@ -178,12 +178,19 @@ fromstruct_rt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_rt(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 21);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_rt(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_RT_21_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rt_21.h,v 1.6 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: rt_21.h,v 1.7 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
#ifndef RDATA_GENERIC_RT_21_H
|
||||
#define RDATA_GENERIC_RT_21_H
|
||||
#endif /* RDATA_GENERIC_RT_21_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sig_24.c,v 1.10 1999/05/05 00:19:02 marka Exp $ */
|
||||
/* $Id: sig_24.c,v 1.11 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
|
|
@ -305,12 +305,19 @@ fromstruct_sig(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_sig(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 24);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_sig(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_SIG_24_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sig_24.h,v 1.10 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: sig_24.h,v 1.11 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
#ifndef RDATA_GENERIC_SIG_24_H
|
||||
#define RDATA_GENERIC_SIG_24_H
|
||||
#endif /* RDATA_GENERIC_SIG_24_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.c,v 1.16 1999/05/05 00:20:36 marka Exp $ */
|
||||
/* $Id: soa_6.c,v 1.17 1999/05/07 03:24:11 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_C
|
||||
#define RDATA_GENERIC_SOA_6_C
|
||||
|
|
@ -232,15 +232,18 @@ fromstruct_soa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_soa(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
isc_region_t region;
|
||||
dns_rdata_soa_t *soa = target;
|
||||
|
||||
REQUIRE(rdata->type == 6);
|
||||
REQUIRE(target != NULL);
|
||||
|
||||
soa->rdclass = rdata->class;
|
||||
soa->rdtype = rdata->type;
|
||||
ISC_LINK_INIT(soa, link);
|
||||
mctx = mctx; /*unused*/
|
||||
|
||||
soa->common.rdclass = rdata->class;
|
||||
soa->common.rdtype = rdata->type;
|
||||
ISC_LINK_INIT(&soa->common, link);
|
||||
|
||||
dns_rdata_toregion(rdata, ®ion);
|
||||
dns_fixedname_init(&soa->origin);
|
||||
|
|
@ -263,4 +266,13 @@ tostruct_soa(dns_rdata_t *rdata, void *target) {
|
|||
|
||||
return (DNS_R_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
freestruct_soa(void *source) {
|
||||
dns_rdata_soa_t *soa = source;
|
||||
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(soa->common.rdtype == 6);
|
||||
/* No action required */
|
||||
}
|
||||
#endif /* RDATA_GENERIC_SOA_6_C */
|
||||
|
|
|
|||
|
|
@ -15,23 +15,16 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: soa_6.h,v 1.15 1999/05/05 01:55:11 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_SOA_6_H
|
||||
#define RDATA_GENERIC_SOA_6_H
|
||||
/* $Id: soa_6.h,v 1.16 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
typedef struct dns_rdata_soa {
|
||||
dns_rdataclass_t rdclass;
|
||||
dns_rdatatype_t rdtype;
|
||||
ISC_LINK(void) link;
|
||||
isc_mem_t *mctx;
|
||||
dns_rdatacommon_t common;
|
||||
dns_fixedname_t origin;
|
||||
dns_fixedname_t mname;
|
||||
isc_uint32_t serial;
|
||||
isc_uint32_t refresh;
|
||||
isc_uint32_t retry;
|
||||
isc_uint32_t expire;
|
||||
isc_uint32_t minimum;
|
||||
isc_uint32_t serial; /* host order */
|
||||
isc_uint32_t refresh; /* host order */
|
||||
isc_uint32_t retry; /* host order */
|
||||
isc_uint32_t expire; /* host order */
|
||||
isc_uint32_t minimum; /* host order */
|
||||
} dns_rdata_soa_t;
|
||||
|
||||
#endif /* RDATA_GENERIC_SOA_6_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tkey_249.c,v 1.8 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: tkey_249.c,v 1.9 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-tkey-01.txt */
|
||||
|
||||
|
|
@ -285,12 +285,19 @@ fromstruct_tkey(dns_rdataclass_t class, dns_rdatatype_t type,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_tkey(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 249);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_tkey(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_TKEY_249_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: tkey_249.h,v 1.8 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: tkey_249.h,v 1.9 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
/* draft-ietf-dnssec-tkey-01.txt */
|
||||
|
||||
#ifndef RDATA_GENERIC_TKEY_249_H
|
||||
#define RDATA_GENERIC_TKEY_249_H
|
||||
#endif /* RDATA_GENERIC_TKEY_249_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: txt_16.c,v 1.10 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: txt_16.c,v 1.11 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_TXT_16_C
|
||||
#define RDATA_GENERIC_TXT_16_C
|
||||
|
|
@ -133,12 +133,19 @@ fromstruct_txt(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_txt(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 16);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_txt(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_GENERIC_TXT_16_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: txt_16.h,v 1.10 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: txt_16.h,v 1.11 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_TXT_16_H
|
||||
#define RDATA_GENERIC_TXT_16_H
|
||||
#endif /* RDATA_GENERIC_TXT_16_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: unspec_103.c,v 1.3 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: unspec_103.c,v 1.4 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_UNSPEC_103_C
|
||||
#define RDATA_GENERIC_UNSPEC_103_C
|
||||
|
|
@ -103,12 +103,19 @@ fromstruct_unspec(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_unspec(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 103);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_unspec(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_UNSPEC_103_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: unspec_103.h,v 1.3 1999/05/05 01:55:11 marka Exp $ */
|
||||
/* $Id: unspec_103.h,v 1.4 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_GENERIC_UNSPEC_103_H
|
||||
#define RDATA_GENERIC_UNSPEC_103_H
|
||||
#endif /* RDATA_GENERIC_UNSPEC_103_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: x25_19.c,v 1.3 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: x25_19.c,v 1.4 1999/05/07 03:24:12 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
|
|
@ -119,12 +119,19 @@ fromstruct_x25(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_x25(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 19);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_x25(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_GENERIC_X25_19_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: x25_19.h,v 1.3 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: x25_19.h,v 1.4 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
/* RFC 1183 */
|
||||
|
||||
#ifndef RDATA_GENERIC_X25_19_H
|
||||
#define RDATA_GENERIC_X25_19_H
|
||||
#endif /* RDATA_GENERIC_X25_19_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a6_38.c,v 1.8 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: a6_38.c,v 1.9 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||
|
||||
|
|
@ -263,13 +263,20 @@ fromstruct_in_a6(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_a6(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 38);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_a6(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_IN_1_A6_38_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a6_38.h,v 1.8 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: a6_38.h,v 1.9 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||
|
||||
#ifndef RDATA_IN_1_A6_28_H
|
||||
#define RDATA_IN_1_A6_28_H
|
||||
#endif /* RDATA_IN_1_A6_38_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.c,v 1.13 1999/05/05 00:19:03 marka Exp $ */
|
||||
/* $Id: a_1.c,v 1.14 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_A_1_C
|
||||
#define RDATA_IN_1_A_1_C
|
||||
|
|
@ -152,13 +152,21 @@ fromstruct_in_a(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_a(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 1);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_a(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
|
||||
}
|
||||
#endif /* RDATA_IN_1_A_1_C */
|
||||
|
|
|
|||
|
|
@ -15,17 +15,9 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: a_1.h,v 1.13 1999/05/05 01:55:12 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_A_1_H
|
||||
#define RDATA_IN_1_A_1_H
|
||||
/* $Id: a_1.h,v 1.14 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
typedef struct dns_rdata_in_a {
|
||||
dns_rdataclass_t rdclass; /* host order */
|
||||
dns_rdatatype_t rdtype; /* host order */
|
||||
ISC_LINK(void) link;
|
||||
isc_mem_t *mctx;
|
||||
dns_rdatacommon_t common;
|
||||
isc_uint32_t address; /* network order */
|
||||
} dns_rdata_in_a_t;
|
||||
|
||||
#endif RDATA_IN_1_A_1_H
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.c,v 1.7 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: aaaa_28.c,v 1.8 1999/05/07 03:24:13 marka Exp $ */
|
||||
|
||||
/* RFC 1886 */
|
||||
|
||||
|
|
@ -154,13 +154,20 @@ fromstruct_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_aaaa(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 28);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_aaaa(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_IN_1_AAAA_28_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.h,v 1.7 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: aaaa_28.h,v 1.8 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 1886 */
|
||||
|
||||
#ifndef RDATA_IN_1_AAAA_28_H
|
||||
#define RDATA_IN_1_AAAA_28_H
|
||||
#endif /* RDATA_IN_1_AAAA_28_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: kx_36.c,v 1.6 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: kx_36.c,v 1.7 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 2230 */
|
||||
|
||||
|
|
@ -168,13 +168,21 @@ fromstruct_in_kx(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_kx(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 36);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_kx(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
|
||||
}
|
||||
#endif /* RDATA_GENERIC_KX_15_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: kx_36.h,v 1.6 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: kx_36.h,v 1.7 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 2230 */
|
||||
|
||||
#ifndef RDATA_GENERIC_KX_36_H
|
||||
#define RDATA_GENERIC_KX_36_H
|
||||
#endif /* RDATA_GENERIC_KX_15_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: naptr_35.c,v 1.6 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: naptr_35.c,v 1.7 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 2168 */
|
||||
|
||||
|
|
@ -254,13 +254,20 @@ fromstruct_in_naptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_naptr(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 35);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_naptr(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_IN_1_NAPTR_35_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: naptr_35.h,v 1.6 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: naptr_35.h,v 1.7 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 2168 */
|
||||
|
||||
#ifndef RDATA_IN_1_NAPTR_35_H
|
||||
#define RDATA_IN_1_NAPTR_35_H
|
||||
#endif /* RDATA_IN_1_NAPTR_35_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap-ptr_23.c,v 1.5 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: nsap-ptr_23.c,v 1.6 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 1348 */
|
||||
|
||||
|
|
@ -146,13 +146,20 @@ fromstruct_in_nsap_ptr(dns_rdataclass_t class, dns_rdatatype_t type,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 23);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_nsap_ptr(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE);
|
||||
}
|
||||
#endif /* RDATA_IN_1_NSAP_PTR_23_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap-ptr_23.h,v 1.5 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: nsap-ptr_23.h,v 1.6 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 1348 */
|
||||
|
||||
#ifndef RDATA_IN_1_NSAP_PTR_23_H
|
||||
#define RDATA_IN_1_NSAP_PTR_23_H
|
||||
#endif /* RDATA_IN_1_NSAP_PTR_23_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.c,v 1.3 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: nsap_22.c,v 1.4 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 1706 */
|
||||
|
||||
|
|
@ -154,13 +154,20 @@ fromstruct_in_nsap(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_nsap(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 22);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_nsap(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_IN_1_NSAP_22_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nsap_22.h,v 1.3 1999/05/05 01:55:12 marka Exp $ */
|
||||
/* $Id: nsap_22.h,v 1.4 1999/05/07 03:24:14 marka Exp $ */
|
||||
|
||||
/* RFC 1706 */
|
||||
|
||||
#ifndef RDATA_IN_1_NSAP_22_H
|
||||
#define RDATA_IN_1_NSAP_22_H
|
||||
#endif /* RDATA_IN_1_NSAP_22_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: px_26.c,v 1.5 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: px_26.c,v 1.6 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
/* RFC 2163 */
|
||||
|
||||
|
|
@ -210,13 +210,21 @@ fromstruct_in_px(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_px(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 26);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_px(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
|
||||
}
|
||||
#endif /* RDATA_IN_1_PX_26_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: px_26.h,v 1.5 1999/05/05 01:55:13 marka Exp $ */
|
||||
/* $Id: px_26.h,v 1.6 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
/* RFC 2163 */
|
||||
|
||||
#ifndef RDATA_IN_1_PX_26_H
|
||||
#define RDATA_IN_1_PX_26_H
|
||||
#endif /* RDATA_IN_1_PX_26_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: srv_33.c,v 1.5 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: srv_33.c,v 1.6 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
/* RFC 2052 bis */
|
||||
|
||||
|
|
@ -199,13 +199,20 @@ fromstruct_in_srv(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_srv(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 33);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_srv(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_IN_1_SRV_33_C */
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: srv_33.h,v 1.5 1999/05/05 01:55:13 marka Exp $ */
|
||||
/* $Id: srv_33.h,v 1.6 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
/* RFC 2052 bis */
|
||||
|
||||
#ifndef RDATA_IN_1_SRV_33_H
|
||||
#define RDATA_IN_1_SRV_33_H
|
||||
#endif /* RDATA_IN_1_SRV_33_H */
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: wks_11.c,v 1.9 1999/05/05 00:19:04 marka Exp $ */
|
||||
/* $Id: wks_11.c,v 1.10 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_WKS_11_C
|
||||
#define RDATA_IN_1_WKS_11_C
|
||||
|
|
@ -226,13 +226,20 @@ fromstruct_in_wks(dns_rdataclass_t class, dns_rdatatype_t type, void *source,
|
|||
}
|
||||
|
||||
static dns_result_t
|
||||
tostruct_in_wks(dns_rdata_t *rdata, void *target) {
|
||||
tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||
|
||||
REQUIRE(rdata->type == 11);
|
||||
REQUIRE(rdata->class == 1);
|
||||
|
||||
target = target;
|
||||
mctx = mctx;
|
||||
|
||||
return (DNS_R_NOTIMPLEMENTED);
|
||||
}
|
||||
|
||||
static void
|
||||
freestruct_in_wks(void *source) {
|
||||
REQUIRE(source != NULL);
|
||||
REQUIRE(ISC_FALSE); /*XXX*/
|
||||
}
|
||||
#endif /* RDATA_IN_1_WKS_11_C */
|
||||
|
|
|
|||
|
|
@ -15,8 +15,5 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: wks_11.h,v 1.9 1999/05/05 01:55:13 marka Exp $ */
|
||||
/* $Id: wks_11.h,v 1.10 1999/05/07 03:24:15 marka Exp $ */
|
||||
|
||||
#ifndef RDATA_IN_1_WKS_11_H
|
||||
#define RDATA_IN_1_WKS_11_H
|
||||
#endif /* RDATA_IN_1_WKS_11_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue