/usr/include/dns
NameSizeModeActions
acl.h64320644editdlrm
adb.h183720644editdlrm
byaddr.h45130644editdlrm
cache.h75910644editdlrm
callbacks.h22400644editdlrm
cert.h19870644editdlrm
compress.h62240644editdlrm
db.h413020644editdlrm
dbiterator.h78710644editdlrm
dbtable.h36910644editdlrm
diff.h76280644editdlrm
dispatch.h135660644editdlrm
dlz.h111520644editdlrm
dnssec.h111010644editdlrm
ds.h19120644editdlrm
dynamic_db.h18920644editdlrm
enumclass.h17870644editdlrm
enumtype.h67290644editdlrm
events.h39590644editdlrm
fixedname.h22370644editdlrm
forward.h36050644editdlrm
iptable.h19220644editdlrm
journal.h84730644editdlrm
keyflags.h18030644editdlrm
keytable.h102120644editdlrm
keyvalues.h43180644editdlrm
lib.h17180644editdlrm
log.h41430644editdlrm
master.h93960644editdlrm
masterdump.h96570644editdlrm
message.h379720644editdlrm
name.h358620644editdlrm
ncache.h51840644editdlrm
nsec.h23280644editdlrm
peer.h54370644editdlrm
portlist.h25390644editdlrm
private.h19120644editdlrm
rbt.h345260644editdlrm
rcode.h30030644editdlrm
rdata.h213330644editdlrm
rdataclass.h23170644editdlrm
rdatalist.h28950644editdlrm
rdataset.h198240644editdlrm
rdatasetiter.h44550644editdlrm
rdataslab.h46790644editdlrm
rdatastruct.h778580644editdlrm
rdatatype.h23710644editdlrm
request.h104480644editdlrm
resolver.h162480644editdlrm
result.h84930644editdlrm
rootns.h14290644editdlrm
rpz.h54380644editdlrm
rrl.h69950644editdlrm
sdb.h73410644editdlrm
sdlz.h144400644editdlrm
secalg.h22350644editdlrm
secproto.h20820644editdlrm
soa.h27500644editdlrm
ssu.h67730644editdlrm
tcpmsg.h36490644editdlrm
time.h20930644editdlrm
tkey.h81450644editdlrm
tsig.h87270644editdlrm
ttl.h21260644editdlrm
types.h122950644editdlrm
validator.h75240644editdlrm
version.h12070644editdlrm
view.h290370644editdlrm
xfrin.h31300644editdlrm
zone.h462000644editdlrm
zonekey.h12830644editdlrm
zt.h46440644editdlrm
Edit: /usr/include/dns/ncache.h (5184B)
/* * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and/or 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 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: ncache.h,v 1.29 2010-05-14 23:50:40 tbox Exp $ */ #ifndef DNS_NCACHE_H #define DNS_NCACHE_H 1 /***** ***** Module Info *****/ /*! \file dns/ncache.h *\brief * DNS Ncache * * XXX TBS XXX * * MP: *\li The caller must ensure any required synchronization. * * Reliability: *\li No anticipated impact. * * Resources: *\li TBS * * Security: *\li No anticipated impact. * * Standards: *\li RFC2308 */ #include #include #include ISC_LANG_BEGINDECLS /*% * _OMITDNSSEC: * Omit DNSSEC records when rendering. */ #define DNS_NCACHETOWIRE_OMITDNSSEC 0x0001 isc_result_t dns_ncache_add(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node, dns_rdatatype_t covers, isc_stdtime_t now, dns_ttl_t maxttl, dns_rdataset_t *addedrdataset); isc_result_t dns_ncache_addoptout(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node, dns_rdatatype_t covers, isc_stdtime_t now, dns_ttl_t maxttl, isc_boolean_t optout, dns_rdataset_t *addedrdataset); /*%< * Convert the authority data from 'message' into a negative cache * rdataset, and store it in 'cache' at 'node' with a TTL limited to * 'maxttl'. * * The 'covers' argument is the RR type whose nonexistence we are caching, * or dns_rdatatype_any when caching a NXDOMAIN response. * * 'optout' indicates a DNS_RDATASETATTR_OPTOUT should be set. * * Note: *\li If 'addedrdataset' is not NULL, then it will be attached to the added * rdataset. See dns_db_addrdataset() for more details. * * Requires: *\li 'message' is a valid message with a properly formatting negative cache * authority section. * *\li The requirements of dns_db_addrdataset() apply to 'cache', 'node', * 'now', and 'addedrdataset'. * * Returns: *\li #ISC_R_SUCCESS *\li #ISC_R_NOSPACE * *\li Any result code of dns_db_addrdataset() is a possible result code * of dns_ncache_add(). */ isc_result_t dns_ncache_towire(dns_rdataset_t *rdataset, dns_compress_t *cctx, isc_buffer_t *target, unsigned int options, unsigned int *countp); /*%< * Convert the negative caching rdataset 'rdataset' to wire format, * compressing names as specified in 'cctx', and storing the result in * 'target'. If 'omit_dnssec' is set, DNSSEC records will not * be added to 'target'. * * Notes: *\li The number of RRs added to target will be added to *countp. * * Requires: *\li 'rdataset' is a valid negative caching rdataset. * *\li 'rdataset' is not empty. * *\li 'countp' is a valid pointer. * * Ensures: *\li On a return of ISC_R_SUCCESS, 'target' contains a wire format * for the data contained in 'rdataset'. Any error return leaves * the buffer unchanged. * *\li *countp has been incremented by the number of RRs added to * target. * * Returns: *\li #ISC_R_SUCCESS - all ok *\li #ISC_R_NOSPACE - 'target' doesn't have enough room * *\li Any error returned by dns_rdata_towire(), dns_rdataset_next(), * dns_name_towire(). */ isc_result_t dns_ncache_getrdataset(dns_rdataset_t *ncacherdataset, dns_name_t *name, dns_rdatatype_t type, dns_rdataset_t *rdataset); /*%< * Search the negative caching rdataset for an rdataset with the * specified name and type. * * Requires: *\li 'ncacherdataset' is a valid negative caching rdataset. * *\li 'ncacherdataset' is not empty. * *\li 'name' is a valid name. * *\li 'type' is not SIG, or a meta-RR type. * *\li 'rdataset' is a valid disassociated rdataset. * * Ensures: *\li On a return of ISC_R_SUCCESS, 'rdataset' is bound to the found * rdataset. * * Returns: *\li #ISC_R_SUCCESS - the rdataset was found. *\li #ISC_R_NOTFOUND - the rdataset was not found. * */ isc_result_t dns_ncache_getsigrdataset(dns_rdataset_t *ncacherdataset, dns_name_t *name, dns_rdatatype_t covers, dns_rdataset_t *rdataset); /*%< * Similar to dns_ncache_getrdataset() but get the rrsig that matches. */ void dns_ncache_current(dns_rdataset_t *ncacherdataset, dns_name_t *found, dns_rdataset_t *rdataset); /*%< * Extract the current rdataset and name from a ncache entry. * * Requires: * \li 'ncacherdataset' to be valid and to be a negative cache entry * \li 'found' to be valid. * \li 'rdataset' to be unassociated. */ ISC_LANG_ENDDECLS #endif /* DNS_NCACHE_H */