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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33 - (hide annotations)
Sun Oct 2 20:50:00 2005 UTC (17 years, 7 months ago) by knight
File MIME type: text/x-csrc
File size: 2046 byte(s)
- svn:keywords

1 adx 30 /*
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 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_packet_h
26     #define INCLUDED_packet_h
27    
28     #include "fdlist.h"
29    
30     /*
31     * this hides in here rather than in defaults.h because it really shouldn't
32     * be tweaked unless you *REALLY REALLY* know what you're doing!
33     * Remember, messages are only anti-flooded on incoming from the client, not on
34     * incoming from a server for a given client, so if you tweak this you risk
35     * allowing a client to flood differently depending upon where they are on
36     * the network..
37     * -- adrian
38     */
39     /* MAX_FLOOD is the amount of lines in a 'burst' we allow from a client,
40     * anything beyond MAX_FLOOD is limited to about one line per second.
41     *
42     * MAX_FLOOD_CONN is the amount of lines we allow from a client who has
43     * just connected. this allows clients to rejoin multiple channels
44     * without being so heavily penalised they excess flood.
45     */
46     #define MAX_FLOOD 5
47     #define MAX_FLOOD_BURST MAX_FLOOD * 8
48    
49     struct Callback;
50    
51     extern struct Callback *iorecv_cb;
52     extern struct Callback *iorecvctrl_cb;
53    
54     PF read_ctrl_packet;
55     PF read_packet;
56     PF flood_recalc;
57     void flood_endgrace(struct Client *);
58    
59     #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.30