ssu.c revision 6028d1ce0380d0ba7f6c6ecd1ad20b31ddd1becb
/*
* Copyright (C) 2000 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.10 2000/05/08 19:23:16 tale Exp $
* Principal Author: Brian Wellington
*/
#include <config.h>
struct dns_ssurule {
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 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
return (type != dns_rdatatype_ns &&
type != dns_rdatatype_soa &&
type != dns_rdatatype_sig);
}
{
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
}
}
}