a6_38.h revision b8ea456f924807e4fa076f6f5285d7774fb0ffc7
/*
* Copyright (C) 1999 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM 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: a6_38.h,v 1.3 1999/02/09 07:52:32 marka Exp $ */
#ifndef RDATA_IN_1_A6_28_H
#define RDATA_IN_1_A6_28_H
#include <string.h>
#ifndef MAX
#define MAX(A, B) ((A > B) ? (A) : (B))
#endif
static dns_result_t
{
unsigned char addr[16];
unsigned char prefixlen;
unsigned char octets;
unsigned char mask;
/* prefix length */
return (DNS_R_RANGE);
/* suffix */
if (prefixlen != 128) {
/* prefix 0..127 */
/* octets 0..15 */
ISC_FALSE));
return (DNS_R_BADAAAA);
}
if (prefixlen == 0)
return (DNS_R_SUCCESS);
}
static dns_result_t
unsigned char addr[16];
unsigned char prefixlen;
unsigned char octets;
unsigned char mask;
char buf[sizeof "128"];
if (prefixlen != 128) {
return (DNS_R_NOSPACE);
}
if (prefixlen == 0)
return (DNS_R_SUCCESS);
}
static dns_result_t
unsigned char prefixlen;
unsigned char octets;
unsigned char mask;
/* prefix length */
return (DNS_R_UNEXPECTEDEND);
if (prefixlen > 128)
return (DNS_R_RANGE);
/* suffix */
if (prefixlen != 128) {
return (DNS_R_UNEXPECTEDEND);
}
if (prefixlen == 0)
return (DNS_R_SUCCESS);
}
static dns_result_t
unsigned char prefixlen;
unsigned char octets;
if (prefixlen == 0)
return (DNS_R_SUCCESS);
}
static int
int result;
unsigned char prefixlen;
unsigned char octets;
if (result != 0)
}
static dns_result_t
isc_buffer_t *target) {
return (DNS_R_NOTIMPLEMENTED);
}
static dns_result_t
return (DNS_R_NOTIMPLEMENTED);
}
#endif /* RDATA_IN_1_A6_38_H */