]>
Commit | Line | Data |
---|---|---|
21c9d815 VY |
1 | /* |
2 | * ircd-ratbox: A slightly useful ircd | |
3 | * reject.h: header to a file which rejects users with prejudice | |
4 | * | |
5 | * Copyright (C) 2003 Aaron Sethman <androsyn@ratbox.org> | |
d1275a8f | 6 | * Copyright (C) 2003-2005 ircd-ratbox development team |
21c9d815 VY |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify | |
9 | * it under the terms of the GNU General Public License as published by | |
10 | * the Free Software Foundation; either version 2 of the License, or | |
11 | * (at your option) any later version. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program; if not, write to the Free Software | |
d1275a8f | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
21c9d815 VY |
21 | * USA |
22 | * | |
23 | * | |
21c9d815 VY |
24 | */ |
25 | #ifndef INCLUDED_reject_h | |
26 | #define INCLUDED_reject_h | |
27 | ||
28 | /* amount of time to delay a rejected clients exit */ | |
29 | #define DELAYED_EXIT_TIME 10 | |
30 | ||
21c9d815 | 31 | void init_reject(void); |
d1275a8f | 32 | int check_reject(rb_fde_t *F, struct sockaddr *addr); |
21c9d815 | 33 | void add_reject(struct Client *, const char *mask1, const char *mask2); |
760ef9e1 | 34 | int is_reject_ip(struct sockaddr *addr); |
21c9d815 VY |
35 | void flush_reject(void); |
36 | int remove_reject_ip(const char *ip); | |
37 | int remove_reject_mask(const char *mask1, const char *mask2); | |
d1275a8f JT |
38 | unsigned long delay_exit_length(void); |
39 | ||
40 | int throttle_add(struct sockaddr *addr); | |
760ef9e1 | 41 | int is_throttle_ip(struct sockaddr *addr); |
76d49681 | 42 | unsigned long throttle_size(void); |
0b1e46f5 | 43 | void flush_throttle(void); |
21c9d815 | 44 | |
21c9d815 VY |
45 | |
46 | #endif | |
47 |