nsec.c revision 6098d364b690cb9dabf96e9664c4689c8559bd2e
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
bef8fcc7b394556b6065db03a01a0e90ff31b9f2Michael Graff * Copyright (C) 1999-2001, 2003 Internet Software Consortium.
587baddc8bfb63880c26fdb8b8637bef9f2ed60eEvan Hunt * Permission to use, copy, modify, and/or distribute this software for any
587baddc8bfb63880c26fdb8b8637bef9f2ed60eEvan Hunt * purpose with or without fee is hereby granted, provided that the above
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * copyright notice and this permission notice appear in all copies.
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8e917272a99871868d3c39746c847a084cb57b3cMark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1cb514f56a6b6424d6943e0afd18244d6f65c5a1Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
df864361fd66b91f0069a2e2aefcf45515103dccMark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
99cbc3d3a4dcbd203146f62e37478aee1c8ee673Evan Hunt * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7d6972ff249cffdef195eccd854059d7d450c7fbEvan Hunt * PERFORMANCE OF THIS SOFTWARE.
7d6972ff249cffdef195eccd854059d7d450c7fbEvan Hunt/* $Id: nsec.c,v 1.10 2008/09/24 02:46:22 marka Exp $ */
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrews#define RETERR(x) do { \
cb616c6d5c2ece1fac37fa6e0bca2b53d4043098Mark Andrewsset_bit(unsigned char *array, unsigned int index, unsigned int bit) {
if (bit != 0)
isc_region_t r;
unsigned int i, window;
int octet;
unsigned int max_type;
return (result);
for (i = 0; i <= max_type; i++) {
return (result);
if (octet < 0)
return (ISC_R_SUCCESS);
0, NULL);
return (result);
return (present);
return (result);
return (ISC_R_SUCCESS);
return (result);
return (result);