apl_42.c revision f731b5d665e484c9b9634531c791cee9d87ab7a0
/*
* Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2002 Internet Software Consortium.
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: apl_42.c,v 1.14 2008/01/22 23:28:04 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 char addr[16];
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
unsigned char buf[16];
char txt[sizeof(" !64000")];
const char *sep = "";
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);
}
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);
}
#endif /* RDATA_IN_1_APL_42_C */