<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hey Russ,<br>
<br>
I've just got the code up in front of me now. I'm working from a CVS
version so its possible my line numbers may be a little out.<br>
<br>
At about line 340, you should see this:<br>
<br>
<font face="Courier"> if (fd_list[client_fd].client != NULL &&
numbytes > 0) {<br>
<br>
<font face="Times New Roman, Times, serif">This is the start of the
flood protection code. The three sections work as such, this section:</font><br>
<br>
if (fd_list[client_fd].client->flood_timer < time(NULL)) {<br>
fd_list[client_fd].client->flood_timer = time(NULL);<br>
} else {<br>
fd_list[client_fd].client->flood_timer += 2;<br>
}<br>
<br>
<font face="Times New Roman, Times, serif">Increments the "flood timer"
by a value of 2 if its greater than the current time, otherwise it
resets it to the current time.<br>
This section:</font><br>
<br>
if (fd_list[client_fd].client->flood_timer > time(NULL) +
30) {<br>
/* They're heavily flooding us, drop them */<br>
force_quit(client_fd, "Excess Flood");<br>
return 0;<br>
}<br>
<br>
if (fd_list[client_fd].client->flood_timer > time(NULL) +
15) {<br>
/* Slight flood, ignore them */<br>
return 0;<br>
}<br>
<br>
<font face="Times New Roman, Times, serif">Ignores the client if the
"flood timer" is greater than the current time + 15, or drops the
client if the "flood timer" is greater than the current time +30.<br>
<br>
To change the flood protection to match your values, you can change the
+2, to +1, or, increase the +15 and +30 values. Its up to you.<br>
<br>
Get back to me if you have any futher problems. I'm going to start to
try to put some more time into MonkeyIRCD in the next few weeks, so if
you, or anyone else on the list is interested in helping. Please drop
me an email!<br>
<br>
Chris<br>
</font><br>
<br>
</font><br>
<br>
Chris Plant wrote:
<blockquote cite="mid40D47715.4080601@monkeyircd.org" type="cite">OK!
Give me a couple of days to find the time and I'll sort it for you.
I'll dig out where it is and tell you what changes what.
<br>
<br>
Chris
<br>
<br>
Russ wrote:
<br>
<br>
<blockquote type="cite">Chris Plant wrote:
<br>
<br>
<blockquote type="cite">Howdy,
<br>
<br>
It should really be configurable, so I'll pop that on the TODO list,
but at the moment I haven't had much time to put into developing it.
How comfortable are you with C programming, as its simply a case of
altering a few numbers in one of the files. If you aren't happy with
that, I'll write a patch for you.
<br>
</blockquote>
<br>
<br>
I haven't done any C since I was at university, a couple of years ago,
and that wasn't much. If it's just a question of altering a few
numbers, then I should be OK with that. If I'm feeling brave, I might
even replace them with a variable or a constant so that I can try
different values more easily :-)
<br>
<br>
Russ
<br>
<br>
<br>
_______________________________________________
<br>
Cumbria mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cumbria@mailman.lug.org.uk">Cumbria@mailman.lug.org.uk</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.lug.org.uk/mailman/listinfo/cumbria">http://mailman.lug.org.uk/mailman/listinfo/cumbria</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.cumbria.lug.org.uk">http://www.cumbria.lug.org.uk</a>
<br>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
Cumbria mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Cumbria@mailman.lug.org.uk">Cumbria@mailman.lug.org.uk</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.lug.org.uk/mailman/listinfo/cumbria">http://mailman.lug.org.uk/mailman/listinfo/cumbria</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.cumbria.lug.org.uk">http://www.cumbria.lug.org.uk</a>
<br>
</blockquote>
<br>
</body>
</html>