/*
* Copyright (C) 2002, 2004, 2005, 2007-2009, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: apl_42.c,v 1.16 2009/12/04 22:06:37 tbox Exp $ */
/* RFC3123 */
#ifndef RDATA_IN_1_APL_42_C
#define RDATA_IN_1_APL_42_C
#define RRTYPE_APL_ATTRIBUTES (0)
static inline isc_result_t
unsigned long afi;
int n;
do {
break;
if (neg)
cp++;
if (afi > 0xffffU)
switch (afi) {
case 1:
*slash = '\0';
*slash = '/';
if (n != 1)
if (prefix > 32)
break;
break;
case 2:
*slash = '\0';
*slash = '/';
if (n != 1)
if (prefix > 128)
break;
break;
default:
}
} while (1);
/*
*/
return (ISC_R_SUCCESS);
}
static inline isc_result_t
int n;
switch (afi) {
case 1:
break;
case 2:
break;
default:
return (ISC_R_NOTIMPLEMENTED);
}
sep = " ";
}
return (ISC_R_SUCCESS);
}
static inline isc_result_t
return (ISC_R_NOSPACE);
/* Zero or more items */
return (ISC_R_UNEXPECTEDEND);
return (ISC_R_UNEXPECTEDEND);
switch (afi) {
case 1:
return (ISC_R_RANGE);
break;
case 2:
return (ISC_R_RANGE);
}
return (DNS_R_FORMERR);
}
}
static inline isc_result_t
}
static inline int
}
static inline isc_result_t
isc_buffer_t b;
}
static inline isc_result_t
isc_region_t r;
dns_rdata_toregion(rdata, &r);
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
}
static inline void
return;
}
/*
* If no APL return ISC_R_NOMORE.
*/
return (ISC_R_NOMORE);
/*
* Sanity check data.
*/
return (ISC_R_SUCCESS);
}
/*
* No APL or have already reached the end return ISC_R_NOMORE.
*/
return (ISC_R_NOMORE);
/*
* Sanity check data.
*/
/*
* 16 to 32 bits promotion as 'length' is 32 bits so there is
* no overflow problems.
*/
}
return (ISC_R_NOMORE);
/*
* Sanity check data.
*/
/*
* 16 to 32 bits promotion as 'length' is 32 bits so there is
* no overflow problems.
*/
else
return (ISC_R_SUCCESS);
}
unsigned int
}
static inline isc_result_t
(void)add;
(void)arg;
return (ISC_R_SUCCESS);
}
static inline isc_result_t
isc_region_t r;
dns_rdata_toregion(rdata, &r);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline isc_boolean_t
return (ISC_TRUE);
}
static inline int
}
#endif /* RDATA_IN_1_APL_42_C */