/[svn]/ircd-hybrid/include/packet.h
ViewVC logotype

Contents of /ircd-hybrid/include/packet.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 178 - (show annotations)
Sat Oct 22 10:02:43 2005 UTC (16 years, 11 months ago) by adx
File MIME type: text/x-csrc
File size: 2056 byte(s)
- somehow it didn't get committed, fixing

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 * packet.h: A header for the packet functions.
4 *
5 * Copyright (C) 2002 by the past and present ircd coders, and others.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 *
22 * $Id$
23 */
24
25 #ifndef INCLUDED_packet_h
26 #define INCLUDED_packet_h
27
28 /*
29 * this hides in here rather than in defaults.h because it really shouldn't
30 * be tweaked unless you *REALLY REALLY* know what you're doing!
31 * Remember, messages are only anti-flooded on incoming from the client, not on
32 * incoming from a server for a given client, so if you tweak this you risk
33 * allowing a client to flood differently depending upon where they are on
34 * the network..
35 * -- adrian
36 */
37 /* MAX_FLOOD is the amount of lines in a 'burst' we allow from a client,
38 * anything beyond MAX_FLOOD is limited to about one line per second.
39 *
40 * MAX_FLOOD_CONN is the amount of lines we allow from a client who has
41 * just connected. this allows clients to rejoin multiple channels
42 * without being so heavily penalised they excess flood.
43 */
44 #define MAX_FLOOD 5
45 #define MAX_FLOOD_BURST MAX_FLOOD * 8
46
47 struct Callback;
48
49 void *iorecv_default(va_list);
50 extern struct Callback *iorecv_cb;
51 extern struct Callback *iorecvctrl_cb;
52
53 PF read_ctrl_packet;
54 PF read_packet;
55 PF flood_recalc;
56 void flood_endgrace(struct Client *);
57
58 #endif /* INCLUDED_packet_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28