mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
make rdata functions static inline
This commit is contained in:
parent
00d8179488
commit
4529cdaeda
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: gen.c,v 1.22 1999/08/02 22:18:30 halley Exp $ */
|
/* $Id: gen.c,v 1.23 1999/08/12 01:32:42 halley Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -235,13 +235,13 @@ dodecl(char *type, char *function, char *args) {
|
|||||||
for (tt = types; tt ; tt = tt->next)
|
for (tt = types; tt ; tt = tt->next)
|
||||||
if (tt->rdclass)
|
if (tt->rdclass)
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"static %s %s_%s_%s(%s);\n",
|
"static inline %s %s_%s_%s(%s);\n",
|
||||||
type, function,
|
type, function,
|
||||||
funname(tt->classname, buf1),
|
funname(tt->classname, buf1),
|
||||||
funname(tt->typename, buf2), args);
|
funname(tt->typename, buf2), args);
|
||||||
else
|
else
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"static %s %s_%s(%s);\n",
|
"static inline %s %s_%s(%s);\n",
|
||||||
type, function,
|
type, function,
|
||||||
funname(tt->typename, buf1), args);
|
funname(tt->typename, buf1), args);
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: tsig_250.c,v 1.13 1999/08/02 22:17:58 halley Exp $ */
|
/* $Id: tsig_250.c,v 1.14 1999/08/12 01:32:29 halley Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnsind-tsig-07.txt */
|
/* draft-ietf-dnsind-tsig-07.txt */
|
||||||
|
|
||||||
@ -23,7 +23,7 @@
|
|||||||
#define RDATA_ANY_255_TSIG_250_C
|
#define RDATA_ANY_255_TSIG_250_C
|
||||||
#include <isc/str.h>
|
#include <isc/str.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -92,7 +92,7 @@ fromtext_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (isc_base64_tobuffer(lexer, target, token.value.as_ulong));
|
return (isc_base64_tobuffer(lexer, target, token.value.as_ulong));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_any_tsig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_any_tsig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -184,7 +184,7 @@ totext_any_tsig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (isc_base64_totext(&sr, 60, " ", target));
|
return (isc_base64_totext(&sr, 60, " ", target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -240,7 +240,7 @@ fromwire_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, n + 2));
|
return (mem_tobuffer(target, sr.base, n + 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_any_tsig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_any_tsig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
@ -261,7 +261,7 @@ towire_any_tsig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target)
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -288,7 +288,7 @@ compare_any_tsig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target)
|
void *source, isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -302,7 +302,7 @@ fromstruct_any_tsig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 250);
|
REQUIRE(rdata->type == 250);
|
||||||
@ -314,7 +314,7 @@ tostruct_any_tsig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_any_tsig(void *source) {
|
freestruct_any_tsig(void *source) {
|
||||||
dns_rdata_any_tsig_t *tsig = source;
|
dns_rdata_any_tsig_t *tsig = source;
|
||||||
|
|
||||||
@ -325,7 +325,7 @@ freestruct_any_tsig(void *source) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_any_tsig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_any_tsig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: afsdb_18.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: afsdb_18.c,v 1.11 1999/08/12 01:32:29 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_AFSDB_18_C
|
#ifndef RDATA_GENERIC_AFSDB_18_C
|
||||||
#define RDATA_GENERIC_AFSDB_18_C
|
#define RDATA_GENERIC_AFSDB_18_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -48,7 +48,7 @@ fromtext_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_afsdb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_afsdb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ totext_afsdb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -107,7 +107,7 @@ fromwire_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_afsdb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_afsdb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t tr;
|
isc_region_t tr;
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
@ -134,7 +134,7 @@ towire_afsdb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
int result;
|
int result;
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
@ -165,7 +165,7 @@ compare_afsdb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -180,7 +180,7 @@ fromstruct_afsdb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 18);
|
REQUIRE(rdata->type == 18);
|
||||||
@ -192,7 +192,7 @@ tostruct_afsdb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_afsdb(void *source) {
|
freestruct_afsdb(void *source) {
|
||||||
dns_rdata_afsdb_t *afsdb = source;
|
dns_rdata_afsdb_t *afsdb = source;
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ freestruct_afsdb(void *source) {
|
|||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_afsdb(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_afsdb(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: cert_37.c,v 1.11 1999/08/02 22:17:58 halley Exp $ */
|
/* $Id: cert_37.c,v 1.12 1999/08/12 01:32:29 halley Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnssec-certs-04.txt */
|
/* draft-ietf-dnssec-certs-04.txt */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_CERT_37_C
|
#ifndef RDATA_GENERIC_CERT_37_C
|
||||||
#define RDATA_GENERIC_CERT_37_C
|
#define RDATA_GENERIC_CERT_37_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -73,7 +73,7 @@ fromtext_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (isc_base64_tobuffer(lexer, target, -1));
|
return (isc_base64_tobuffer(lexer, target, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_cert(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_cert(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@ totext_cert(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -135,7 +135,7 @@ fromwire_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_cert(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_cert(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ towire_cert(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -161,7 +161,7 @@ compare_cert(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ fromstruct_cert(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 37);
|
REQUIRE(rdata->type == 37);
|
||||||
@ -188,13 +188,13 @@ tostruct_cert(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_cert(void *target) {
|
freestruct_cert(void *target) {
|
||||||
REQUIRE(target != NULL && target != NULL);
|
REQUIRE(target != NULL && target != NULL);
|
||||||
REQUIRE(ISC_FALSE); /* XXX */
|
REQUIRE(ISC_FALSE); /* XXX */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_cert(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_cert(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: cname_5.c,v 1.15 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: cname_5.c,v 1.16 1999/08/12 01:32:29 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_CNAME_5_C
|
#ifndef RDATA_GENERIC_CNAME_5_C
|
||||||
#define RDATA_GENERIC_CNAME_5_C
|
#define RDATA_GENERIC_CNAME_5_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_cname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_cname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_cname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return(dns_name_fromwire(&name, source, dctx, downcase, target));
|
return(dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_cname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_cname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_cname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 5);
|
REQUIRE(rdata->type == 5);
|
||||||
@ -153,13 +153,13 @@ tostruct_cname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_cname(void *source) {
|
freestruct_cname(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_cname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_cname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dname_39.c,v 1.8 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: dname_39.c,v 1.9 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnsind-dname-02.txt */
|
/* draft-ietf-dnsind-dname-02.txt */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_DNAME_39_C
|
#ifndef RDATA_GENERIC_DNAME_39_C
|
||||||
#define RDATA_GENERIC_DNAME_39_C
|
#define RDATA_GENERIC_DNAME_39_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -43,7 +43,7 @@ fromtext_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_dname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_dname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ totext_dname(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return(dns_name_fromwire(&name, source, dctx, downcase, target));
|
return(dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_dname(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_dname(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_dname(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 39);
|
REQUIRE(rdata->type == 39);
|
||||||
@ -153,13 +153,13 @@ tostruct_dname(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_dname(void *source) {
|
freestruct_dname(void *source) {
|
||||||
REQUIRE(source != NULL && source != NULL);
|
REQUIRE(source != NULL && source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /* XXX */
|
REQUIRE(ISC_FALSE); /* XXX */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_dname(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: gpos_27.c,v 1.6 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: gpos_27.c,v 1.7 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1712 */
|
/* RFC 1712 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_GPOS_27_C
|
#ifndef RDATA_GENERIC_GPOS_27_C
|
||||||
#define RDATA_GENERIC_GPOS_27_C
|
#define RDATA_GENERIC_GPOS_27_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -44,7 +44,7 @@ fromtext_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_gpos(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_gpos(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ totext_gpos(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_gpos(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_gpos(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 27);
|
REQUIRE(rdata->type == 27);
|
||||||
@ -94,7 +94,7 @@ towire_gpos(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -108,7 +108,7 @@ compare_gpos(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -123,7 +123,7 @@ fromstruct_gpos(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 27);
|
REQUIRE(rdata->type == 27);
|
||||||
@ -134,13 +134,13 @@ tostruct_gpos(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_gpos(void *source) {
|
freestruct_gpos(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /* XXX */
|
REQUIRE(ISC_FALSE); /* XXX */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_gpos(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_gpos(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: hinfo_13.c,v 1.14 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: hinfo_13.c,v 1.15 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_HINFO_13_C
|
#ifndef RDATA_GENERIC_HINFO_13_C
|
||||||
#define RDATA_GENERIC_HINFO_13_C
|
#define RDATA_GENERIC_HINFO_13_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_hinfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_hinfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -58,7 +58,7 @@ totext_hinfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (txt_totext(®ion, target));
|
return (txt_totext(®ion, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -74,7 +74,7 @@ fromwire_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (txt_fromwire(source, target));
|
return (txt_fromwire(source, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_hinfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_hinfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 13);
|
REQUIRE(rdata->type == 13);
|
||||||
@ -84,7 +84,7 @@ towire_hinfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -98,7 +98,7 @@ compare_hinfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ fromstruct_hinfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 13);
|
REQUIRE(rdata->type == 13);
|
||||||
@ -124,13 +124,13 @@ tostruct_hinfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_hinfo(void *source) {
|
freestruct_hinfo(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /* XXX */
|
REQUIRE(ISC_FALSE); /* XXX */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_hinfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_hinfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: isdn_20.c,v 1.7 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: isdn_20.c,v 1.8 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_ISDN_20_C
|
#ifndef RDATA_GENERIC_ISDN_20_C
|
||||||
#define RDATA_GENERIC_ISDN_20_C
|
#define RDATA_GENERIC_ISDN_20_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -49,7 +49,7 @@ fromtext_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (txt_fromtext(&token.value.as_textregion, target));
|
return (txt_fromtext(&token.value.as_textregion, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_isdn(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_isdn(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ totext_isdn(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (txt_totext(®ion, target));
|
return (txt_totext(®ion, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -85,7 +85,7 @@ fromwire_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (txt_fromwire(source, target));
|
return (txt_fromwire(source, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_isdn(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_isdn(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 20);
|
REQUIRE(rdata->type == 20);
|
||||||
@ -95,7 +95,7 @@ towire_isdn(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -109,7 +109,7 @@ compare_isdn(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -124,7 +124,7 @@ fromstruct_isdn(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 20);
|
REQUIRE(rdata->type == 20);
|
||||||
@ -135,13 +135,13 @@ tostruct_isdn(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_isdn(void *source) {
|
freestruct_isdn(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_isdn(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_isdn(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: key_25.c,v 1.9 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: key_25.c,v 1.10 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2065 */
|
/* RFC 2065 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_KEY_25_C
|
#ifndef RDATA_GENERIC_KEY_25_C
|
||||||
#define RDATA_GENERIC_KEY_25_C
|
#define RDATA_GENERIC_KEY_25_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -62,7 +62,7 @@ fromtext_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (isc_base64_tobuffer(lexer, target, -1));
|
return (isc_base64_tobuffer(lexer, target, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_key(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_key(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -110,7 +110,7 @@ totext_key(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return DNS_R_SUCCESS;
|
return DNS_R_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -131,7 +131,7 @@ fromwire_key(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_key(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_key(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ towire_key(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -157,7 +157,7 @@ compare_key(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@ fromstruct_key(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 25);
|
REQUIRE(rdata->type == 25);
|
||||||
@ -183,13 +183,13 @@ tostruct_key(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_key(void *source) {
|
freestruct_key(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_key(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_key(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: loc_29.c,v 1.6 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: loc_29.c,v 1.7 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1876 */
|
/* RFC 1876 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_LOC_29_C
|
#ifndef RDATA_GENERIC_LOC_29_C
|
||||||
#define RDATA_GENERIC_LOC_29_C
|
#define RDATA_GENERIC_LOC_29_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -375,7 +375,7 @@ fromtext_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (uint32_tobuffer(altitude, target));
|
return (uint32_tobuffer(altitude, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_loc(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_loc(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -474,7 +474,7 @@ totext_loc(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (str_totext(buf, target));
|
return (str_totext(buf, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -538,7 +538,7 @@ fromwire_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, 16));
|
return (mem_tobuffer(target, sr.base, 16));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_loc(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_loc(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 29);
|
REQUIRE(rdata->type == 29);
|
||||||
@ -548,7 +548,7 @@ towire_loc(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return(mem_tobuffer(target, rdata->data, rdata->length));
|
return(mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_loc(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_loc(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -562,7 +562,7 @@ compare_loc(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -577,7 +577,7 @@ fromstruct_loc(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 29);
|
REQUIRE(rdata->type == 29);
|
||||||
@ -588,13 +588,13 @@ tostruct_loc(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_loc(void *source) {
|
freestruct_loc(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_loc(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_loc(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mb_7.c,v 1.16 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: mb_7.c,v 1.17 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MB_7_C
|
#ifndef RDATA_GENERIC_MB_7_C
|
||||||
#define RDATA_GENERIC_MB_7_C
|
#define RDATA_GENERIC_MB_7_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_mb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_mb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_mb(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_mb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_mb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_mb(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_mb(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_mb(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 7);
|
REQUIRE(rdata->type == 7);
|
||||||
@ -152,13 +152,13 @@ tostruct_mb(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_mb(void *source) {
|
freestruct_mb(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_mb(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_mb(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: md_3.c,v 1.16 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: md_3.c,v 1.17 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MD_3_C
|
#ifndef RDATA_GENERIC_MD_3_C
|
||||||
#define RDATA_GENERIC_MD_3_C
|
#define RDATA_GENERIC_MD_3_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_md(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_md(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_md(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_md(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_md(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_md(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_md(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_md(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_md(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_md(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_md(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 3);
|
REQUIRE(rdata->type == 3);
|
||||||
@ -152,13 +152,13 @@ tostruct_md(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_md(void *source) {
|
freestruct_md(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_md(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_md(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mf_4.c,v 1.15 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: mf_4.c,v 1.16 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MF_4_C
|
#ifndef RDATA_GENERIC_MF_4_C
|
||||||
#define RDATA_GENERIC_MF_4_C
|
#define RDATA_GENERIC_MF_4_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_mf(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_mf(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_mf(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_mf(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_mf(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_mf(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_mf(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_mf(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 4);
|
REQUIRE(rdata->type == 4);
|
||||||
@ -152,13 +152,13 @@ tostruct_mf(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_mf(void *source) {
|
freestruct_mf(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_mf(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_mf(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mg_8.c,v 1.14 1999/08/02 22:17:59 halley Exp $ */
|
/* $Id: mg_8.c,v 1.15 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MG_8_C
|
#ifndef RDATA_GENERIC_MG_8_C
|
||||||
#define RDATA_GENERIC_MG_8_C
|
#define RDATA_GENERIC_MG_8_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_mg(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_mg(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_mg(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_mg(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_mg(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_mg(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_mg(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_mg(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 8);
|
REQUIRE(rdata->type == 8);
|
||||||
@ -152,13 +152,13 @@ tostruct_mg(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_mg(void *source) {
|
freestruct_mg(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_mg(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_mg(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: minfo_14.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: minfo_14.c,v 1.16 1999/08/12 01:32:30 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MINFO_14_C
|
#ifndef RDATA_GENERIC_MINFO_14_C
|
||||||
#define RDATA_GENERIC_MINFO_14_C
|
#define RDATA_GENERIC_MINFO_14_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -47,7 +47,7 @@ fromtext_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_minfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_minfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ totext_minfo(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -105,7 +105,7 @@ fromwire_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&email, source, dctx, downcase, target));
|
return (dns_name_fromwire(&email, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_minfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_minfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
dns_name_t rmail;
|
dns_name_t rmail;
|
||||||
@ -134,7 +134,7 @@ towire_minfo(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&rmail, cctx, target));
|
return (dns_name_towire(&rmail, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t region1;
|
isc_region_t region1;
|
||||||
isc_region_t region2;
|
isc_region_t region2;
|
||||||
@ -172,7 +172,7 @@ compare_minfo(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -187,7 +187,7 @@ fromstruct_minfo(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 14);
|
REQUIRE(rdata->type == 14);
|
||||||
@ -198,13 +198,13 @@ tostruct_minfo(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_minfo(void *source) {
|
freestruct_minfo(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_minfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_minfo(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mr_9.c,v 1.14 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: mr_9.c,v 1.15 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MR_9_C
|
#ifndef RDATA_GENERIC_MR_9_C
|
||||||
#define RDATA_GENERIC_MR_9_C
|
#define RDATA_GENERIC_MR_9_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_mr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_mr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_mr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_mr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_mr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_mr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 9);
|
REQUIRE(rdata->type == 9);
|
||||||
@ -152,13 +152,13 @@ tostruct_mr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_mr(void *source) {
|
freestruct_mr(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_mr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_mr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: mx_15.c,v 1.18 1999/08/03 01:21:23 halley Exp $ */
|
/* $Id: mx_15.c,v 1.19 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_MX_15_C
|
#ifndef RDATA_GENERIC_MX_15_C
|
||||||
#define RDATA_GENERIC_MX_15_C
|
#define RDATA_GENERIC_MX_15_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -46,7 +46,7 @@ fromtext_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_mx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_mx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -73,7 +73,7 @@ totext_mx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -105,7 +105,7 @@ fromwire_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_mx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_mx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -132,7 +132,7 @@ towire_mx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -163,7 +163,7 @@ compare_mx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ fromstruct_mx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 15);
|
REQUIRE(rdata->type == 15);
|
||||||
@ -189,13 +189,13 @@ tostruct_mx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_mx(void *source) {
|
freestruct_mx(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_mx(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_mx(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: ns_2.c,v 1.15 1999/08/03 01:21:23 halley Exp $ */
|
/* $Id: ns_2.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_NS_2_C
|
#ifndef RDATA_GENERIC_NS_2_C
|
||||||
#define RDATA_GENERIC_NS_2_C
|
#define RDATA_GENERIC_NS_2_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_ns(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_ns(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_ns(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_ns(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_ns(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_ns(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_ns(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_ns(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
dns_rdata_ns_t *ns = target;
|
dns_rdata_ns_t *ns = target;
|
||||||
@ -162,13 +162,13 @@ tostruct_ns(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_ns(void *source) {
|
freestruct_ns(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
/* No action required. */
|
/* No action required. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_ns(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_ns(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: null_10.c,v 1.11 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: null_10.c,v 1.12 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_NULL_10_C
|
#ifndef RDATA_GENERIC_NULL_10_C
|
||||||
#define RDATA_GENERIC_NULL_10_C
|
#define RDATA_GENERIC_NULL_10_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -38,7 +38,7 @@ fromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -53,7 +53,7 @@ totext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -70,7 +70,7 @@ fromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 10);
|
REQUIRE(rdata->type == 10);
|
||||||
@ -81,7 +81,7 @@ towire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
|
|
||||||
REQUIRE(rdata1->type == rdata1->type);
|
REQUIRE(rdata1->type == rdata1->type);
|
||||||
@ -91,7 +91,7 @@ compare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -106,7 +106,7 @@ fromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
dns_rdata_null_t *null = target;
|
dns_rdata_null_t *null = target;
|
||||||
|
|
||||||
@ -122,13 +122,13 @@ tostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_null(void *source) {
|
freestruct_null(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
/* No action required. */
|
/* No action required. */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_null(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_null(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nxt_30.c,v 1.12 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: nxt_30.c,v 1.13 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2065 */
|
/* RFC 2065 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_NXT_30_C
|
#ifndef RDATA_GENERIC_NXT_30_C
|
||||||
#define RDATA_GENERIC_NXT_30_C
|
#define RDATA_GENERIC_NXT_30_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -73,7 +73,7 @@ fromtext_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, bm, n));
|
return (mem_tobuffer(target, bm, n));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -118,7 +118,7 @@ totext_nxt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (str_totext(")", target));
|
return (str_totext(")", target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -146,7 +146,7 @@ fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_nxt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_nxt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
@ -167,7 +167,7 @@ towire_nxt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -192,7 +192,7 @@ compare_nxt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -207,7 +207,7 @@ fromstruct_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 30);
|
REQUIRE(rdata->type == 30);
|
||||||
@ -218,7 +218,7 @@ tostruct_nxt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_nxt(void *source) {
|
freestruct_nxt(void *source) {
|
||||||
dns_rdata_nxt_t *nxt = source;
|
dns_rdata_nxt_t *nxt = source;
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ freestruct_nxt(void *source) {
|
|||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_nxt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_nxt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: proforma.c,v 1.12 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: proforma.c,v 1.13 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_#_#_C
|
#ifndef RDATA_GENERIC_#_#_C
|
||||||
#define RDATA_GENERIC_#_#_C
|
#define RDATA_GENERIC_#_#_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||||
@ -34,7 +34,7 @@ fromtext_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_#(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_#(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -45,7 +45,7 @@ totext_#(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||||
@ -61,7 +61,7 @@ fromwire_#(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_#(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_#(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == #);
|
REQUIRE(rdata->type == #);
|
||||||
@ -75,7 +75,7 @@ towire_#(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_#(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_#(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -90,7 +90,7 @@ compare_#(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target) {
|
isc_buffer_t *target) {
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ fromstruct_#(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == #);
|
REQUIRE(rdata->type == #);
|
||||||
@ -109,7 +109,7 @@ tostruct_#(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_#(void *source) {
|
freestruct_#(void *source) {
|
||||||
dns_rdata_#_t *# = source;
|
dns_rdata_#_t *# = source;
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ freestruct_#(void *source) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_#(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_#(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: ptr_12.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: ptr_12.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_PTR_12_C
|
#ifndef RDATA_GENERIC_PTR_12_C
|
||||||
#define RDATA_GENERIC_PTR_12_C
|
#define RDATA_GENERIC_PTR_12_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -42,7 +42,7 @@ fromtext_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ totext_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -84,7 +84,7 @@ fromwire_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_ptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_ptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -103,7 +103,7 @@ towire_ptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -126,7 +126,7 @@ compare_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ fromstruct_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 12);
|
REQUIRE(rdata->type == 12);
|
||||||
@ -152,13 +152,13 @@ tostruct_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_ptr(void *source) {
|
freestruct_ptr(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rp_17.c,v 1.9 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: rp_17.c,v 1.10 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_RP_17_C
|
#ifndef RDATA_GENERIC_RP_17_C
|
||||||
#define RDATA_GENERIC_RP_17_C
|
#define RDATA_GENERIC_RP_17_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -49,7 +49,7 @@ fromtext_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_rp(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_rp(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -83,7 +83,7 @@ totext_rp(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -107,7 +107,7 @@ fromwire_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&email, source, dctx, downcase, target));
|
return (dns_name_fromwire(&email, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_rp(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_rp(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
dns_name_t rmail;
|
dns_name_t rmail;
|
||||||
@ -136,7 +136,7 @@ towire_rp(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&rmail, cctx, target));
|
return (dns_name_towire(&rmail, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t region1;
|
isc_region_t region1;
|
||||||
isc_region_t region2;
|
isc_region_t region2;
|
||||||
@ -174,7 +174,7 @@ compare_rp(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -189,7 +189,7 @@ fromstruct_rp(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 17);
|
REQUIRE(rdata->type == 17);
|
||||||
@ -200,13 +200,13 @@ tostruct_rp(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_rp(void *source) {
|
freestruct_rp(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_rp(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_rp(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rt_21.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: rt_21.c,v 1.11 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_RT_21_C
|
#ifndef RDATA_GENERIC_RT_21_C
|
||||||
#define RDATA_GENERIC_RT_21_C
|
#define RDATA_GENERIC_RT_21_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -48,7 +48,7 @@ fromtext_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ totext_rt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -106,7 +106,7 @@ fromwire_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -133,7 +133,7 @@ towire_rt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -164,7 +164,7 @@ compare_rt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -179,7 +179,7 @@ fromstruct_rt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 21);
|
REQUIRE(rdata->type == 21);
|
||||||
@ -190,13 +190,13 @@ tostruct_rt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_rt(void *source) {
|
freestruct_rt(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_rt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: sig_24.c,v 1.15 1999/08/02 22:18:00 halley Exp $ */
|
/* $Id: sig_24.c,v 1.16 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2065 */
|
/* RFC 2065 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_SIG_24_C
|
#ifndef RDATA_GENERIC_SIG_24_C
|
||||||
#define RDATA_GENERIC_SIG_24_C
|
#define RDATA_GENERIC_SIG_24_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -98,7 +98,7 @@ fromtext_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (isc_base64_tobuffer(lexer, target, -1));
|
return (isc_base64_tobuffer(lexer, target, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -184,7 +184,7 @@ totext_sig(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return DNS_R_SUCCESS;
|
return DNS_R_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -227,7 +227,7 @@ fromwire_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return(mem_tobuffer(target, sr.base, sr.length));
|
return(mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_sig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_sig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
@ -262,7 +262,7 @@ towire_sig(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -302,7 +302,7 @@ compare_sig(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -317,7 +317,7 @@ fromstruct_sig(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 24);
|
REQUIRE(rdata->type == 24);
|
||||||
@ -328,13 +328,13 @@ tostruct_sig(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_sig(void *source) {
|
freestruct_sig(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_sig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_sig(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: soa_6.c,v 1.20 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: soa_6.c,v 1.21 1999/08/12 01:32:31 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_SOA_6_C
|
#ifndef RDATA_GENERIC_SOA_6_C
|
||||||
#define RDATA_GENERIC_SOA_6_C
|
#define RDATA_GENERIC_SOA_6_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -59,7 +59,7 @@ static char *soa_fieldnames[5] = {
|
|||||||
"serial", "refresh", "retry", "expire", "minimum"
|
"serial", "refresh", "retry", "expire", "minimum"
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -128,7 +128,7 @@ totext_soa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -167,7 +167,7 @@ fromwire_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sregion;
|
isc_region_t sregion;
|
||||||
isc_region_t tregion;
|
isc_region_t tregion;
|
||||||
@ -202,7 +202,7 @@ towire_soa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t region1;
|
isc_region_t region1;
|
||||||
isc_region_t region2;
|
isc_region_t region2;
|
||||||
@ -246,7 +246,7 @@ compare_soa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(®ion1, ®ion2));
|
return (compare_region(®ion1, ®ion2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -260,7 +260,7 @@ fromstruct_soa(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
dns_rdata_soa_t *soa = target;
|
dns_rdata_soa_t *soa = target;
|
||||||
@ -296,7 +296,7 @@ tostruct_soa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_soa(void *source) {
|
freestruct_soa(void *source) {
|
||||||
dns_rdata_soa_t *soa = source;
|
dns_rdata_soa_t *soa = source;
|
||||||
|
|
||||||
@ -305,7 +305,7 @@ freestruct_soa(void *source) {
|
|||||||
/* No action required */
|
/* No action required */
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_soa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: tkey_249.c,v 1.13 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: tkey_249.c,v 1.14 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-dnssec-tkey-01.txt */
|
/* draft-ietf-dnssec-tkey-01.txt */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_TKEY_249_C
|
#ifndef RDATA_GENERIC_TKEY_249_C
|
||||||
#define RDATA_GENERIC_TKEY_249_C
|
#define RDATA_GENERIC_TKEY_249_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -92,7 +92,7 @@ fromtext_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (isc_base64_tobuffer(lexer, target, token.value.as_ulong));
|
return (isc_base64_tobuffer(lexer, target, token.value.as_ulong));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_tkey(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_tkey(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ totext_tkey(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (isc_base64_totext(&sr, 60, " ", target));
|
return (isc_base64_totext(&sr, 60, " ", target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -231,7 +231,7 @@ fromwire_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, n + 2));
|
return (mem_tobuffer(target, sr.base, n + 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_tkey(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_tkey(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
@ -253,7 +253,7 @@ towire_tkey(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_tkey(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_tkey(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -279,7 +279,7 @@ compare_tkey(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target) {
|
void *source, isc_buffer_t *target) {
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ fromstruct_tkey(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 249);
|
REQUIRE(rdata->type == 249);
|
||||||
@ -304,13 +304,13 @@ tostruct_tkey(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_tkey(void *source) {
|
freestruct_tkey(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_tkey(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_tkey(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: txt_16.c,v 1.13 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: txt_16.c,v 1.14 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_TXT_16_C
|
#ifndef RDATA_GENERIC_TXT_16_C
|
||||||
#define RDATA_GENERIC_TXT_16_C
|
#define RDATA_GENERIC_TXT_16_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -46,7 +46,7 @@ fromtext_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_txt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_txt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ totext_txt(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -88,7 +88,7 @@ fromwire_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_txt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_txt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ towire_txt(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -119,7 +119,7 @@ compare_txt(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -134,7 +134,7 @@ fromstruct_txt(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 16);
|
REQUIRE(rdata->type == 16);
|
||||||
@ -145,13 +145,13 @@ tostruct_txt(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_txt(void *source) {
|
freestruct_txt(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_txt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_txt(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: unspec_103.c,v 1.6 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: unspec_103.c,v 1.7 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_UNSPEC_103_C
|
#ifndef RDATA_GENERIC_UNSPEC_103_C
|
||||||
#define RDATA_GENERIC_UNSPEC_103_C
|
#define RDATA_GENERIC_UNSPEC_103_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -35,7 +35,7 @@ fromtext_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (atob_tobuffer(lexer, target));
|
return (atob_tobuffer(lexer, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_unspec(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_unspec(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@ totext_unspec(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (btoa_totext(rdata->data, rdata->length, target));
|
return (btoa_totext(rdata->data, rdata->length, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -65,7 +65,7 @@ fromwire_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_unspec(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_unspec(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 103);
|
REQUIRE(rdata->type == 103);
|
||||||
@ -75,7 +75,7 @@ towire_unspec(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -89,7 +89,7 @@ compare_unspec(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -104,7 +104,7 @@ fromstruct_unspec(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 103);
|
REQUIRE(rdata->type == 103);
|
||||||
@ -115,13 +115,13 @@ tostruct_unspec(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_unspec(void *source) {
|
freestruct_unspec(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_unspec(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_unspec(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: x25_19.c,v 1.6 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: x25_19.c,v 1.7 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1183 */
|
/* RFC 1183 */
|
||||||
|
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -46,7 +46,7 @@ fromtext_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (txt_fromtext(&token.value.as_textregion, target));
|
return (txt_fromtext(&token.value.as_textregion, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_x25(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_x25(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@ totext_x25(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (txt_totext(®ion, target));
|
return (txt_totext(®ion, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -75,7 +75,7 @@ fromwire_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (txt_fromwire(source, target));
|
return (txt_fromwire(source, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_x25(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_x25(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 19);
|
REQUIRE(rdata->type == 19);
|
||||||
@ -85,7 +85,7 @@ towire_x25(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
int l;
|
int l;
|
||||||
int result;
|
int result;
|
||||||
@ -105,7 +105,7 @@ compare_x25(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ fromstruct_x25(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 19);
|
REQUIRE(rdata->type == 19);
|
||||||
@ -131,13 +131,13 @@ tostruct_x25(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_x25(void *source) {
|
freestruct_x25(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_x25(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_x25(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: a6_38.c,v 1.12 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: a6_38.c,v 1.13 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
/* draft-ietf-ipngwg-dns-lookups-03.txt */
|
||||||
|
|
||||||
@ -30,7 +30,7 @@
|
|||||||
#define MAX(A, B) ((A > B) ? (A) : (B))
|
#define MAX(A, B) ((A > B) ? (A) : (B))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -79,7 +79,7 @@ fromtext_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_a6(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_a6(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -131,7 +131,7 @@ totext_in_a6(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -179,7 +179,7 @@ fromwire_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_a6(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_a6(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
@ -210,7 +210,7 @@ towire_in_a6(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
int result;
|
int result;
|
||||||
unsigned char prefixlen;
|
unsigned char prefixlen;
|
||||||
@ -244,7 +244,7 @@ compare_in_a6(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -258,7 +258,7 @@ fromstruct_in_a6(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 38);
|
REQUIRE(rdata->type == 38);
|
||||||
@ -270,13 +270,13 @@ tostruct_in_a6(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_a6(void *source) {
|
freestruct_in_a6(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_a6(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_a6(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: a_1.c,v 1.17 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: a_1.c,v 1.18 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_A_1_C
|
#ifndef RDATA_IN_1_A_1_C
|
||||||
#define RDATA_IN_1_A_1_C
|
#define RDATA_IN_1_A_1_C
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <isc/net.h>
|
#include <isc/net.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -51,7 +51,7 @@ fromtext_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_a(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_a(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -72,7 +72,7 @@ totext_in_a(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -100,7 +100,7 @@ fromwire_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_a(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_a(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ towire_in_a(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ compare_in_a(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -147,7 +147,7 @@ fromstruct_in_a(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 1);
|
REQUIRE(rdata->type == 1);
|
||||||
@ -159,14 +159,14 @@ tostruct_in_a(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_a(void *source) {
|
freestruct_in_a(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_a(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_a(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: aaaa_28.c,v 1.11 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: aaaa_28.c,v 1.12 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1886 */
|
/* RFC 1886 */
|
||||||
|
|
||||||
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <isc/net.h>
|
#include <isc/net.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -53,7 +53,7 @@ fromtext_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_aaaa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_aaaa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ totext_in_aaaa(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -102,7 +102,7 @@ fromwire_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_aaaa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_aaaa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ towire_in_aaaa(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ compare_in_aaaa(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (result);
|
return (result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target)
|
void *source, isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -149,7 +149,7 @@ fromstruct_in_aaaa(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 28);
|
REQUIRE(rdata->type == 28);
|
||||||
@ -161,13 +161,13 @@ tostruct_in_aaaa(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_aaaa(void *source) {
|
freestruct_in_aaaa(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_aaaa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_aaaa(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: kx_36.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: kx_36.c,v 1.11 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2230 */
|
/* RFC 2230 */
|
||||||
|
|
||||||
#ifndef RDATA_GENERIC_KX_36_C
|
#ifndef RDATA_GENERIC_KX_36_C
|
||||||
#define RDATA_GENERIC_KX_36_C
|
#define RDATA_GENERIC_KX_36_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -45,7 +45,7 @@ fromtext_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_kx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_kx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -74,7 +74,7 @@ totext_in_kx(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -100,7 +100,7 @@ fromwire_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_kx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_kx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -123,7 +123,7 @@ towire_in_kx(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -155,7 +155,7 @@ compare_in_kx(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -169,7 +169,7 @@ fromstruct_in_kx(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 36);
|
REQUIRE(rdata->type == 36);
|
||||||
@ -181,14 +181,14 @@ tostruct_in_kx(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_kx(void *source) {
|
freestruct_in_kx(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_kx(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_kx(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: naptr_35.c,v 1.10 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: naptr_35.c,v 1.11 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2168 */
|
/* RFC 2168 */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_NAPTR_35_C
|
#ifndef RDATA_IN_1_NAPTR_35_C
|
||||||
#define RDATA_IN_1_NAPTR_35_C
|
#define RDATA_IN_1_NAPTR_35_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -63,7 +63,7 @@ fromtext_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_naptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_naptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -113,7 +113,7 @@ totext_in_naptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -151,7 +151,7 @@ fromwire_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_naptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_naptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
@ -187,7 +187,7 @@ towire_in_naptr(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target)
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -241,7 +241,7 @@ compare_in_naptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target)
|
void *source, isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -255,7 +255,7 @@ fromstruct_in_naptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 35);
|
REQUIRE(rdata->type == 35);
|
||||||
@ -267,13 +267,13 @@ tostruct_in_naptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_naptr(void *source) {
|
freestruct_in_naptr(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_naptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_naptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nsap-ptr_23.c,v 1.8 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: nsap-ptr_23.c,v 1.9 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1348 */
|
/* RFC 1348 */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_NSAP_PTR_23_C
|
#ifndef RDATA_IN_1_NSAP_PTR_23_C
|
||||||
#define RDATA_IN_1_NSAP_PTR_23_C
|
#define RDATA_IN_1_NSAP_PTR_23_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -43,7 +43,7 @@ fromtext_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_nsap_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_nsap_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ totext_in_nsap_ptr(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (dns_name_totext(&prefix, sub, target));
|
return (dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -85,7 +85,7 @@ fromwire_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_nsap_ptr(dns_rdata_t *rdata, dns_compress_t *cctx,
|
towire_in_nsap_ptr(dns_rdata_t *rdata, dns_compress_t *cctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -107,7 +107,7 @@ towire_in_nsap_ptr(dns_rdata_t *rdata, dns_compress_t *cctx,
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_nsap_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_nsap_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -131,7 +131,7 @@ compare_in_nsap_ptr(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target)
|
void *source, isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -145,7 +145,7 @@ fromstruct_in_nsap_ptr(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 23);
|
REQUIRE(rdata->type == 23);
|
||||||
@ -157,13 +157,13 @@ tostruct_in_nsap_ptr(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_nsap_ptr(void *source) {
|
freestruct_in_nsap_ptr(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE);
|
REQUIRE(ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_nsap_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_nsap_ptr(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: nsap_22.c,v 1.7 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: nsap_22.c,v 1.8 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 1706 */
|
/* RFC 1706 */
|
||||||
|
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target) {
|
isc_boolean_t downcase, isc_buffer_t *target) {
|
||||||
@ -71,7 +71,7 @@ fromtext_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_nsap(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_nsap(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ totext_in_nsap(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -114,7 +114,7 @@ fromwire_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, region.base, region.length));
|
return (mem_tobuffer(target, region.base, region.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_nsap(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_nsap(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 22);
|
REQUIRE(rdata->type == 22);
|
||||||
@ -125,7 +125,7 @@ towire_in_nsap(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, rdata->data, rdata->length));
|
return (mem_tobuffer(target, rdata->data, rdata->length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -140,7 +140,7 @@ compare_in_nsap(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
void *source, isc_buffer_t *target)
|
void *source, isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -154,7 +154,7 @@ fromstruct_in_nsap(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 22);
|
REQUIRE(rdata->type == 22);
|
||||||
@ -166,13 +166,13 @@ tostruct_in_nsap(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_nsap(void *source) {
|
freestruct_in_nsap(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_nsap(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_nsap(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: px_26.c,v 1.8 1999/08/02 22:18:01 halley Exp $ */
|
/* $Id: px_26.c,v 1.9 1999/08/12 01:32:32 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2163 */
|
/* RFC 2163 */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_PX_26_C
|
#ifndef RDATA_IN_1_PX_26_C
|
||||||
#define RDATA_IN_1_PX_26_C
|
#define RDATA_IN_1_PX_26_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -55,7 +55,7 @@ fromtext_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_px(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_px(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -93,7 +93,7 @@ totext_in_px(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -125,7 +125,7 @@ fromwire_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_px(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_px(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t region;
|
isc_region_t region;
|
||||||
@ -155,7 +155,7 @@ towire_in_px(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_px(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_px(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -197,7 +197,7 @@ compare_in_px(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -211,7 +211,7 @@ fromstruct_in_px(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 26);
|
REQUIRE(rdata->type == 26);
|
||||||
@ -223,14 +223,14 @@ tostruct_in_px(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_px(void *source) {
|
freestruct_in_px(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_px(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_px(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: srv_33.c,v 1.9 1999/08/03 20:55:19 halley Exp $ */
|
/* $Id: srv_33.c,v 1.10 1999/08/12 01:32:33 halley Exp $ */
|
||||||
|
|
||||||
/* RFC 2052 bis */
|
/* RFC 2052 bis */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_SRV_33_C
|
#ifndef RDATA_IN_1_SRV_33_C
|
||||||
#define RDATA_IN_1_SRV_33_C
|
#define RDATA_IN_1_SRV_33_C
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -55,7 +55,7 @@ fromtext_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
return (dns_name_fromtext(&name, &buffer, origin, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_srv(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_srv(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -100,7 +100,7 @@ totext_in_srv(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return(dns_name_totext(&prefix, sub, target));
|
return(dns_name_totext(&prefix, sub, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -129,7 +129,7 @@ fromwire_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
return (dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_srv(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_srv(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
dns_name_t name;
|
dns_name_t name;
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
@ -152,7 +152,7 @@ towire_in_srv(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (dns_name_towire(&name, cctx, target));
|
return (dns_name_towire(&name, cctx, target));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_srv(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_srv(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
dns_name_t name1;
|
dns_name_t name1;
|
||||||
dns_name_t name2;
|
dns_name_t name2;
|
||||||
@ -186,7 +186,7 @@ compare_in_srv(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (dns_name_rdatacompare(&name1, &name2));
|
return (dns_name_rdatacompare(&name1, &name2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -200,7 +200,7 @@ fromstruct_in_srv(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 33);
|
REQUIRE(rdata->type == 33);
|
||||||
@ -212,13 +212,13 @@ tostruct_in_srv(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_srv(void *source) {
|
freestruct_in_srv(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_srv(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_srv(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: wks_11.c,v 1.14 1999/08/02 22:18:02 halley Exp $ */
|
/* $Id: wks_11.c,v 1.15 1999/08/12 01:32:33 halley Exp $ */
|
||||||
|
|
||||||
#ifndef RDATA_IN_1_WKS_11_C
|
#ifndef RDATA_IN_1_WKS_11_C
|
||||||
#define RDATA_IN_1_WKS_11_C
|
#define RDATA_IN_1_WKS_11_C
|
||||||
@ -27,7 +27,7 @@
|
|||||||
#include <isc/net.h>
|
#include <isc/net.h>
|
||||||
#include <isc/netdb.h>
|
#include <isc/netdb.h>
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromtext_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromtext_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_lex_t *lexer, dns_name_t *origin,
|
isc_lex_t *lexer, dns_name_t *origin,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -107,7 +107,7 @@ fromtext_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (mem_tobuffer(target, bm, n));
|
return (mem_tobuffer(target, bm, n));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -148,7 +148,7 @@ totext_in_wks(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromwire_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
fromwire_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
||||||
isc_buffer_t *source, dns_decompress_t *dctx,
|
isc_buffer_t *source, dns_decompress_t *dctx,
|
||||||
isc_boolean_t downcase, isc_buffer_t *target)
|
isc_boolean_t downcase, isc_buffer_t *target)
|
||||||
@ -178,7 +178,7 @@ fromwire_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||||||
return (DNS_R_SUCCESS);
|
return (DNS_R_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
towire_in_wks(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
towire_in_wks(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
||||||
isc_region_t sr;
|
isc_region_t sr;
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ towire_in_wks(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target) {
|
|||||||
return (mem_tobuffer(target, sr.base, sr.length));
|
return (mem_tobuffer(target, sr.base, sr.length));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static inline int
|
||||||
compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
||||||
isc_region_t r1;
|
isc_region_t r1;
|
||||||
isc_region_t r2;
|
isc_region_t r2;
|
||||||
@ -206,7 +206,7 @@ compare_in_wks(dns_rdata_t *rdata1, dns_rdata_t *rdata2) {
|
|||||||
return (compare_region(&r1, &r2));
|
return (compare_region(&r1, &r2));
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
||||||
isc_buffer_t *target)
|
isc_buffer_t *target)
|
||||||
{
|
{
|
||||||
@ -221,7 +221,7 @@ fromstruct_in_wks(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
||||||
|
|
||||||
REQUIRE(rdata->type == 11);
|
REQUIRE(rdata->type == 11);
|
||||||
@ -233,13 +233,13 @@ tostruct_in_wks(dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
|
|||||||
return (DNS_R_NOTIMPLEMENTED);
|
return (DNS_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static inline void
|
||||||
freestruct_in_wks(void *source) {
|
freestruct_in_wks(void *source) {
|
||||||
REQUIRE(source != NULL);
|
REQUIRE(source != NULL);
|
||||||
REQUIRE(ISC_FALSE); /*XXX*/
|
REQUIRE(ISC_FALSE); /*XXX*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static dns_result_t
|
static inline dns_result_t
|
||||||
additionaldata_in_wks(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
additionaldata_in_wks(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user