ratelimiter.c revision 9c3531d72aeaad6c5f01efe6a1c82023e1379e4d
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * Copyright (C) 1999, 2000 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * copyright notice and this permission notice appear in all copies.
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
428dd5c588cfe0dc1519af728e6e75c10aeb4439Curtis Blackburn * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt/* $Id: ratelimiter.c,v 1.14 2000/06/22 21:57:09 tale Exp $ */
struct isc_ratelimiter {
int refs;
return ISC_R_NOMEMORY;
goto free_mem;
goto free_mutex;
sizeof(isc_event_t),
return (ISC_R_SUCCESS);
return (result);
return (result);
if (pertic == 0)
return (result);
isc_event_t *p;
while (pertic != 0) {
pertic--;
if (p != NULL) {
if (p != NULL) {
if (free_now)