/*
- * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2007, 2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
/*
- * Copyright (C) 2004-2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2007, 2011-2013 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
/*
- * Copyright (C) 2004-2008, 2012 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2008, 2012, 2013 Internet Systems Consortium, Inc. ("ISC")
*
* 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 (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2006, 2007, 2013 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
/*
* Acache
- *
+ *
* The Additional Cache Object
*
* This module manages internal caching entries that correspond to
* - 76 bytes for each additional cache entry
* - if the entry has a DNS name and associated RRset,
* * 44 bytes + size of the name (1-255 bytes)
- * * 52 bytes x number_of_RRs
+ * * 52 bytes x number_of_RRs
* - 28 bytes for each DB related to this module
*
* Using the additional cache also requires extra memory consumption in
*
* *targetp is attached to 'source'.
*/
-
+
void
dns_acache_detachentry(dns_acacheentry_t **entryp);
/*
*
* *entryp is NULL.
*
- * If '*entryp' is the last reference to the entry,
+ * If '*entryp' is the last reference to the entry,
* cache does not have an outstanding task, all resources used by the
* entry (including the entry object itself) will be freed.
*/
/*
- * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
hit_len = uint8_fromregion(®ion);
isc_region_consume(®ion, 1);
-
+
algorithm = uint8_fromregion(®ion);
isc_region_consume(®ion, 1);
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
RETERR(str_totext("( ", target));
-
+
/*
* Algorithm
*/
RETERR(uint16_tobuffer(hip->key_len, target));
RETERR(mem_tobuffer(target, hip->hit, hip->hit_len));
RETERR(mem_tobuffer(target, hip->key, hip->key_len));
-
+
myhip = *hip;
for (result = dns_rdata_hip_first(&myhip);
result == ISC_R_SUCCESS;
cleanup:
if (hip->hit != NULL)
- isc_mem_free(mctx, hip->hit);
+ isc_mem_free(mctx, hip->hit);
if (hip->key != NULL)
- isc_mem_free(mctx, hip->key);
+ isc_mem_free(mctx, hip->key);
if (hip->servers != NULL)
- isc_mem_free(mctx, hip->servers);
+ isc_mem_free(mctx, hip->servers);
return (ISC_R_NOMEMORY);
}
if (hip->mctx == NULL)
return;
- isc_mem_free(hip->mctx, hip->hit);
- isc_mem_free(hip->mctx, hip->key);
+ isc_mem_free(hip->mctx, hip->hit);
+ isc_mem_free(hip->mctx, hip->key);
if (hip->servers != NULL)
- isc_mem_free(hip->mctx, hip->servers);
+ isc_mem_free(hip->mctx, hip->servers);
hip->mctx = NULL;
}
/*
- * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above