/bind-9.11.3/lib/isc/ |
H A D | quota.c | 9 /* $Id: quota.c,v 1.18 2007/06/19 23:47:17 tbox Exp $ */ 17 #include <isc/quota.h> 21 isc_quota_init(isc_quota_t *quota, int max) { argument 22 quota->max = max; 23 quota->used = 0; 24 quota->soft = 0; 25 return (isc_mutex_init("a->lock)); 29 isc_quota_destroy(isc_quota_t *quota) { argument 30 INSIST(quota->used == 0); 31 quota 38 isc_quota_soft(isc_quota_t *quota, int soft) argument 45 isc_quota_max(isc_quota_t *quota, int max) argument 52 isc_quota_reserve(isc_quota_t *quota) argument 68 isc_quota_release(isc_quota_t *quota) argument 76 isc_quota_attach(isc_quota_t *quota, isc_quota_t **p) argument [all...] |
H A D | mem.c | 134 size_t quota; member in struct:isc__mem 256 isc__mem_setquota(isc_mem_t *ctx, size_t quota); 525 * Did we hit the quota for this context? 528 if (ctx->quota != 0U && ctx->total + increment > ctx->quota) 597 * hit the quota for this context. 600 * XXXRTH "At quota" notification here. 653 if (ctx->quota != 0U && ctx->total + size > ctx->quota) { 928 ctx->quota 1675 isc_mem_setquota(isc_mem_t *ctx0, size_t quota) argument 1689 size_t quota; local [all...] |
/bind-9.11.3/lib/isc/include/isc/ |
H A D | quota.h | 9 /* $Id: quota.h,v 1.16 2007/06/19 23:47:18 tbox Exp $ */ 18 /*! \file isc/quota.h 22 * a server. It keeps track of the amount of quota in use, and 24 * share a quota. 50 isc_quota_init(isc_quota_t *quota, int max); 52 * Initialize a quota object. 60 isc_quota_destroy(isc_quota_t *quota); 62 * Destroy a quota object. 66 isc_quota_soft(isc_quota_t *quota, int soft); 68 * Set a soft quota [all...] |
/bind-9.11.3/bin/tests/system/fetchlimit/ |
H A D | tests.sh | 44 # we'll reach 200 at the tenth second, and the quota should have been 55 info=`grep '10.53.0.4' ns3/named_dump.db | sed 's/.*\(atr [.0-9]*\).*\(quota [0-9]*\).*/I: \1 \2/'` 58 quota=$5 88 info=`grep '10.53.0.4' ns3/named_dump.db | sed 's/.*\(atr [.0-9]*\).*\(quota [0-9]*\).*/I: \1 \2/'` 91 [ ${5:-${quota}} -lt $quota ] || ret=1 92 quota=$5 103 info=`grep '10.53.0.4' ns3/named_dump.db | sed 's/.*\(atr [.0-9]*\).*\(quota [0-9]*\).*/I: \1 \2/'` 106 [ ${5:-${quota}} -gt $quota ] || re [all...] |
/bind-9.11.3/bin/named/ |
H A D | xfrout.c | 658 isc_quota_t *quota; member in struct:__anon28 681 dns_db_t *db, dns_dbversion_t *ver, isc_quota_t *quota, 740 isc_quota_t *quota = NULL; local 769 * Apply quota. 771 result = isc_quota_attach(&ns_g_server->xfroutquota, "a); 1025 * of "stream", "db", "ver", and "quota" to the xfrout context object. 1033 zone, db, ver, quota, stream, 1045 zone, db, ver, quota, stream, 1057 quota = NULL; 1112 if (quota ! 1140 xfrout_ctx_create(isc_mem_t *mctx, ns_client_t *client, unsigned int id, dns_name_t *qname, dns_rdatatype_t qtype, dns_rdataclass_t qclass, dns_zone_t *zone, dns_db_t *db, dns_dbversion_t *ver, isc_quota_t *quota, rrstream_t *stream, dns_tsigkey_t *tsigkey, isc_buffer_t *lasttsig, isc_boolean_t verified_tsig, unsigned int maxtime, unsigned int idletime, isc_boolean_t many_answers, xfrout_ctx_t **xfrp) argument [all...] |
H A D | server.c | 3941 result = ns_config_get(maps, "fetch-quota-params", &obj); 5766 * Configure a single server quota. 5770 isc_quota_t *quota) 5777 isc_quota_max(quota, cfg_obj_asuint32(obj)); 5769 configure_server_quota(const cfg_obj_t **maps, const char *name, isc_quota_t *quota) argument
|
/bind-9.11.3/lib/dns/ |
H A D | adb.c | 158 isc_uint32_t quota; member in struct:dns_adb 252 isc_uint32_t quota; member in struct:dns_adbentry 1839 e->quota = adb->quota; 2171 ISC_LOG_INFO, "adb: quota %s (%u/%u): %s", 2172 addrbuf, entry->active, entry->quota, msgbuf); 2195 if (entry->quota != 0 && 2196 entry->active >= entry->quota) 2235 if (entry->quota != 0 && 2236 entry->active >= entry->quota) 4775 dns_adb_setquota(dns_adb_t *adb, isc_uint32_t quota, isc_uint32_t freq, double low, double high, double discount) argument [all...] |
/bind-9.11.3/lib/dns/include/dns/ |
H A D | adb.h | 201 * The server's fetch quota is exceeded; it will be treated as 777 dns_adb_setquota(dns_adb_t *adb, isc_uint32_t quota, isc_uint32_t freq, 780 * Set the baseline ADB quota, and configure parameters for the 781 * quota adjustment algorithm. 784 * address exceeds the current quota, then additional fetches are spilled. 786 * 'quota' is the highest permissible quota; it will adjust itself 792 * threshold, then the quota is adjusted down one step; if it drops 793 * below a 'low' threshold, then the quota is adjusted back up one 796 * The quota adjustmen [all...] |
/bind-9.11.3/bin/named/include/named/ |
H A D | client.h | 59 #include <isc/quota.h>
|
H A D | server.h | 16 #include <isc/quota.h>
|