ssu.c revision 93d6dfaf66258337985427c86181f01fc51f0bb4
/*
* Copyright (C) 2000, 2001 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: ssu.c,v 1.23 2003/09/30 05:56:13 marka Exp $
* Principal Author: Brian Wellington
*/
#include <config.h>
struct dns_ssurule {
unsigned int magic;
unsigned int matchtype; /* which type of pattern match? */
unsigned int ntypes; /* number of data types covered */
/* defaults to all but SIG,SOA,NS if NULL*/
};
struct dns_ssutable {
unsigned int magic;
unsigned int references;
};
return (ISC_R_NOMEMORY);
if (result != ISC_R_SUCCESS) {
return (result);
}
return (ISC_R_SUCCESS);
}
static inline void
}
}
}
}
void
source->references++;
}
void
if (--table->references == 0)
if (done)
}
{
if (matchtype == DNS_SSUMATCHTYPE_WILDCARD)
if (ntypes > 0)
return (ISC_R_NOMEMORY);
goto failure;
}
if (result != ISC_R_SUCCESS)
goto failure;
goto failure;
}
if (result != ISC_R_SUCCESS)
goto failure;
if (ntypes > 0) {
ntypes * sizeof(dns_rdatatype_t));
goto failure;
}
}
else
return (ISC_R_SUCCESS);
}
}
ntypes * sizeof(dns_rdatatype_t));
return (result);
}
static inline isc_boolean_t
type != dns_rdatatype_soa &&
type != dns_rdatatype_rrsig));
}
{
unsigned int i;
return (ISC_FALSE);
{
continue;
}
else {
continue;
}
continue;
}
continue;
}
continue;
}
continue;
}
if (!isusertype(type))
continue;
}
else {
break;
}
continue;
}
}
return (ISC_FALSE);
}
}
}
unsigned int
}
}
unsigned int
}
}
}