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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69 - (show annotations)
Tue Oct 4 16:09:51 2005 UTC (16 years, 11 months ago) by adx
File MIME type: text/x-csrc
File size: 2026 byte(s)
- splitted ircd/libio, all headers connected with libio sources have been
  moved for internal use only. To use libio interface, include "libio.h"
  (which is already done in "stdinc.h")


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 /*
30 * this hides in here rather than in defaults.h because it really shouldn't
31 * be tweaked unless you *REALLY REALLY* know what you're doing!
32 * Remember, messages are only anti-flooded on incoming from the client, not on
33 * incoming from a server for a given client, so if you tweak this you risk
34 * allowing a client to flood differently depending upon where they are on
35 * the network..
36 * -- adrian
37 */
38 /* MAX_FLOOD is the amount of lines in a 'burst' we allow from a client,
39 * anything beyond MAX_FLOOD is limited to about one line per second.
40 *
41 * MAX_FLOOD_CONN is the amount of lines we allow from a client who has
42 * just connected. this allows clients to rejoin multiple channels
43 * without being so heavily penalised they excess flood.
44 */
45 #define MAX_FLOOD 5
46 #define MAX_FLOOD_BURST MAX_FLOOD * 8
47
48 struct Callback;
49
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